Theme.Dialog for PreferenceScreen child does not work

by Dianne Hackborn » Mon, 26 Jan 2009 04:20:53 GMT


Sponsored Links
 I can't help you off-hand with the problem, but for what it's worth
preferences really aren't intended to be used with a dialog theme.  Actually
I would stay away from the dialog theme for all but very simple things (like
alerts), since the border takes so much space away from your UI.

Of course in general I don't like dialogs. :)







-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



Theme.Dialog for PreferenceScreen child does not work

by Stoyan Damov » Mon, 26 Jan 2009 16:48:48 GMT


 


The thing is that if I don't use the dialog theme, the preference
screen would cover my entire view and Android will eventually destroy
it (I've seen this already). So I'm pretty much forced to use the
dialog theme - I don't like it either :(

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


Sponsored Links


Theme.Dialog for PreferenceScreen child does not work

by Stoyan Damov » Mon, 26 Jan 2009 16:50:05 GMT


 




That is - Android will destroy the activity, which started the
preference activity because it's view is completely covered by the
child activity's view.

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



Theme.Dialog for PreferenceScreen child does not work

by Stoyan Damov » Mon, 26 Jan 2009 20:41:25 GMT


 


Yes, I understand that - the thing is that I don't want my activity to
be stopped, because it's quite heavyweight, might be playing
background music, etc. so I'm left with the dialog theme.

Cheers,
Stoyan

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



Other Threads

1. Ubuntu Jaunty and adb not playing well together

Trying to get an Ubuntu Jaunty system to talk to a dev phone. I have
the 1.5 sdk and the new master branch of the sources.

 If I change the udev rules to:

SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"

...I'm able to mount the memory card and read and write to it. But the
command:

adb devices

...shows only the emulator (so adb appears to work with the new sdk),
but not the handset.

Any ideas?
--~--~---------~--~----~------------~-------~--~----~

2. audio video inconsistency

In my app, a user picks video content with
   Intent i = new Intent(Intent.ACTION_GET_CONTENT);
   i.setType("video/*");
   startActivityForResult(i, MEDIA_SELECTED);

and they start recording video with
   Intent i = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
   startActivityForResult(i, MEDIA_SELECTED);

Now, I want to do the same for audio, but I can't:
   Intent i = new Intent(Intent.ACTION_GET_CONTENT);
   i.setType("audio/*");
   startActivityForResult(i, MEDIA_SELECTED);
doesn't start audio selection, but it triggers a chooser with which a
user can select audio capture or selection. There's no
ACTION_AUDIO_CAPTURE intent.

Why is the behavior for video and audio different?
--~--~---------~--~----~------------~-------~--~----~

3. Configure my Account without G1

4. some issue about SystemProperties.set(String key , String value)

5. How to dismiss Spinner's Dialog automatically

6. some issue about SystemProperties.set(String key , String value)

7. how to read values from the server using Http GET method