Monday, May 24, 2010

Re: [android-developers] Re: Global search button removes my dialog, any help to ignore phone's search button click?

genxsol wrote:
> actually i am displaying Eula in dialog on first run.

Why use a dialog? Make the EULA be its own activity. Have the main
activity call startActivityForResult() for the EULA if the EULA needs to
be shown. In onActivityResult(), if the EULA is still not accepted,
finish() (to exit your app).

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

_The Busy Coder's Guide to Android Development_ Version 3.0
Available!

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment