Launching a dialog from preferences?

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


Sponsored Links
 Hi,
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.

Thanks.
--~--~---------~--~----~------------~-------~--~----~



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)
 http://commonsware.com 

Android Training on the Ranch! -- Mar 16-20, 2009
 http://www.bignerdranch.com/schedule.shtml 

--~--~---------~--~----~------------~-------~--~----~


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.

Cheers




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. WebView.addJavascriptInterface - only String and void supported from Java to Javascript?

Hi,
In the object shared between the Java and Javascript code, it appears
that only void and String Java return types are supported. Is this
correct?

I wanted a method that returns a String[] so that my Javascript could
loop over it, but it was never called. I also tried an int, and it
wasn't called either.

However, methods that take a String[] or int as parameters work as
expected.

I tried looking for how this was done in the framework source code,
but it is a native call in BrowserFrame.java.

Any idea? Thanks!
--~--~---------~--~----~------------~-------~--~----~

2. hosting apk files on godaddy shared windows hosting

It's running Windows Server







--~--~---------~--~----~------------~-------~--~----~

3. Playing video in android

4. How to make the sound heard over the phone.

5. transparent textures...

6. Please help me in defining the style of my widget in my theme.

7. How to use android:pathPattern attribute in intent filters?