-1

In my application i am using:

android theme = @android:style/Theme.DeviceDefault.Light.NoActionBar.Fullscreen but eclipse shows error.

error is: required version (API 14) and current min is 7.

but in another application i am using same code it doesn't shows any error ....... why?

my manifest:

<uses-sdk
    android:minSdkVersion="7"
    android:targetSdkVersion="17" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@android:style/Theme.DeviceDefault.Light.NoActionBar.Fullscreen" >
cyborg
  • 15
  • 4
  • Maybe Theme.DeviceDefault.Light.NoActionBar.Fullscreen is available starting from API 14? So it can't be used with API7 – Stan Apr 25 '13 at 18:32
  • Check Android API version in properties of your project: Project -> Properties -> Android. But still can not launch application on Android with API version less than 14. – nfirex Apr 25 '13 at 20:22

1 Answers1

1

Change android:minSdkVersion="7" to android:minSdkVersion="14". It is a code compatibility checking. The theme you are using requires an android version of at least 14, therefore not compatible with versions earlier than 14.

StoneBird
  • 1,900
  • 13
  • 12
  • I know that we can change android:minSdkVersion="7" to android:minSdkVersion="14" but i mentioned above that in another project this code run without any error and i need to be stick with version 2.2 tell me any trick or code through which i can use this theme in version 7 or 2.2. – cyborg Apr 26 '13 at 04:39
  • AFIAK you can't do that without recreating it using support library – StoneBird Apr 26 '13 at 15:59