Actually, Noam, I think you need to clarify where your problem is.

Here are some method names to become familiar with:

  Activity.onCreate(Bundle)
  Activity.onSaveInstanceState(Bundle)

The first time through onCreate, the Bundle parameter will be null.
Before pausing, your onSaveInstanceState is called and you can save
state in the Bundle. When resuming your activity again, onCreate is
called with the Bundle from onSaveInstanceState, and with this you can
restore your state.

The onCreate/onResume/etc state transitions are described on the
Activity class page, and you can easily trace through this behavior in
the debugger. I recommend do that.

Craig.



Noam wrote:
> Does anyone have a solution?
>
> Thanks,
> Noam.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to