yashsingh1/xdaforums huggingface dataset:
[Android] djstaid:
I use Open XML Editor, but I am sure you can use whatever works best for you. Notepad would hurt my brain though.

As far as the Public.XML, I don't think you can just remove and add lines to it...

The way it was explained to me was that any extra or new pngs added to a theme will be added into the Public.xml by way of "aapt". So there is no need to add. As far as removing items... well the entries are all coded a specific way so if you remove line 100... then everything from 101 to the end will be off by 1 and cause a lot of problems. An example...

<public type="attr" name="exported" id="0x01010010" />

<public type="attr" name="process" id="0x01010011" />

<public type="attr" name="taskAffinity" id="0x01010012" />

<public type="attr" name="multiprocess" id="0x01010013" />

<public type="attr" name="finishOnTaskLaunch" id="0x01010014" />

So as you can see the id used increases and then is associated with a specific item from within your apk. So as far as I know the best way to modify something (like a theme or etc) is to work with a Public.XML that has less in it so you can add to it... or just keep all those items in there (pngs, etc) and just make them a 1x1 image. Not the best way... but from what I have seen it has been done by many a theme maker and ROM builder.

Hope that answers your question.

** edit **

I just realized that I may had confused you (not knowing your knowledge level) so... The items are added to the Public.XML when you build the APK back together after editing it. This can be done with the apktool, which uses the aapt to do it's job. At least that is how it has all been explained to me so far. I also need to modify a Public.XML for my framework-res.apk and ran into problems here.
[Android] bestialbub:
You don't need to worry about adding pngs to the public.xml. just put the pngs in place in the decompiled apk along with the xml that's using the pngs. You can't add pngs that aren't being used, which is the only requirement.

Run 'apktool b' to rebuild the apk and the pngs should be added to the public.xml. that data will be in the resources.arsc file in the new apk if you had no errors. Copy that to your original apk and you're set.

You can decompile your recompiled apk if you want to see the newly added entries to the public xml. But that's just for fun.

Note; I found in the framework 21 for backflip that there was no more room for draw9.png images, just regular pngs.

Also, if you copy any1 else draw9.pngs from their apk make sure you copy the png from an unzipped apk and not a decompiled apk. Decompiles adds the 1 pixel ring around the image that wont go away unless recompiled. And you can't replace draw9 images to recompile or apktool will try to add it as a new draw9.png to public xml and error out. Just insert to your original apk.

That should cover all bases. ;)
[Android] bestialbub:
Im sorry, the second post threw me off. You said strings specifically. I would think the rule should apply the same. Use the string in an xml and the string is declared in another xml in the values folder, I think its strings xml. The compiled string resources will be in the resources.arsc file in the new apk.
[Android] aayushARM:
I am getting same problem as OP. You said that new PNGs or something are automatically added in public.xml right? But I am not able to see them. Actually, i added 5 more indeterminate progress bars and edited the animator xml for it too. The app compiled with apkmanager, but after decompiling the same, I don't see the new indeterminate PNGs declared in the public.xml.!! Plz. help me! I can't just flash and test immediately!! cause i don't have that phone!!
[Android] wes342:
No they are not added automatically you have to add it yourself.

Only add or change lines don't remove.

For public.xml

Everything is grouped

Each group has an order

Drawable will be

0x7......00

0x7......01

................

0x7......ff

Remember they use letters also

You can add a new item

0x7.......g0

They have to be in order by resource type

String would start with ex...

0x6......00

Find the last string id that was used and add the next id.

Remember they are not always in order so actually use the text search to be sure.

Not sure if you already added the string to the strings.xml

That has to be done also.

For that open strings.xml

Copy the last line

Paste it to next line

Change string name (must match public.xml) and than value (what text is displayed)

Let me know if you need more help.
[Android] wes342:
Here is a write up i was planning on doing for my site

decided to start it now.

Add resources to an android apk

Its just a start but should be able to do it with out problems
[Android] aayushARM:
Oh mahhnn!! Thanks a lot for that!! Now I don't need to depend on crappy tools for adding resources any more!!!;)

Once again, thanks a lot for that!!:D:D
[Android] Basian Mile:
So when i understand it right i made it like that.

I wanna add "ab_bottom_solid_dark_holo.9.png" to mms.apk.

I copy it to "drawable-xhdpi". I open "public.xml" and scroll to the end of "<public type="drawable" ". Last string is:

So i make a line under that and that would be that:

In the whole xml is no other "7f020255". So that would be all? No other changes to do?
[Android] Ticklefish:
Everytime I've added a drawable, or a string, to my apps, I've never had to put them into public.xml

All I do is compile and they're added automatically. The only time I need to touch public.xml is if I want to remove something.
[Android] Basian Mile:
That would be nice. iam on JellyBean on my Galaxy Nexus and use apktool cmd. And it just gave me errors.

What do u use to compile. Maybe its a nice Tool with more Functions.
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] Ollipuss:
Hello

Since the Daylight Saving time went ahead this past weekend, my HD2 has lost the plot. After reading a few messages on here I decided there was no solution for the myriad of problems I am experiencing.

1) I have disabled Internet Sync for the clock so at least now phone displays the correct time, however

2) my G-Alarm eventhough it rings at the correct time it always tells me my alarm will go off one hour ahead of time, for example when I go to bed at midnight and set the alarm for 7 am it says I have 8 hours to go...

3) SMS timestamps are all over the place.. Everytime I reply to someone my reply goes above the message I am replying to because I have manually set my phone to be taking into account DST but apparently Orange arent sending the correct data?

If anyone has a suggestion that doesnt involve calling Orange or HTC (called both, neither had a solution and both blamed the other) and if there is a solution that doesn't involve UMTS and Internet Sync please do let me know.

Bottom line please help!!
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] dragmark:
Try this:

Start - Settings - Menu - All settings - personal - phone - GSM & UMTS services - time synchronization - settings > delete all checks.
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] Ollipuss:
Thank you for the suggestion, I did that two days ago and since then still all of my messages come with the wrong time stamp through and G-Alarm thinks I should have one more hour of sleep. :(
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] dragmark:
I've had the same problem with the sms timestamp (G-Alarm was OK), but this is what I did and it worked for me:

- disable sense in Start > Settings > Home > Items > (untick HTC Sense)

- go to Start > Settings > Personal > Phone > GSM/UMTS Services > Time Synchronization (untick Auto sync)

- set up the correct time and time zone in Start > Settings > Clocks& Alarms (I changed my timezone from Prague to Berlin/Rome)

- soft reset

- enable sense in Start > Settings > Home > Items > (check HTC Sense)

- softreset

try it, maybe it will work for you too... :)
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] Ollipuss:
Thanks, I will try it and report back. fingers crossed!
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] Ollipuss:
Sorry to report back to say it did not work... SMS' timestamp it still one hour ahead. Maybe I should ditch the HD2 and buy a primitive nokia =(
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] dragmark:
Sorry to hear that,

well then it's time to call HTC or your provider ;)
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] matty538:
Been having the same problem, for me disabling operator time sync and internet time sync and then connecting to the laptop via active sync and letting them both sync has sorted the problem for me.
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] Ollipuss:
You know matty538 I might just try that :D it's the only thing I have not tried and I have reached the end of my thether heheh. Thanks for sharing the info.
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] bekirkat:
I was experiencing the same... This actually did the trick.

Thanks...
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] Ollipuss:
Matty you are a GENIUS!

It worked :D:D all of the time dependant functions are finally ok!

Thank you thank you thank you.
[Sony Ericsson XPERIA X10 Mini] spatuluk:
I seem to have found an Android 2.1 bug, and it's due to the supposedly improved integration with Timescape and Contacts..

Timescape now automatically updates your contact list with facebook and twitter contacts. That's nice, isn't it?

Unfortunately, I don't know anyone on my twitter account (it's all software houses and product updates and stuff), and I don't know (or want to know) the phone numbers of most of my facebook friends.

Luckily, there is an option in contacts to only show contacts from certain sources, so you can tell it not to show contacts from facebook or twitter, or even google or the phone.

Alas, you can tell it until you're blue in the face, but it still shows them, no matter what you yell it to show. :|

But fear not; there is also an option to hide contacts who have no phone number! Sweet, huh? Well, no - that doesn't work, either. :'(

So now my contact list is full of people I don't want to phone, and the only way to get rid of them is to sign out of my accounts in Timescape, meaning Timescape is useless. I'm just glad I'm not one of those people with hundreds of random facebook friends!

*sigh*
[Sony Ericsson XPERIA X10 Mini] ShadowTD:
Yep. I have exactly the same problem. It's weird though - I have a Google contact, and a facebook contact. The FB contact is correctly linked to the google contact but in some situations (Usually where the FB name has a nickname or summat) they're displayed again. But you can 'delete' them.

I'm just dealing with the Big List. I came from a Palm Pre so I'm fairly search oriented anyway.
[Sony Ericsson XPERIA X10 Mini] Dr.Pat:
same problem here; i don't think this bug is related to Timescape... the whole options screen is buggy, you can see the "google", "facebook", etc labels go away when you select one of them.
[Sony Ericsson XPERIA X10 Mini] knudsen81:
i have no problem with that on my phone, i have link my contacts with timescape, facebook and twitter and i still only have my google contacts shown in contacts
[Sony Ericsson XPERIA X10 Mini] Dr.Pat:
Did you upgrade to 2.1? Does the "hide contacts without phone number" (or whatever it is in english) option also work?
[Sony Ericsson XPERIA X10 Mini] knudsen81:
yes all works
[Sony Ericsson XPERIA X10 Mini] Dr.Pat:
i also noticed that the starred (favorites) contacts tab disappeared from the contact list.

[edit]

...ok, solved! It's a Launcher PRO default shortcut bug. If you open the contact list from the applications list, all the problems (missing starred tab, messy list) go away. So... delete the default contact list icon, and recreate it.
[Sony Ericsson XPERIA X10 Mini] aplqq:
Erm... i think i love you :p
[Sony Ericsson XPERIA X10 Mini] thephoenixrising:
I want to have your babies!

Thank you so much!!! :)
[Android Software/Hacking General [Developers Only]] Risingson:
One of the most useful features of my old phones was the ability to change the length of time the phone/network would try to send an SMS before failing. This was particularly useful for messages only relevant within a short time-frame and would not make sense or be required after this, if the recipient had their phone off or were out of signal for example.

Is this a feature that can be written into phone software or is it network dependent, either way how can I achieve this on my Desire?

TIA
[Galaxy S I9000 Q&A, Help & Troubleshooting] Tehpriest:
Has anyone found a cure for this yet?

I tried the old Kies with the new reg hack and every other combination suggested but still get this message.
[Galaxy S I9000 Q&A, Help & Troubleshooting] vigge_sWe:
I am also getting this error <.<
[Galaxy S I9000 Q&A, Help & Troubleshooting] yiannisthegreek:
Perhaps this is Samsung's way of ensuring that the reg. hack cannot be used AT ALL anymore...

Maybe they did something to the old version as well???
[Galaxy S I9000 Q&A, Help & Troubleshooting] vigge_sWe:
Well I didn't do any reghack, I just installed kies, got a notice that there is an update but it keeps telling me low battery
[Galaxy S I9000 General] compuse:
I've been swiping some time on a Galaxy Tab and all the fuzz ,that it's more stable en responsive, is a joke.

I definitely saw more jittering on the XXJID(tab) then on my current JPK(i9000). Tilting the screen wasn't as fast, opening apps went as smooth, scrolling trough the screens was slightly stuttering more on the tab then on my phone, sure let's trow that problem on his higher screenres. (I can see more then 27fps, gamer's eyes!)

Though i did noticed a slightly better pinchzoom ability on the touchwiz and menu interface...

Max unreserved ram is 444MB while he needs 150MB the least! (without widgets and background apps)

but to tell you that it is faster then a properly setup i9000, noo fkng way!
[Galaxy S I9000 General] BlackDino:
any tablet always feels better with pinch-zoom.

simple reason is there is a greater area for gesture support.
[Galaxy S I9000 General] compuse:
well i didn't meant it's easier to actually "pinch" it, but what's going on after the pinch; there's less/no stuttering (menu pinched or instance, it's impossible to scroll smoothly with 10 pages of apps or more(or less))
[Desire HD General] neovisage.HD2:
Smashing down price of DHD on uk carphonewarehouse you can get now for £399.95 plus top up but more important is all the phones from CW factory unlock!!great news cos I don't think the DHD is worth more than £400:eek::D
[Desire HD General] mwatson:
Sadly not the case at my local CPW. Still contract only. Where did you hear this?
[Desire HD General] panyan:
well! thats lucky then, your 5p under! :p
[Desire HD General] neovisage.HD2:
At CPW shop in the new booklet and on the shelf with dhd on contract from £25 then price below pay as you go £399.95:)
[Desire HD General] rossysaurus:
i went in carphone warehouse yesterday and they said they were getting all new P&G pricing today.

i got my DHD from the vodaphone shop for £25 a month/24months phone free on vodaphone. 3500 (yep,3500) minutes, 250 texts, 500mb data. can make any of those unlimited for an extra £5 a month.
[Desire HD General] vicedens2002:
WOW 3500 minutes.....for me just 300 is enough for same plan:p

where you got it, i mean which city?
[HTC Excalibur] Cyclonezephyrxz7:
Hey Everyone...I haven't been around these parts often, but I conceived a pretty good idea [I think]...

My friend recently got a Droid phone, and of course he was flaunting it to me...I love Android, honestly...but I love Windows Mobile too. SO! I thought "Why not merge the best of both worlds?"

Well obviously, I cannot make windows look 100% like Android...that would take tooooooo long. So instead, I thought "What about the Task Switcher!"

So I introduce to you, CTaskManager

Right now it is just a P.o.C (Proof Of Concept), but I have done my research and found pretty much all the API calls I will need [minus one or two, but I'll find those]. It will be fully in C++, and if I can get it working correctly, will be activated by the HOME button.

Attached is a proof of concept image [100% Photoshopped, not real at all].

In any case, this is how I forsee it working:

This will appear on top of any window

Activated by pressing [and holding?] HOME

1st Box will always be the Home Screen

2nd Box will always be the current Window (unless it is the HomeScreen)

You can switch between apps with 2 easy Clicks

First Select the Number of the Dialog

Second, Press CENTER or SPACE to switch to it, or press DEL to quit that app

The program's layout will vary depending on the number of Open Windows

Should be light, fast, and easy to use

Hopefully, since I forsee this to be a really easy project, I will have a release by later today! I am making it for my Excalibur users FIRST, because I owe it to this whole forum :) [And because I will be switching to an HD2 this upcoming monday, and I want to start a project up for a phone I use NOW]

-Until Later: CycloneZephyrxz7
[HTC Excalibur] Mr. Clown:
sweet...thanks..will wait for your release and then will added to the sticky.
[HTC Excalibur] Cyclonezephyrxz7:
I am very pleased that the ONLY component I have yet to get working is getting the screen captures [and window titles]. I need to investigate this ... For some reason, I am getting the same window drawn OVER and OVER again. I think it is because the window handle I am getting from some of the methods is invalid...Its very odd ... I have to figure it out. I should be able to do this winthin the next hour or so
[HTC Excalibur] alexrodri0:
seems cool so its like a multitasker? or somthing
[HTC Excalibur] Cyclonezephyrxz7:
Exactly.

So this is the update:

I got the program to run on Home-Key Press ... Now I am going to just modify it and add a timer or something to get it to run on Home-Key Long Press [since just a press interferes with Smart ToolKit]

An odd bug I have encountered is that when I run this, and wait, the Smart Toolkit taskbar shows up (as it should), and the whole phone locks up...I think it is because both are competing for Keyboard privilages. [I have to use a Keyboard hook to get this working, and it is all undocumented APIs]

I have yet to get the actual Task part working Haha. I can't confirm whether or not it is working, because for some reason my Debugger is acting weird, and all the images are of the current screen. As it turns out, it is impossible to take a snapshot of a minimized / partially visible screen. It will take the screen coordinates, and take a picture of whatever is there right now. I will get that fixed [I am talking to another Dev to see if he will let me in on how he does it in his task manager].

I got the "back" key escape working. Relatively simple.

I have planned out Layouts. Such that when you have JUST the HomeScreen open, it will NOT run. When you have the HomeScreen and 1 OTHER window open, the two will be split on the screen [Maybe make each like 150x113]. When you have 3 to 4 total windows (Including HomeScreen), they will make a 4-quadrant layout. Where each will be around [120x90]. When you have 4 - 6 open, each will be [92x69] (as shown in the ScreenShot) and have a 6-block layout. When you have more than 6 (if that is possible on the Excalibur haha), it will make a second page, and the second page will adapt to however many excess processes there are.

I have to work on getting the Translucent Background working ... that shouldn't be too hard, I just have yet to look into it {I think I have to use AlphaBlend or TransparentBlt}.

In any case, there is actually very little that doesn't work yet haha, but of course it is the most essential parts that don't work.

I will keep you all updated :)
[HTC Excalibur] youngdaddytc:
sweet

looking forward to this, my phone will live on!!! :-)
[HTC Excalibur] Cyclonezephyrxz7:
Thanks to a bunch of help from another Dev, I confirmed that getting the image of a non-visible window is IMPOSSIBLE on windows mobile. [Although it gives me an idea to try to 'fix' that haha ... maybe after this]. In any case, I think I have figured out how to do it. Tomorrow I will write up the code, test it, and hopefully have an Initial release.

The way I see it the releases will be as follows:

1) Initial Release [Basic]

2) Fix-Up of any Bugs

3) Add some Effects

4) Add some customizations

5) Fix-Up of any Bugs

6) FINAL

Hopefully, I can do this in 6 or less releases :) [And in the meanwhile, adapt it to work on my new HD2 i will get on Monday :D ]

*PS: For those of you following my projects: Once I get my HD2, I am going to make a fixed up release of FFP_LS, and then open-source it. Thereafter, i won't work much on it anymore. This is so I can start working on my SUPER-HUGE project called "CMessage" ... Here are the contents of the 'sticky note' i have on the desktop reminding me of it:

Suite of Programs:

1. Transport DLL (Send/Receive SMS/MMS/EMail)

2. T-Mail.exe Client (Compose/View SMS/MMS/EMail)

3. Notifier (When new Message Arrives, Display Alert)

4. A new DLL for the HomeScreen [it probably won't be compatible with the old one]

5. API Docs (For future use and adaptation)

6. Sample Programs (I.E. HomeScreen Panel, SMS Games, etc.)

7. Filter Rules Program

8. Macro Program (Get Message ... Do Action)

9. Environment Set-Up DLL/Exe [Cache Contacts, create Message Stores, transfer over old stuff, etc. etc.]

It is going to be a VERY large project. Hopefully, it will also be a very successful one :D Say bye-bye to CE MAPI?
[HTC Excalibur] Thekn:
can't wait!:)
[HTC Excalibur] Cyclonezephyrxz7:
This program is actually bugging me...haha [get the joke?].

In any case, it is becoming rather tough to get this actually working. Correction: To get it working efficiently. The dev making the 3D iManager app over in the Development/Hacking forum told me how he is doing it, but to me it just seems terribly inefficient (every 5 seconds, check for Foreground Window....LOTS OF BUGS). In any case, I am using a registry notification now, since Windows Mobile has a value that tells me the currently active program and the previously active program [and it updates!] ... this works out because then I can take a screenshot of the new-ly active program, AND check to see if the old one was minimized or closed. Unfortunately, it doesn't seem to be working as I would have hoped.

I don't have much time today for developing [Hooray for a 50 Page AP Government Outline] ... so I will probably get back to this tomorrow [NEW PHONE], or maybe tonight if I get a really good idea/inspiration to finish this!
[HTC Excalibur] Mr. Clown:
keep the good work man and again thanks for your effort in developing new stuff for the dash.

Cheers,
[HTC Excalibur] Cyclonezephyrxz7:
So I finished my work :D

But that isn't pertinent to this forum. What it does mean is that I can work on my developing for today!

Counter-to-my-prior-plan, I am going to release a pretty flawed version of the program ... errr ... rather an Alpha that will run much less efficiently than the final product.

I hate announcing a project, thinking it will be easy, then taking forever with it ... so this is what I am going to do:

I will use the same timer-based approach that iManager 3D uses, but I might make it update more often [3 second intervals maybe] ... it won't be AT ALL battery efficient, but it should be pretty memory efficient. It will serve as NO MORE THAN A PROOF OF CONCEPT OF WHAT THE FINAL PRODUCT WILL BE. The final product should not have a major impact on battery life, and should leave the end user unaware that it is actually running when it is!

I am re-installing Visual Studio because it has been acting up, but once that is done, I should be able to pump out an ALPHA VERSION.

EDIT: Computer Issues ... Expect a release in the coming days. Sorry for the inconvenience.
[HTC Excalibur] Thekn:
Great! This sounds awesome! And yeah, we finally get more interests and development in non-touch devices! Good luck with building the program and don't forget to contact the News-Writers when it's ready!:)