Ok, so I have been struggling for a couple days with this, and I hope someone can help me.
I want Android to always run my splash screen activity, because I load a bunch of data from web services that I need throughout the rest of the app. This works fine with the flag android:clearTaskOnLaunch="true" set when you launch the app from the home screen.
Where it does not work so well is the long press of the home button and then selecting the app. In that case it starts the app in whatever random spot the user left it last. The problem is that if the app has been killed due to memory, it still shows in that recent apps list and when a user restarts the activity from the long press, all my data is gone so the app force closes.
So, my ugly workaround is to remove the app from the recently run list. I would much rather it showed up there but that it started my app the same way as if it was clicked on the home screen.
Anybody know how to do this? The ebay app pretty much does this, so I know it can be done.
-frank
Instead of reading your data in OnCreate, you could do it in OnResume. See the flow chart here:
http://developer.android.com/reference/android/app/Activity.html
as you can see, OnResume is always called whether the app is created initially, resumed from pause, or reloaded.
kaediil said:
Ok, so I have been struggling for a couple days with this, and I hope someone can help me.
I want Android to always run my splash screen activity, because I load a bunch of data from web services that I need throughout the rest of the app. This works fine with the flag android:clearTaskOnLaunch="true" set when you launch the app from the home screen.
Where it does not work so well is the long press of the home button and then selecting the app. In that case it starts the app in whatever random spot the user left it last. The problem is that if the app has been killed due to memory, it still shows in that recent apps list and when a user restarts the activity from the long press, all my data is gone so the app force closes.
So, my ugly workaround is to remove the app from the recently run list. I would much rather it showed up there but that it started my app the same way as if it was clicked on the home screen.
Anybody know how to do this? The ebay app pretty much does this, so I know it can be done.
-frank
Click to expand...
Click to collapse
In the onResume for the activity that is crashing, you could test your data to see if it's still there, if it's null you can run the code to repopulate it again.
So I'm having a rather annoying issue with the icons on my device. In order to save space I moved all my games and large programs i only use rarely to the sd card. i'm trying to keep more space for running programs and such (which is another issue i'm having, seems my phone wont keep more than 100mb running space without me constantly hitting the kill button. and even then its annoying that at start up i have 180mb running space, but quickly loose 100mb and can't get it back till i reboot).
anyway, seems that all the programs i've moved to the storage card only show the generic android icon rather than their icons. this is only on my home screen tho. the programs show the correct icons in the program menu. is there a way to refresh the home screen after boot to fix this? or anything i can do other than putting them back onto my phone?
You could force stop the launcher by going into manage applications. That'd refresh it.
^ Shift Faced
i don't see any process called "launcher" or any with that in the name either.
viperv303 said:
i don't see any process called "launcher" or any with that in the name either.
Click to expand...
Click to collapse
Sorry, you didn't specify which launcher you are using. If it's stock then it's called Sense. Or you could've downloaded one from the Market such as Launcher Pro Plus, ADW, ADW Ex or Zeam (my personal preference).
^ Shift Faced
yeah, I'm still on sense. for now i like it, will branch out and see what others offer eventually.
so if i kill it? then what? will it auto restart or something?
viperv303 said:
yeah, I'm still on sense. for now i like it, will branch out and see what others offer eventually.
so if i kill it? then what? will it auto restart or something?
Click to expand...
Click to collapse
Yup. When you press the Home key.
^ Shift Faced
cool, thanks. seemed to have solved it, mostly. a few of the apps are still stuck with the default android icon, but the rest are now displaying correctly. guess its a side effect of installing apps to the sd card?
Not sure... I've seen apps on SD take a moment to show after a boot but they always show up for me. Unless the the app is no longer actually installed.
^ Shift Faced
I had this issue repeatedly with angrybirds when it was in a homescreen folder. Since I moved it out of the folder it hasn't done it.
Sent from my PG06100 using XDA App
seems that is where this problem happens the most. i made folders and put my short cuts in there to help minimize the number of icons on the desktop. was under the impression that it'd help ever so slightly in making it quicker (device wise). but i'm starting to think it doesn't matter that much...
While generally being quite happy with the Gingerbread update for my Desire Z, clearly there are a few glitches.
First of all, my DZ is a Nordic version with the characters Æ, Ø, Å, Ä and Ö on the hardware keyboard.
On 2.2 before the OTA there was a bug which consistently caused capitalization of Æ, Ø and Å (æøå) when using the hardware keyboard. I don't know about Ä and Ö which are only used in Swedish and not in Danish and Norwegian.
This bug is now fixed using the native keyboard but still present using Scandinavian Keyboard which I have installed from Market. I must admit that I have not contacted the developer to ask if this could be a bug in the app.
Sadly, I have now experienced another bug related to the hardware keyboard after updating to 2.3 - today it happened for the second time.
When typing in Whatsapp and the SMS app (and possibly other apps) using the hardware keyboard pressing "S" will open the SMS app, pressing "G" will open Gmail and pressing "B" will open the built-in browser (not Dolphin HD which is set to default). This is fixed by a reboot (temporarily, it seems). Incidentally, the bug disappeared just now without a reboot while checking if it was also present in Gmail.
The missing pictures bug in HTC's gallery app is still there - still using QuickPic.
Anything that is not listed here - please add to the thread.
EDIT:
As many others I also get the constant Sense restarting thing which is driving me insane!
Also the brightness setting itself to maximum many times.
A handful random reboots. A couple happened with no apps open and doing nothing on the phone - I just happened to notice when it rebooted.
Since monomer888's advise I haven't had another shortcut typing bug happen (as of yet). Thanks!
I'm running software version 2.42.405.2 CL84109
whpsnp said:
[..]Sadly, I have now experienced another bug related to the hardware keyboard after updating to 2.3 - today it happened for the second time.
When typing in Whatsapp and the SMS app (and possibly other apps) using the hardware keyboard pressing "S" will open the SMS app, pressing "G" will open Gmail and pressing "B" will open the built-in browser (not Dolphin HD which is set to default). This is fixed by a reboot (temporarily, it seems). Incidentally, the bug disappeared just now without a reboot while checking if it was also present in Gmail.[..]
Click to expand...
Click to collapse
You can try this:
Originally Posted by Snotmann
If i type a "S" in a SMS, on the hardware keyboard, i get the message that the SMS will be saved and the screen went back to the SMS Overview.
Did someone have the same issue ?
Click to expand...
Click to collapse
Have had this happen to me before. Fix it by doing this:
Settings -> Applications -> Quick Launch -> Delete all shortcuts
Also [..] restart just to be on the safe side.
Click to expand...
Click to collapse
No guarantees but it might work.
My phone doesn't show album art in the music player, and it still doesn't work after several restarts, and dismounting and mounting sd card. Hope it gets fixed soon
Sent from my HTC Vision using XDA App
- when exit from a fullscrren app, sometimes the status bar doesnt fit all screen, leting a space (about 10% of the screen space). Expanding the status bar fix it
- Portuguese translation erros remains from the first rom 1.34!!!!!:
Call volume is "Volume de ligação recebida" - shuold be "Volume da ligação"
The tips widget is "Dicar", should be "Dicas"
And a few others, that I don't remember now.
I've only seen some minor UI bugs and most recently, the capital letters typing a text message. That only happens when I try to type too quickly after opening the thread.
I must admit that I havent seen the gallery bug yet but then I don't really use the camera.
Might be worth posting your version number to track regional bugs.
Mine is 2.42.405.2
Brightness will be stuck at max waking from sleep sometimes. Brightness slider has no effect. Fixes itself if you sleep then wake again.
Playback of videos not taken with the camera is very stuttery. THis wasn't the case in 2.2.
I had the missing gallery pictures problem and the brightness problem as well-I have it normally on auto-bright, but sometimes when I wake it or reboot it, it automatically changes to full brightness and I have to select auto-bright again.
Also, Sense restarts after almost anything.
After installing, deleting or moving an app, returning to the home makes sense crash and restart.
I have a gallery bug aswell, can click on some line with pic and wording not shown.
I had once a bug in the unlock pin screen, tapping 7 was actually hitting 4, same if I hold on 7, i see the pressed status of the 4 button onscreen. It happened when i had no charge at all and plugged the phone to the usb port of my running pc. It was also impossible to switch on the phone, i had to plug it out.
Can't remember more right now.
Sent from my HTC Vision using XDA App
Sense crashing sometimes when leaving app
Newsreader crashing when returning from browser
The shortcut bug (pressing Searchkey once on hardware keyboar solve this)
The 10% status bar bug
Coming up some more soon
Sent from my HTC Vision using XDA App
I was wondering if anyone had noticed if there is still this bug or if you could test to check for me:
Start an app in portrait mode, slide out the keyboard for landscape mode, hit the home key. Do your apps/widgets load right away or within a couple seconds? For me it has always been that it will take 15-20 seconds for the screen to load, all I will see is the status bar and my background, no loading screen, no errors, nothing but that. Let me know if you had this prior to updating and also if you have it after, thanks!
ME TOO!
nicolaibaun said:
My phone doesn't show album art in the music player, and it still doesn't work after several restarts, and dismounting and mounting sd card. Hope it gets fixed soon
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
I also don't have album artwork shown in my music app :| Do you guys think HTC will bring out a software update for these bugs?
noneabove said:
I was wondering if anyone had noticed if there is still this bug or if you could test to check for me:
Start an app in portrait mode, slide out the keyboard for landscape mode, hit the home key. Do your apps/widgets load right away or within a couple seconds? For me it has always been that it will take 15-20 seconds for the screen to load, all I will see is the status bar and my background, no loading screen, no errors, nothing but that. Let me know if you had this prior to updating and also if you have it after, thanks!
Click to expand...
Click to collapse
Happens to me sometimes as well. Also, waking up by opening the keyboard may cause the widgets on the home screen to show after a few seconds.
Sense crashing sometimes when leaving app
The 10% status bar bug
Click to expand...
Click to collapse
I've experienced these as well. Funny thing is, I only experience the 10% bug in Facebook app.
Besides that "desktop loader" and sense-crash problem I got some strange issue with my mobile data connection - searched the forum for a while, haven't found anything, so I'll report it as a gingerbread bug.
Sense displays an activated connection all the time (3g/H - with those two little arrows flashing, thus indicating some traffic) but, unfortunately totally random, it decides to stop working.
Only way to check the data connection is browsing google. Turning off/on fixes the problem temporarily.
In addition, the speed of my mobile connection seem to be capped at some point - typically, depending on my location, it'll stick with 3G instead of H until I reboot. (noticed a remarkable speed difference by browsing the web before and after reboot)
Anyone similar problems?
Desire Z - 2.3.3 Stock
@Kueber;
While i've only seen the sense reload when my phone is uunder a lot of CPU load, I have seen it.
Regarding the data issue, i've only seen it with a certain app, "London Journey" This would retrieve some downloads, but not others. Maybe its a change in the data API relating to the new Download API. Using any other app was fine.
In maybe a slightly related issue, I've noticed that when in GPRS or EDGE, its much more reluctant to go to HSPA, especially when the H signal is low. However, this would normally just drop straight back to G / E anyway so is an improvement in my mind. It also seems quicker to see the HSPA connection has been lost and goes to G / E.
In your case, if location determins 3G rather than H, it could indicate you mobile provider may not have upgraded all their sites yet. If it passes data, then its stuck at 3G.
Craig
craiglay said:
@Kueber;
While i've only seen the sense reload when my phone is uunder a lot of CPU load, I have seen it.
Regarding the data issue, i've only seen it with a certain app, "London Journey" This would retrieve some downloads, but not others. Maybe its a change in the data API relating to the new Download API. Using any other app was fine.
In maybe a slightly related issue, I've noticed that when in GPRS or EDGE, its much more reluctant to go to HSPA, especially when the H signal is low. However, this would normally just drop straight back to G / E anyway so is an improvement in my mind. It also seems quicker to see the HSPA connection has been lost and goes to G / E.
In your case, if location determins 3G rather than H, it could indicate you mobile provider may not have upgraded all their sites yet. If it passes data, then its stuck at 3G.
Craig
Click to expand...
Click to collapse
Hey there, thanks for your answer.
The strange thing is that my previous phone (HTC Legend) always displays a HSDPA connection (speaking of my hometown as testing area). My Desire Z also states a H connection until it get capped somehow. Then I reboot and the little H is back. It is definitely not a display bug, since the speed difference, as already mentioned earlier, is noticeable after rebooting.
Is there some kind of a "user control" in areas that aren't fully covered by a mobile provider, so that my connection may drop due to non using the phone? (It happens normally while phone is sleeping) And is it possible that my Legend, 2.2 stock btw, just isn't very accurate when it comes down to displaying the current connection speed? - to mention your point of a quicker HSDPA loss on gingerbread.
greetings
I also have the Sense constantly restarting. It is really, really, REALLY annoying!
It happens about 50% of the times when I return to the home screen from any app, even the browser.
Has any of you tried uninstalling the Gingerbread update? Don't even know if it is possible, though.
beside the above bugs. the missing pictures bugs also affects my sound files. i can't change my ringtone or alarm tone. it will change back to the default ringtone every few hrs as the sound files went missing on my sd card. has to do a sdrescan to get it back. but few hrs later it will go missing again & ringtone either be empty or back to default.
marlar said:
I also have the Sense constantly restarting. It is really, really, REALLY annoying!
It happens about 50% of the times when I return to the home screen from any app, even the browser.
Has any of you tried uninstalling the Gingerbread update? Don't even know if it is possible, though.
Click to expand...
Click to collapse
yeah it drives me crazy too. Any chance to downgrade easily before update?
I've had the exact same bugs as described above, it drove me insane.
after 3 days or so i was fed up with it and downgraded and installed Virtuous 2.0. the bugs are gone and i've got a stable, rooted phone.
has anyone tried to contact HTC about these bugs? I myself was too lazy to write an email..
Hi all, a noobie here, I have a DZ running 2.3.3, although I had this problem before the OTA update. When I press the home button, on what is becoming annoying frequently, it crashes, the screen goes white with HTC in green, then the home screen appears, greyed out, with loading in the centre, for 15 to 30 seconds. I have tried uninstalling various apps, to see if they are the cause but it seems to make no difference. Any ideas to at least try and find out what is causing this? I have thought of doing a factory reset but would rather not if there is an easier way.
I have the same problem, It's annoying every now and again, but i've tried a factory reset which hasn't helped in anyway.
I'm not impressed with the 2.3.3 ROM..
It sounds like the launcher is closing itself to save memory. You probably have a memory-hogging app constantly running in the background. You could try force-closing the app in the App Settings menu, or you could install an alternative launcher such as LauncherPro (link) off the Market.
Just trying launcherpro now, so far so good, as stated earlier, I'm a join, would I be correct, from what I have seen so far using it, that I am no longer using HTC Sense?
The_WSD said:
Just trying launcherpro now, so far so good, as stated earlier, I'm a join, would I be correct, from what I have seen so far using it, that I am no longer using HTC Sense?
Click to expand...
Click to collapse
Your ROM is still HTC Sense. You're just using a new launcher.
Its windows, why cant I kill the apps running in my background. When I hit the back button all the way out of an app it takes me to the home screen, if I hit that app again later it takes me back to where I thought I had quit out of. When I use my computer I run one thing at a time, My android phone would exit all apps when I used its included task manager.
Sometimes the phone even gets laggy because of the amount of apps that are still running. Yes I turned everything off of the background apps settings, nothing should be running when I exit it.
I am new to windows phone, and doing a restart is the only way to set all apps back to the original pages.
Any help would be appreciated.
That is why i return the phone
Hold the back button down for <1sec and swipe apps away
even when i do that it re starts where i was, its a small annoyance but its nice learning a new OS