Android Question can't set theme

Discussion in 'Android Questions' started by gkc1956, Apr 27, 2015.

  1. gkc1956

    gkc1956 Member Licensed User

    If I change the theme using the manifest editor :
    SetApplicationAttribute(android:theme, "@android:style/Theme.Holo.Light")
    I get :
    AndroidManifest.xml:20: error: Error: No resource found that matches the given name (at 'theme' with value '@android:style/Theme.Holo.Light').

    Same thing if I try and set Holo.Dark (which I believe is the default).

    Thanks

    Gordon
     
  2. thedesolatesoul

    thedesolatesoul Expert Licensed User

    what does your android.jar point to? make sure its above api14 or whatever 4.x.x is.
     
    NJDude likes this.
  3. gkc1956

    gkc1956 Member Licensed User

    I use api 8, what themes can I use... ?
     
  4. thedesolatesoul

    thedesolatesoul Expert Licensed User

    none
    use a higher api
     
    NJDude likes this.
  5. gkc1956

    gkc1956 Member Licensed User

    I forgot to say that I use the compatibility library for API14... Does that make a difference ?

    Thank
    Gordon
     
  6. thedesolatesoul

    thedesolatesoul Expert Licensed User

    do u have an aversion to changing the android.jar version you compile against?
     
  7. gkc1956

    gkc1956 Member Licensed User

    I'd love it, but unfortunately my users wouldn't like it, they have old (2.2) phones...
     
  8. thedesolatesoul

    thedesolatesoul Expert Licensed User

    the platform-sdk is backwards compatible, you can always use the latest and it will work all the way back (unless you use a feature from the latest android.jar that doesnt exist on older platforms).
    for e.g. themes will just default to the device default theme on android 2.2
     
    NJDude, RandomCoder and DonManfred like this.
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