Android Question Update to version 4

aviario

Active Member
Licensed User
Hi.
First of all sorry for may english.

We have a development in version 3.8 and want to pass to version 4.
When we open the project in version 4, indicates a warning that missing the theme line in manifiest file.

We have a screen with a spinner

if we codding the manifiest file like this:

AddManifestText(
<uses-sdk android:minSdkVersion="4" />
<supports-screens android:largeScreens="true"

android:normalScreens="true"

android:smallScreens="true"

android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")

the spinners display like tihs
spinner0.jpg


but if we codding the manifiest like this

AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"

android:normalScreens="true"

android:smallScreens="true"

android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")

the spinner display like
spinner1.jpg


how we would have to do to display the spinner well and remove the warning?

Thaks
 

aviario

Active Member
Licensed User
Thaks for reply.

How we can change android 2.x theme, to android 4?
In first manifiest we haven't the theme line.
 
Top