Android Question App won't install on Android 4.4, but installs & works on Android 9

Jakes72

Active Member
Licensed User
Longtime User
Hi Guys,

My friend tried to install my app's APK on his older tablet which is running Android 4.4, but when he clicks the APK nothing happens and it does not install. Yet the app installs and works fine on other phones that are running Android 9.

My manifest looks like this:
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="26"/>
<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.DarkTheme)


Project Attributes like this:
B4X:
#ApplicationLabel: Falcon Cloud
    #VersionCode: 1
    #VersionName: 
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: unspecified
    #CanInstallToExternalStorage: False
    #AdditionalJar: jtds-1.3.1     'For SQL Database.


In my Paths configuration 'android.jar' = c:\B4A SDK Tools\platforms\android-28\android.jar


Any help here would be appreciated.

Regards,
Jacques.
 

DonManfred

Expert
Licensed User
Longtime User
Check the log. Especially the unfiltered one. There must be a log about the not installed app.
 
Upvote 0

Chris2

Active Member
Licensed User
Longtime User
My friend tried to install my app's APK on his older tablet which is running Android 4.4, but when he clicks the APK nothing happens and it does not install.
Does the tablet have an apk installer installed?
I've found in the past that some devices don't always have them, and hence can't install directly from an apk file.
 
Upvote 0

Jakes72

Active Member
Licensed User
Longtime User
Hi Don and Chris thank you for the replies. I am not sure about the APK installer I will look into that.
Don where do I find the log on the tablet?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Don where do I find the log on the tablet?
connect the device using USB Debugging and you can see the log in the IDE.
If you are using B4A Bridge then you can use #bridgelogger: true in your main module to enable release logging when using bridge.
 
Upvote 0

Jakes72

Active Member
Licensed User
Longtime User
OK thanks guys, I will try all the suggestions and revert back to you.
I appreciate the help :)
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
Even though your app manifest has a minSDKVersion="5" which should run on android 4.4, maybe you are using an external library that might require an android version higher then 4.4? (I believe you would need to check with the lib maker to find this out)
 
Last edited:
Upvote 0

Jakes72

Active Member
Licensed User
Longtime User
Thanks JohnC for another lead, I will look into that too. I am using library 'jtds-1.3.1' for remote SQL database connection not sure if that is an issue?
 
Upvote 0

Jakes72

Active Member
Licensed User
Longtime User
OK now I have managed to get the App to install, but the minute I run it from the icon I get “Unfortunately, <App Name> has stopped”. Yet it works on other phones running Android 9 as stated before. Any ideas?
 
Upvote 0
Top