Android Question Holo.Light Question

Douglas Farias

Expert
Licensed User
Longtime User
Hi i dont find the correct information at google
what the minimal api to theme
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo.Light")
?

11 or 14?

and on my manifest its correct use
<uses-sdk
android:minSdkVersion="11" android:targetSdkVersion="11"/>

if is 11 the minimal xD
 
hmm
but what the minimal version to holo.light minSdkVersion="14"?
 
Upvote 0
It will work even if the theme doesn't exist so there isn't really any minimum version.

The holo theme was added in Android 4 (api 14).
are you sure about this? I used to get an error if I tried to set theme as holo on older devices. Hence I did the version based theme tutorial. I also get an error on Wear watch if I set theme to holo.
 
Upvote 0
Sory for this question xD but its possible add function like try on the manifest?

try put holo.light
catch
theme.ligh

its possible make this in manifest?
 
Upvote 0
I think try-catch blocks are not allowed/possible in manifest-editor.
 
Upvote 0
Back
Top