Rotation causes a complete teardown and recreate of your Activity, as you
have already learned.
So here are some options to consider:
- overide onSaveInstanceState(), and place your info into a Bundle, and
pull it back out in onCreate()
- Application instance (android.app.Application)
-
I tried something similar back in Android 1.0/1.1 using only wifi.
What I found is that once the wifi connection was lost, the only way
to get it back was to fully wakeup the phone.
I think it may be different with the later versions of the SDK, but in
case it's not...
--
You received this
2 matches
Mail list logo