Android 1.5 SDK and setTheme problem

by Rmac » Wed, 29 Apr 2009 05:56:21 GMT


Sponsored Links
 Before I report this as a bug, has anyone been able to set a theme in
1.5?  What worked in 1.1 no longer does in 1.5 for setting themes.
For example the following:

 protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    ...
    setTheme(android.R.style.Theme_Light);
    setContentView(R.layout.linear_layout_3);
}

doesn't seem to work unless you move the setTheme before
super.onCreate like this:

 protected void onCreate(Bundle savedInstanceState) {
    setTheme(android.R.style.Theme_Light);
    super.onCreate(savedInstanceState);
    ...
    setContentView(R.layout.linear_layout_3);
}

Is this the way themes have to be set or is it a 1.5 bug?
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Problem with Lunar Lander example

Hi,

Was just wondering if any one had played around with the LunarLander
example enough to spot the problem of IllegalThreadStateException.
When the program is run, and exited using the home key then run again
to resume the problem pops up. Has anyone found this problem/fixed it?

Also would I be better using View instead of surfaceview?

Cheers!
--~--~---------~--~----~------------~-------~--~----~

2. Local and Remote Services

After spending few days with Services API, here are some of my questions.  I 
would appreciate your answers and any leads to blogs/postings.

I have already gone through API reference and APIDemos for AlarmService, 
LocalService, and RemoteService.  

- Are there any good sample applications for each?  
- Wouldn't most applications use Local Service? 
- What are some of the applications which would be good candidate for remote 
services but not for local services?
-Is there any other resource apart from API reference, APIDemos and dev guide 
for this topic that one would recommend?    (Some of the blogs are a bit 
outdated)
-To start an Activity from service, the use of Notification with PendingIntent 
is the "best and only" way. Is that correct?

Thanks,
Vipul


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

3. How to set the video in full screen mode?

4. "Cannot delete that URL" exception

5. How to update Gallery

6. How to make the music player recognized the AAC file in cupcake?

7. Operation not permitted