Background from PreferenceActivity is not applied to sub-PreferenceScreen

by Wouter » Fri, 29 Jan 2010 07:05:58 GMT


Sponsored Links
 Hi,

I am testing my application on a Nexus One and i have some problems.
My theme is Light and when an sub PreferenceScreen is displayed, the
window background becomes black instead of keeping the
PreferenceActivity's one.

<PreferenceScreen android:title="main preferences">
    ...
    <PreferenceScreen android:title="sub screen">
    </PreferenceScreen>
</PreferenceScreen>

What is the problem?

Wouter

You can find my code here:

 http://pastie.org/798564 

--



Other Threads

1. Droid X problems with SEARCH_LONG_PRESS intent

Hi,

I recently tested out my application that listens for a
SEARCH_LONG_PRESS intent. On my droid incredible the intent gets
registered and I can use a long press of the search button to bring up
my app, however, on the droid X it doesn't work.

Does anyone know why this doesn't work on the droid X, how I might go
about debugging it, or if there is a known work around?

-- 

2. Unit Testing Functional Testing

I have created an app that sends intents among multiple activities.
After doing some research i have found that the ActivityUnitTestCase
class is designed for unit testing while the
ActivityInstrumentationTestCase2
is designed for functional testing. I understand the use of methods
such
as setUp(), tearDown(), and testPreconditions(). However i am having
a
little difficulty in trying to figure out what user-defined-tests to
create in
the previously mentioned classes. I know that there are a few methods
that cannot be called in certain classes.

To be more specific, if i am in activity A and i click a button then
it calls startActivityForResult() which starts activity B. I then
send
an intent back to activity A which is handled in the
onActivityResult() method. How can i test that the actual result in
onActivityResult() is equal to the expected result?

I have been looking extensively for any kind of examples that would
help clear up this confusion. If anyone could provide any assistance
i
would greatly appreciate it.

-- 

3. Available databases for Android

4. Activity.getFilesDir() how to get that directory without using an instance of Activity

5. WTNarsis dikit :p

6. Problem of "debug build".

7. Google Nexus S: Top Android Smart Phone Now