Re: [android-developers] Re: savedInstanceState always null

2011-09-22 Thread kdı gjofd
Android page says..You newer can handle Home button..it is easy to understant.. if you can handle home button you can newer close program..You always start intent..That is bad for users.. For that you cant handle home button press... 2011/9/22, kaciula : > What you are experiencing is a known bug

[android-developers] Re: savedInstanceState always null

2011-09-22 Thread kaciula
What you are experiencing is a known bug (at least known by me for over a year now). Check out my answer here http://stackoverflow.com/questions/3042420/home-key-press-behaviour/4782423#4782423 I've also filed an issue a couple of months ago. The idea is that in some situations, after you press HO

[android-developers] Re: savedInstanceState always null

2011-09-20 Thread Streets Of Boston
I assume that your activities have the default launch-mode. I.e. when started, they will be newly created. Press app-icon: Activity is started and onCreate is called. Press Home-button long time: Your task, that contains your activity, is brought to the foreground. If your process was still runn

[android-developers] Re: savedInstanceState always null

2011-09-20 Thread GregAZ
The only thing I changed in the manifest was the versionCode and versionName. I had made a copy of the project, the renamed it (using Android tools through Eclipse) and discovered this problem. So I exported the original project, signed it, zip aligned it, put it on my phone and it too was doing i

Re: [android-developers] Re: savedInstanceState always null

2011-09-20 Thread TreKing
On Tue, Sep 20, 2011 at 12:38 PM, GregAZ wrote: > #3 is calling onCreate again. If instead of doing step 3 I hold home > down and switch to the app it just resumes, onCreate isn't called > again. > Weirdballs. I'd do a full clean / rebuild, delete your shortcut (if that's what you're using) and

Re: [android-developers] Re: savedInstanceState always null

2011-09-20 Thread TreKing
On Tue, Sep 20, 2011 at 12:21 PM, GregAZ wrote: > But the problem still remains, the bundle is always null even though it is > saved. > Then a new instance of the Activity is being created. You can verify this by printing out the value of the Activity object itself in onSaveInstanceState and onC

[android-developers] Re: savedInstanceState always null

2011-09-20 Thread GregAZ
I'm finally getting some where. I need to read up on the life cycle cuz I'm getting myself screwed up. Here's what's happening: Debug mode: 1. Tap app icon to open app, onCreate is called 2. Hit home button, state is saved 3. Tap app icon to open app, it resumes, onCreate is not called In debug

[android-developers] Re: savedInstanceState always null

2011-09-20 Thread GregAZ
I think I misunderstood when onRestoreInstanceState is called so ignore that part. But the problem still remains, the bundle is always null even though it is saved. I have logging showing me onSaveInstanceState is called. On Sep 20, 12:11 pm, GregAZ wrote: > savedInstanceState is always null. F