Launching a dialog from preferences?

by jsdf » Sun, 08 Mar 2009 07:41:38 GMT

Sponsored Links
Is there a way to launch a dialog (say, the dialog I show to users the
first time they launch the app) from a preferences entry?

I don't see any examples doing this in the API Demos, nor have I seen
it out in the wild.

I do see a class called DialogPreference, but this doesn't seem to be
what I want.


Launching a dialog from preferences?

by Mark Murphy » Sun, 08 Mar 2009 07:57:41 GMT


If you just need it from the preferences activity, you could always put
it as an option menu choice.

Mark Murphy (a Commons Guy) 

Android Training on the Ranch! -- Mar 16-20, 2009 


Sponsored Links

Launching a dialog from preferences?

by Stoyan Damov » Mon, 09 Mar 2009 07:07:41 GMT

 Search this list for SeekBarPreference. Marc Tan (thanks again Marc)
shared an example of a DialogPreference subclass which displays a seek
bar. You can use it as a starting point to create your own dialog and
stick whatever you need in it.



Other Threads

1. Amazon buy-$25-get-$5 music credit works great with Android!

fyi I just tested it, and the Amazon MP3 app of course automatically
applies the $5 credit.
(below is the email you get automatically after purchasing $25+ of

Happy Holidays!


Dear Customer,

As someone who purchased $25 worth of products from Amazon's Music or
Electronics Stores between November 28, 2008 and December 25, 2008,
you've qualified for a $5 promotional credit good for music downloads
from Amazon MP3,'s digital music service.

To redeem your $5 credit, simply click the "Buy MP3" or "Buy MP3
album" button on any MP3 detail page. Your credit card will not be
charged for Amazon MP3 music downloads until your $5 credit has been
used or expires. Each time you make an additional Amazon MP3 purchase
by January 31, 2009, we will automatically apply your promotional
credit until you have used its full $5 value. You'll see the
promotional credit applied to your purchase in your purchase
confirmation e-mail.

In order to redeem your credit for Amazon MP3 downloads, you must
accept the Terms of Use for Amazon MP3. Taxes apply in some states.
Credit valid for Amazon MP3 downloads only--not for other
merchandise. Your $5 Amazon MP3 credit must be redeemed by January 31,

Amazon MP3 music downloads play on virtually any MP3 player, including
iPods and Zunes. Downloading from Amazon MP3 is quick and easy, and
MP3s are automatically added to your music management application of
choice when you use the Amazon MP3 Downloader. Try it out and get the
music you love, with $5 off your purchases on us.

Visit our store at

Thank you,


2. Top Secret Fat Loss Secret ,burn The Fat Feed the Muscle

Top Secret Fat Loss Secret ,burn The Fat Feed the Muscle


3. 2 or more tabs in xml

4. Tracking the CALL button from a service? - Possible?

5. Help screen dialog

6. root access for 300$? (dev phone)

7. List View + downloading image in a background thread