yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Q&A, Help & Troubleshooting] mcp2009:
will the method discussed work for me? I'm on the current build of cyanogenmod and used the gfree method to free all (super cid, sim unlock, real s-off). I need to revert to stock to send phone back because I'm getting a replacement due to signal issues. Any help is appreciated thanx.
[G2 and Desire Z Q&A, Help & Troubleshooting] mcp2009:
anyone? 10char
[G2 and Desire Z Q&A, Help & Troubleshooting] steviewevie:
You're on a G2, right ?

This should work for you - http://xdaforums.com/showthread.php?t=831398
[G2 and Desire Z Q&A, Help & Troubleshooting] mcp2009:
yea using g2 thnx man I'll try when my replacement gets here. Is it a sure thing? Says for temp root and I'm perm rooted. Gosh I feel like a noob lol.
[G2 and Desire Z Q&A, Help & Troubleshooting] steviewevie:
That guide will let you downgrade to the stock ROM, yes. There's a note at the bottom saying it's not a rooting method (not sure why that note is there really), is that what you mean ?
[G2 and Desire Z Q&A, Help & Troubleshooting] mcp2009:
No I was just wondering if it would work if I was perm rooted with real s off because it says for temp root and this guide was made before we got real s off

Sent from my HTC Vision
[Android Software Development] long1000:
Hello all,

I've written a simple audio player app and testing it in Samsung Galaxy S.

It is a simple app with can create playlist and some buttons to play the mp3 file.

However, there's a funny bug in it.

After starting the app, whenever I rotate the phone, the running app will launch another instance of the app. If I rotate again, another instance (3rd) would be started. So u can hear 3 copies of the same audio being played simultaneously.

What could be wrong with it?

Is there some code which can prevent program re-entry?

Thanks.
[Android Software Development] Gene Poole:
It's not a bug, that's the way andorid OS works. You need to account for this in OnCreate for your activity. I assume you are spawning off the actual playing of the MP3 in a thread or service. You need to check if the service is already running in OnCreate and attach, else spawn a new one.
[Android Software Development] long1000:
Hello Gene,

How do I check if an activity is already running?

I could not find the answer on the android developer page (the topic on application fundamentals).

And no, I'm not converting it to a service yet as this is my first app.

Haven't explore service yet.

Thanks.
[Android Software Development] long1000:
I read on another article, a simple way to prevent this is to add overwrite the onConfigurationChanged function

@Override

public void onConfigurationChanged(Configuration newConfig) {

//ignore orientation change

super.onConfigurationChanged(newConfig);

}

and modify the androidmanifest.xml

<activity android:name="selectCategories" android:configChanges="orientation|keyboardHidden"></activity>

But it still launch multiple instance of the app.

Thanks.
[Android Software Development] r_p_ang:
This is a good question and should be in an FAQ somewhere.

As already mentioned, changing the display orientation basically restarts your app. Read the Android dev page on Activity lifecycle for more info.

A short answer for your question is: the Bundle parameter for onCreate() will be null when your app is first run. When your app is paused and restarted, that Bundle will be non-null. You can store data in that Bundle by overriding onSaveInstanceState(), then check for that data in onCreate(). It's a good idea to learn how to do this (save/read app data on pause/restart). Once you start testing apps by rotating the display at various times, you'll find a lot of them FC at unexpected places.
[Android Software Development] nitzanj:
This is indeed a topic that keeps surprising people who are new to android (ahem, like me 4-5 months ago :)).

The solutions above are perfect, however in certain situations there's another trick that might make your life much easier. I suspect it won't help you in this case, but it might help others who tackle the problem and see this thread.

Certain applications, mainly games, should be fixed in a single orientation. I.E. you won't be playing angry birds on portrait - that game is locked to landscape, as it should be. In order to lock your activity in a certain orientation you add this attribute to the manifest under the Activity tag. So a standard activity might look something like that, combined with the ignore tag from the previous posts:

<activity android:screenOrientation="landscape" android:configChanges="orientation|keyboardHidden"
android:name="whatever">

The great thing about this combination is that your activity will not restart at all when the phone is rotated. Of course, for a standard activity you'd usually want to support both landscape and portrait, but if you need your app to be in a fixed orientation this is the way to go - no weird FCs or annoying bugs :)
[Android Software Development] long1000:
Hi,

How do I check the bundle?

And also, what to do if the bundle is not null? Just return?

Thanks.

regards
[Galaxy S I9000 Themes and Apps] pacoforet:
Hi all,

Here I post the Nexus S Bootanimation, extracted from the System Dump provided under Galaxy S Development forums.

Copy the .zip file with Root Explorer into system/media/ replacing the one you have, make a backup of your Boot Animation first!

Megaupload: http://www.megaupload.com/?d=DHXFPJQI

Mediafire: http://www.mediafire.com/?1v6aj8wrsa2nsal

Have fun!

Edit: It seems to be the same exact Boot Animation from the Nexus One, so the Nexus S has no new animation :(

Edit 2: Been playin a bit with the Nexus S System Dump, nice new ringtones added, and really nice things, I will try to get the Screen Off Animation, but don't know which file is it! :S
[Galaxy S I9000 Themes and Apps] msri3here:
Can you please post another mirror...mega upload is not allowed in my ofc network :p
[Galaxy S I9000 Themes and Apps] pacoforet:
Edited first post with another download link.
[Galaxy S I9000 Themes and Apps] racerboy3801:
thanks, works perfectly
[Galaxy S I9000 Themes and Apps] thE_29:
The screen off animation would be great :D
[Galaxy S I9000 Themes and Apps] torres76:
Will this work with any rom and not affect the theme.

Beamed from my sweet Galaxy S with doc's jpo v9 zenkinz oc and R64s theme.
[Galaxy S I9000 Themes and Apps] pacoforet:
Works with any ROM as you are changing /system files. Replacing manually the bootanimation.zip is fine if you have Root Explorer, if not, just download Boot Animation Changer LITE from the Market and apply Nexus One Bootanimation, which sadly is the same as the Nexus S Bootanimation.
[Galaxy S I9000 Themes and Apps] F4k:
Can you extract the new live wallpaper? (Nexus neuronal) which is diffrent that the posted in the forums. Thanks.
[Galaxy S I9000 Themes and Apps] BlackDino:
post up the new ringtones
[Galaxy S I9000 Themes and Apps] NasrulBond:
how to backup the bootanimation.zip from the root explorer? do i have to transfer it to internal sd or what? sorry, noob here.
[Galaxy S I9000 Themes and Apps] vukandric:
+1 for screen off animation. :)
[Galaxy S I9000 Themes and Apps] ukdtweak:
Sorry for being thick, I downloaded the .zip, then opened root explorer and browsed to system\media to copy the original as stated above, but I don't have any such file?

Running JPU 2.2.1 installed via Odin and rooted with CF-Root 1.3.

EDIT: Bit of searching gave the answer, need a kernal that supports boot animations... CF-root appears not to then... shame :(
[Galaxy S I9000 Themes and Apps] pacoforet:
To backup your previous Bootanimation, just copy/paste the one in /system/media/ somewhere in your Internal or External SD.

About the screen off animation, I don't have a clue where is it placed in /system, so I can't get it :S

About the ringtones, Darky's ROM comes with all the Nexus S Ringtones, just download Darky's v7 and extract the zip in your desktop and navigate to /system/media/audio, and you will find the ringtones, alarms and notification ringtones from the Nexus S.
[Galaxy S I9000 Themes and Apps] Qazz~:
I'm using a Voodoo kernel but i also dont see the "original" boot animation.

I just placed it there, it didnt replace anything, rebooted and it worked!
[Galaxy S I9000 Themes and Apps] Prasad:
Thank you OP! :)
[Galaxy S I9000 Themes and Apps] redcrash:
Shutdown animation location

Hi Paco,

first of all, gracias!! I'm willing to give this a try.

Regarding the sthudown animation, the post dated 14/12/10 by aitorsantana in http://www.htcmania.com/showthread.php?t=160474&page=3 seems to point all the shutdown animation frames to be stored in /system/video/media/shutdown

Gracias otra vez!
[Galaxy S I9000 Themes and Apps] redcrash:
Ouch! I've just downloaded a NSRom.zip containing a (supposed dump) of a Nexus S, and that directory does not exist :(
[Galaxy S I9000 Themes and Apps] torres76:
It is system/media/video/shutdown not video/media.
[Galaxy S I9000 Themes and Apps] vukandric:
Does the screen off animation works for you? Or this is a (phone) shutdown animation?

Sent from my Galaxy S powered by VA GREEN
[Galaxy S I9000 Themes and Apps] drreality:
thanks mate, just tried the boot animation...... perfect :D
[Galaxy S I9000 Themes and Apps] hanzuloo:
thanks very much
[Galaxy S I9000 Themes and Apps] huanwei:
So good boot animation and it works for me, thanks a lot
[HD2 Android Q&A, Help & Troubleshooting and Genera] ChaosBoy:
Hallo Leute,

ich würde gerne ein Desire Build für mein HD2 nutzen, aber mich stört bei diesen Builds eine Sache ganz extrem. Ich lösche generell den "Sense" Lockscreen, um den Original "Android" Lockscreen zu bekommen, allerdings lässt sich dieser dann per Tastenkombination der Hardwaretasten entsperren, statt nur per Touch...

Gibt es eine Möglichkeit die Hardwaretasten zu sperren??? Bei den CyanogenMods kann der Lockscreen auch nur per Touch entsperrt werden.

Danke!!!

Hi,

I would like to use a Desire Build on my HD2, but bothers me in these builds one thing quite extreme. I delete always "sense" Lockscreen to get the original "Android" Lockscreen, but this can be by pressing a combination of hardware keys to unlock instead of just using a touch ...

Is there a way to lock the hardware buttons? In the CyanogenMod Lockscreen can be unlocked only by touch.

Thanks!
[Galaxy S I9000 Themes and Apps] mikeinessex:
Hi

I am a newb, i have the darkys v5.5 rom and i was wondering if there is a app or skin to change the gallery? i find the background of gallery ugly. you know the blured image of whatever image you have highlighted? I would like something elegant and simple. if anyone knows of a way it would be gret to know.

Thanks
[HD2 General] solai:
pictures taken with hd2 camera look blurry and sandy, i read a lot about tweaks etc but still have that sandy and blurry effect and it's more noticeable when you watch them on the pc, is hd2 camera faulty/poor quality or there's a solution available? also your camera does the same? did you resolve this annoying problem?

3.14.831.3_Radio_15.42.50.11
[HD2 General] Cenobite_:
Not to be a smart ass, but did you clean the lense?
[HD2 General] H3ALY:
Could you maybe supply a couple of photos also are you taking the pictures in WM or Android?.

Healy
[HD2 General] yugoport:
some photos would be nice..
[Desire Q&A, Help & Troubleshooting] sheaky:
hi i installed Defrost ROM which is the best , but i dont like the dock in defrost,how can i changed dock to original curvy dock?

and is there any good clock?

help please
[Desire Q&A, Help & Troubleshooting] vnvman:
You can't have the sense dock on aosp. The best bet is downloading launcher pro, you can set custom docks and icons with that (look for some on the launcher pro forums). As to the clock you could download fancy widget from the market, it's the best clock widget ever imho.
[Desire Q&A, Help & Troubleshooting] sheaky:
can you please give me link for launcher pro forum ?

thanks
[Desire Q&A, Help & Troubleshooting] Zurga:
you can download it from the market. Here is a link to the website of the developer.

hxxp://www.launcherpro.com/

also, learn how to use google....
[Desire Q&A, Help & Troubleshooting] sheaky:
thanks i appreciat :)
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] screamor:
Hi...

I want to use my Hd2 as car pc... Yes you might say, it has a navipanel allready. But its not that what i imagine, however its similar. Navi panel has 6 Buttons, for Calling, go home, start copilot and so on. But no buttons for starting a music player or video player, gmeter ( i love it). So i am searching for an customizable Panel where i can set my 6 Buttons, like in CHT. It would be perfect if the APP connects to my a2dp Radio when it starts...

Is there any app can do this??

Regards
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] Robson:
don't know if this is what you're looking for but what did was use wisbar advance desktop. from there i created the following shortcuts on my screen:

1) call home

2) call my wife's cel

3) call my kid's cel (yeah, these days they have phones as well =)

4) gps (papago or navigon)

5) pocket player (music)

6) coreplayer (when my kid is in the car and we go for long drives)

7) bt toggle (activates a2dp)

my phone is bonded to my trusty old r35 headset which is then plugged to my car's sound system. for my wife's car, this is no longer needed as she already has bt built in her car. yeah, i got the older model =) so when i toggle my bt, it connects immediately to the r35 and thus streams all sounds through the speakers.

cheers
[G2 and Desire Z Android Development] steviewevie:
DO NOT FLASH A NEW RUU OR OFFICIAL ROM IMAGE UNLESS YOU *REALLY* KNOW WHAT YOU ARE DOING !

Sorry for shouting, but this is very important. Thanks to the mods for making this sticky.

The latest official RUU that has been released - http://xdaforums.com/showthread.php?t=870369 - has been found to break the existing methods of rooting and getting full S-OFF.

This shouldn't be a big suprise, because when HTC saw that the amazing devs on XDA had cracked the existing security, we should expect them to put something even tougher in later releases.

So flashing any later release, whether that's an official RUU or just the ROM image (PC10IMG.zip) is a very dangerous thing to do until it has been fully tested and "cleared" by the devs here. i.e. your previously rooted and S-OFF'd phone might lose root and go back to S-ON, and be unable to be rooted and S-OFF'd again.

It's of course fine if your phone came with a particular ROM release to flash that *exact same* release back onto the phone if you want to return to stock. What I'm referring to is flashing a brand new release that isn't the one that came with your phone.

It's fine to flash custom ROMs of course, because those have already been tested out. In general, it's probably best to steer very clear of new official releases, and wait till the devs have pulled them apart and put any cool new stuff into a custom ROM. Then you know it'll be safe to flash.

Currently I don't think it's entirely clear what just flashing a new *radio* on its own will do, as opposed to the entire ROM/RUU. That's still being worked on. But steer clear of even that if you're not sure what you're doing or dont' want to take any chances of losing root/S-OFF.

Thanks for reading :)
[G2 and Desire Z Android Development] waffleman911:
Thanks for the heads up. :)
[G2 and Desire Z Android Development] jzhyok:
I flashed the ROM you mentioned.

For those who want to try:

Just remember to get REAL S-OFF using gfree before flashing it.

This provide you a medicine for regret. You can get back to WWE ROM using WWE RUU and root/recover your old ROM.
[G2 and Desire Z Android Development] androidtoy09:
What is RUU? What is it to do with ROMs? Did HTC provide a change log for newer Radio? Or does anyone know what changes are , in the latest Radio?

Just to be clear. Don’t flame me for this please. I’m still learning just like many others in here.
[G2 and Desire Z Android Development] steviewevie:
We don't have a changelog, no.

RUU is ROM Update Utility. It's a program to run on Windows (.exe) which flashes your new ROM for you, and holds your hand through the process. It's possible to extract just the ROM zip file from the exe so you can flash it yourself if you want.

The thing about the RUU and stock ROMs is that they will flash pretty much *everything* on your phone. So as well as a new system partition (the main stuff for Android), you'll probably get a new hboot, new radio, new recovery. Those *might* all have increased security which is a lot more difficult to crack. So generally you should not flash it until we know it's "safe" to do so, i.e. it can be re-rooted and S-OFF'd etc.
[G2 and Desire Z Android Development] androidtoy09:
Ok, thanks for clearing it up. So, RUU is pretty much similar to the method RIM uses to flash its OS on the Blackberries.
[G2 and Desire Z Android Development] Da9L:
Im a little confused here.. So just to clear some things up i hope someone will answer these questions i have.

I have the software on my Desire Z that it came with (1.34.405.5), which i've rooted, S-off'ed and installed another kernel for OC porpuses. This is working fine, but lets say that i wanted to try another rom .. After some time i decide to go back to the stock software and then update to the newest software, would that be a problem? And has HTC released some newer software than the one iam using?
[G2 and Desire Z Android Development] steviewevie:
If you flashed back to stock, that would be fine. But if you flashed a new official update (e.g OTA), then you run the risk of installing something that you can't root/S-OFF.

It is best to steer clear of any official upgrades until they've been checked by the devs here and been given the all-clear.

Given that the phone came with certain areas write-protected, and the devs managed to crack that, we should be expecting HTC to release an even more secure update.

Yes, there is a new ROM out, at the moment for Egypt, that seems to have increased security. It would not be a suprise if HTC rolled out similar security as an OTA update for all existing ROMs. Right now there is something in that Egypt ROM (probably the hboot, at the minimum) which mean existing permanent root and S-OFF methods fail. It may be this is easily cracked again, or maybe it will take some time, who knows.

Bottom line - don't apply any official updates to your phone if it is rooted/S-OFF or you plan to root/S-OFF.

Sent from my HTC Desire Z
[G2 and Desire Z Android Development] blitz69:
perm-rooted g2 stock tmobile rom s-off

ok, my question is....i perm-rooted my g2 and have s-off, does this mean that i cant except the new gingerbread OTA update? ive had my fill of flashing roms with my old windows phone.. att tilt, tmobile touch pro 2, and tmobile hd2. im not looking to flash my g2 with a new rom...no offense to the chefs. love there work. but i only rooted the g2 to get rid of the bs apps that tmobile and google added to the phone. and i thought i heard that wen u root the phone tmobile cant tell wen u tether, so there for no more throttle b/s but thats not true...i must have miss read. but i would like to stay w/the stock rom and still b able to install the Gingerbread OTA. please someone provide an answer for me or point me in the right direction. thank you in advance.... sorry if the answer is already provided somewhere and i over looked it, i tend to do that a lot.
[G2 and Desire Z Android Development] steviewevie:
The trouble is, HTC/T-Mobile don't want you to root and/or S-OFF your phone, because it's a lot easier to end up bricking the phone if you don't know what you're doing. They put greatly increased security on the G2/DZ/DHD when they came out, in order to help prevent this.

Now this security has been cracked, we can expect HTC/T-Mobile to try and increase security even further (e.g. closing loopholes that let our current methods of root/S-OFF work) in future updates.

So if you accept any future OTA, you run a high risk of accepting something that will lock you out of root and S-OFF, at least temporarily, and possibly permanently (depending on how good a solution they come up with).

If you are not bothered about root/S-OFF, then that's fine of course.

This doesn't mean that you necessarily have to switch to a custom ROM to get updates though. If you stay with the stock ROM (and I'm still on a stock ROM too right now), then just do not accept the update when an OTA comes out, and keep checking these forums to see when the devs say that they can root/S-OFF with the new version. When they say it's ok then you know you can apply the update and still get root/S-OFF.

This already happened with the G2. Very soon after release, but after rooting had been achieved, there was an OTA. Most people here decided to wait until the OTA had been looked at, and sure enough there was a small adjustment needed to the rooting method. But of course this OTA was before HTC had a chance to respond to the cracking of the security, so as I said, any future updates may well require a lot more time and effort from the devs to investigate and crack again.
[G2 and Desire Z Android Development] blitz69:
Ok. Thank you very much
[G2 and Desire Z Android Development] ericjosepi:
Will this muff up my phone if I factory reset it by using the Power+Volume Down option?
[G2 and Desire Z Android Development] Ganii:
Ok,there is a new gfree method to get root and S-Off.

And gfree can now also be used to set radio S-ON.

But what about the backup "part7backup-1291675121.bin"

which gfree created at my sdcard?

No longer needed?

And with the new root and S-Off method,is it now possible to

to flash stock RUU 1.34.405.5 to get all original?

Because with old UBERROOT method this doesn`t work!
[G2 and Desire Z Android Development] Yanardag:
What do you mean with gfree?

Is my waranty broken When i execute radio s-off?

Is it possible to make it radio s-on?
[G2 and Desire Z Android Development] Ganii:
Yes,warranty is broken,but with the new gfree method

you can go back to S-ON:

http://xdaforums.com/wiki/index.php?title=HTC_Vision#Rooting_the_G2
[G2 and Desire Z Android Development] steviewevie:
If you do a factory reset then I think you'll lose root, but you can get it back again easily enough. The issue for this thread is flashing new updated stuff from HTC etc.
[G2 and Desire Z Android Development] steviewevie:
You might still need that backup, e.g. if you don't know what your old CID was and you want to un-do that bit too. I would keep it.

Sorry I don't think I understand your last question though, or why you say the uberroot method (I'm personally not keen on that name, it's just the usual method using Visionary/rage with gfree, not a new method) doesn't work.
[G2 and Desire Z Android Development] Ganii:
Ok,so I can go back to S-ON with gfree commands from here:

http://xdaforums.com/wiki/index.php?title=HTC_Vision#Rooting_the_G2

But for CID (you mean SuperCid right?) I need the backup?

And with the last question which you don`t understand,I mean

with flashing the HTC RUU 1.34.405.5 I don`t go back to S-ON

and original CID whether I use UBERROT method or this from here:

(Rooting the Vision (G2/DZ) and DHD)

http://xdaforums.com/wiki/index.php?title=HTC_Vision#Rooting_the_G2
[G2 and Desire Z Android Development] felixchess5:
Thanks for the advice, I will stick myself with the current rom for a while :)
[G2 and Desire Z Android Development] steviewevie:
Yes, I mean to go from your SuperCID back to your regular CID. You might not know what your original CID was.

Yes, if you flash a stock ROM then it won't affect your S-OFF and CID status (or SIM unlock). These are stored in your radio configuration partition, and not in any of the partitions which are overwritten by the ROM flash.