On Wed, Nov 30, 2011 at 3:26 PM, JBirdVegas <[email protected]> wrote:
> Ok I'm working on a splash screen that pauses for 1.5 seconds and
> works great, except for one thing.
> Once the timer is started in onCreate if the configuration
> (orientation) changes then the timer gets reset and then end result is
> it starts my ParchmentActivity.java twice.  How can I prevent the
> handler from sending the intent twice?

If savedInstanceState is null in onCreate(), schedule your Runnable,
otherwise, do not. The savedInstanceState parameter will be non-null
if your activity is being created as a result of a configuration
change.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to