Android Question install APK

yeroen

Member
Licensed User
Longtime User
I am unable to install an APK file made with B4X on an Android device. Not via B4A-Bridge and not manually. Android keeps saying: Not installed. The APK does work well in Windows with an emulator. I once started with B4A in about 2014 but haven't done anything with it for a long time. Do I need to change something about the key?
Attached is the source code of the app, intended to practice with B4X.

Problem solved. Community thanks. See: Share Your B4X Story/Using B4X Tips (?)
 
Last edited:
am unable to install an APK file made with B4X on an Android device. Not via B4A-Bridge and not manually. Android keeps saying: Not installed. The APK does work well in Windows with an emulator. I once started with B4A in about 2014 but haven't done anything with it for a long time. Do I need to change something about the key?
Attached is the source code of the app, intended to practice with B4X.
Check the unknown sources and enable it.
 
Upvote 0
Also, try changing the Package Name of the project you are trying to install because sometimes if there is an existing app on the device with the same package name with a
higher version, it will say "Not Installed" because you can't install a lower version of the same app on a device.
 
Upvote 0
The problem remains. Android says not installed.
On 2 devices: a tablet and a phone. In Windows with an emulator and in the emulator of B4X the APK runs smoothly.

(see also the earlier attached zip-file)
Do I have to do something about the manifest:
'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="5" android:targetSdkVersion="29"/>
<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.

This in B4A:
#Region Project Attributes
#ApplicationLabel: The Thruth
#VersionCode: 4
#VersionName: 4.0
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: True
#End Region

#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
 
Upvote 0
What Android versions are on the devices that work and those that don't?
You've not used B4A for a long time, have you done a complete re-install?
If not, delete all files and folders, download and install everything fresh. https://www.b4x.com/b4a.html
 
Upvote 0
Back
Top