You could call setEnabled(false) at the point when you call startActivity(), then setEnabled(true) in onResume() as you're coming back to the screen.
On Fri, Oct 1, 2010 at 1:53 PM, DanH <[email protected]> wrote: > If I have a button that starts an activity, and the activity sometimes > takes a second or two to throw up its own view, how can I most simply > and reliably protect against the button being clicked multiple times > and kicking off multiple (identical) activities? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Atlanta: http://bignerdranch.com/classes/android -- 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

