Android Question This app was developed for older versions of android

Fritzi

Member
Hi there,

I am new here and compiled my first app. My phone tells me, that my app was developed for older versions of android.
How do I get rid of this message ?
The manifest looks 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$")
'End of default text.

The app should run from Android version 5, if possible without this ugly message.
Can someone please help me ?

Thank you very much
 

DonManfred

Expert
Licensed User
Longtime User
Replace your manuifest text in the manifesteditor with this one
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true" 
    android:normalScreens="true" 
    android:smallScreens="true" 
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.
 
Upvote 0

jahswant

Well-Known Member
Licensed User
Longtime User
You can also delete everything in your manifest and close it. And the default text will be generated for you.
 
Upvote 0

Fritzi

Member
Replace your manuifest text in the manifesteditor with this one
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.

Thank you very much for your help. Someday I will maybe know, what I am really doing :)
B4A is very cool, but for a newbie, who used VB6, it is still "a little" unfamiliar.
 
Upvote 0
Top