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

[android-developers] Re: savedInstanceState null?

2011-01-21 Thread Emanuel Moecklin
onSaveInstanceState() is used to save per instance state while SharedPreferences is used to save persistent data across sessions. Whenever you start the app the SharedPreferences are there, data saved in onSaveInstanceState() is gone once the app has been shut down. onSaveInstanceState() can be us

[android-developers] Re: savedInstanceState null?

2011-01-20 Thread Chris
OH obviously, I don't know why I was so set on using the savedInstance... Anyway SharedPreferences works great. Chris On Jan 20, 3:03 pm, TreKing wrote: > On Thu, Jan 20, 2011 at 1:48 PM, Chris wrote: > > I'm trying to save the state of my app while I shut it down but every > > time I bring

[android-developers] Re: savedInstanceState Textview text problem.

2009-07-28 Thread Ne0
Thanks, i will approach it that way. On 28 July, 11:28, Mark Murphy wrote: > Ne0 wrote: > > My activity displays a text view where the text is constantly changed > > with updates from a LocationListener. When returning to the activity > > after navigating away, the text view comes back with the

[android-developers] Re: savedInstanceState Textview text problem.

2009-07-28 Thread Mark Murphy
Ne0 wrote: > My activity displays a text view where the text is constantly changed > with updates from a LocationListener. When returning to the activity > after navigating away, the text view comes back with the > savedInstanceState state but any changes to the text in the text view > dont. How d

[android-developers] Re: savedInstanceState

2009-03-12 Thread Dianne Hackborn
You can't, your object must be a Parcelable and implement the protocol for marsalling/unmarshalling itself. On Thu, Mar 12, 2009 at 6:21 AM, Mr.No wrote: > > Hello, > > how do i put a Obect(or a HashMap) into the Bundle? > rgds F.Hildt > > > -- Dianne Hackborn Android framework engineer hack.