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. How to build C++ library within android build system

Hi all,

As i know, android has a mini version support on C++ library. But I
have a third party source code that implement by C++ and use more
library than android support. How can I build the third party library
within android build system and work fine?  I try to modify make file
to build but fail in linking process, this just because i don't use
the --no-undefined parameter in compiler process. If I use the --no-
undefined parameter in compiler process, shared library can be built
out but fail in library loading process

Is there any one can give me a way to solve this problem?  I think
this kind of problem will confuse many android porting guys....

Best regards
Michael

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Resolution specific graphic packages

Currently i could provide WVGA graphics for my application but if i do
the HVGA devices would run out of internal memory so instead i use
HVGA graphics and scale them on WVGA devices.
Are there any plans to change that so that a device only downloads the
graphics it needs?
Or as workaround are there any plans to enable users to install
applications on the SD-Card?

Thanks
Michael

-- 

3. How to set tooltip to a button

4. android 1.5 installing older version over newer version really messes you up

5. android 1.5 installing older version over newer version really messes you up

6. Supporting Smaller Screen Sizes <supports-screens>

7. Different screen sizes + API level