Android Question Update to version 4

Discussion in 'Android Questions' started by aviario, Feb 13, 2015.

  1. aviario

    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
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Your app uses Android 2.x theme. Users running Android 4 devices expect the app to look with Android 4 theme. Anyway you can set the targetSdkVersion to 5 if you want to keep the old style.
     
  3. aviario

    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.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Android 4 theme is the one that you didn't want. Setting targetSdkVersion to 11+ will cause your app to use it.
     
  5. aviario

    aviario Active Member Licensed User

    Thaks erel.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice