Android Question App has Stopped on Android

algPoS

Member
Hi All,
Android is still new to me so please forgive me if this has been asked before

I have just updated to B4A 13.40 and when I complile and send my App to my Motorola Hand held device my App shows "unfortunately, algPoS Mobile has stopped"

The App installs with no Errors as it asks me to OK the install of the App

I have been using android:targetSdkVersion="16" and before the update my app would work perfectly

Could someoe please advise as how I can get my App to work again

Below is the Manifiest from my project if I need to change anything Please tell me and I will do this.

Kind Regards
Andy

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="16" android:targetSdkVersion="16"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<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, "@style/LightTheme")
CreateResource(values, theme.xml,
<resources>
    <style
        name="LightTheme" parent="@android:style/Theme.Material.Light">
       <item name="android:actionMenuTextAppearance">@style/LowerCaseMenu</item>
       <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
    </style>
     <style name="LowerCaseMenu" parent="android:TextAppearance.Material.Widget.ActionBar.Menu">
        <item name="android:textAllCaps">false</item>
    </style>
</resources>
)

'End of default text.
 

DonManfred

Expert
Licensed User
Longtime User
targetsdk = 16 is for android 4.1 devices.

In 2026 you have to use targetsdk 35

 
Last edited:
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
In this moment the required TargetSDK is 35 as required from Google.
If you have updated B4A from an older version be sure to redownload all the needed files from the guide a make a completely new fresh installation.
https://www.b4x.com/b4a.html
 
Upvote 0
Top