PreferenceActivity with blur behind?

by Ralf » Mon, 22 Dec 2008 09:26:05 GMT

Sponsored Links
 I'm trying to use a PreferenceActivity with prefs inflated from XML
and at the same time I'd like the window to blur whatever was behind
(i.e. my previous activity where I invoked the settings from.) I tried
something like this below but the background is always black (or
whatever color I select) without any blur/transparency.

Is it possible? what am I doing wrong?

public class PrefsActivity extends PreferenceActivity {

        protected void onCreate(Bundle savedInstanceState) {
        // Have the system blur any windows behind this one.


            View content = findViewById(;



PreferenceActivity with blur behind?

by Colin » Thu, 12 Feb 2009 03:02:58 GMT

 Im also interested in learning how to do this... any ideas?


Sponsored Links

PreferenceActivity with blur behind?

by Rohit » Sat, 07 Mar 2009 05:20:26 GMT

 Make sure that the activity you are calling has the theme attribute
set to Theme.Dialog in the Android Manifest as follows:




PreferenceActivity with blur behind?

by Dianne Hackborn » Sat, 07 Mar 2009 05:25:38 GMT

 Or Theme.Translucent.

There is an API demo showing how to do this with an activity in general,
which should be no different than a preference activity.

Dianne Hackborn
Android framework engineer

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.


Other Threads

1. thread.join() works only with debugger

this segment of code works when its in the de{*filter*} and a break point
is set( a break point anywhere in the program).  But, infinate loops

public String runCommand(function cmd) throws InterruptedException
return cmd.ans

basically its suppose to run until cmd is done but it keeps looping....


2. Does any one has cross compiler for android

There are some files with unknown chars in file name in my android mobile 
which I can't delete them. I tried Root Explorer, ASTRO, and other commands, 
none of them worked.
Convmv is a very useful tool to replace unknown chars from unknown charsets 
in filenames. 
 I find that the tool convmv may help on this. But I don't have cross 
compiler. Does any one can do a special favour to compile one for android? 
Thanks in advance.:)

The description of convmv from :
convmv can convert a single filename, a directory tree or all files on a 
filesystem to a different encoding. It only converts the encoding of 
filenames, not files contents. A special feature of convmv is that it also 
takes care of symlinks: the encoding of the symlink's target will be 
converted if the symlink itself is being converted. 

It is also possible to convert directories to UTF-8 which are already 
partially UTF-8 encoded. 

The source package can be found at


3. Problem passing parameters with KSOAP2 at a PHP webservice

4. please provide SDK components && API docs download links

5. Change phone setting programatically

6. Tweakker 'All Operator APNs | Beta" app

7. problem with Checkboxes inside ListView using BaseAdapter