Android Question Which SDK version is the best for app out off Play Store

Espinosa4

Active Member
Licensed User
Longtime User
Hi!

Im programming an app for my job and I don’t need to upload the app to Play Store. The problem is that using the sdk 29 in the manifest some mobiles with android 14 can’t install the app due the system says that it’s an app for old system. Some mobiles like mine, can install the without problems the app.

Which is the best sdk version for all mobiles? 29, 30, 31’maybe 33?

thank you in advance for your help
 

Espinosa4

Active Member
Licensed User
Longtime User
My manifest
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="18" 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)
SetActivityAttribute(main, android:windowSoftInputMode, adjustPan|stateHidden)
SetApplicationAttribute(android:requestLegacyExternalStorage,true)
SetApplicationAttribute(android:usesCleartextTraffic, "true")

AddApplicationText(
  <provider
  android:name="android.support.v4.content.FileProvider"
  android:authorities="$PACKAGE$.provider"
  android:exported="false"
  android:grantUriPermissions="true">
  <meta-data
  android:name="android.support.FILE_PROVIDER_PATHS"
  android:resource="@xml/provider_paths"/>
  </provider>
)
CreateResource(xml, provider_paths,
   <files-path name="name" path="shared" />
)

AddManifestText(<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
)
SetApplicationAttribute(android:requestLegacyExternalStorage, true)
 
Upvote 0

Espinosa4

Active Member
Licensed User
Longtime User
You can still use the sdk 34, with the necessary permissions and not publish to the playstore.

Is there an issue why you dont want to use the newer sdk version?
Hi @mcqueccu
Thank you so much for your reply.
I thought the newest version can’t be installed on mobiles with android 10, 11.

Well, I’m not an expert programmer and there’s things complicated for me and I have another app which I had four versions: with sdk 29, 30 31 and 33 and with this versions my partners have a version to choose.

Which changes should I do?
 
Last edited:
Upvote 0

Espinosa4

Active Member
Licensed User
Longtime User
Actually I don’t know. I know cases with android 14 which can’t install sdk29 but lot of others they can. With my Xiaomi I can install sdk 18, 29, 33.

I would like to know if the sdk 34 can be installed in all mobiles from android 9 or 10 for example until now.

I just installed a version compiled with the sdk 34 but some procedures crash. I need to see the debugger

Cheers and thanks for your reply
 
Last edited:
Upvote 0

teddybear

Well-Known Member
Licensed User
I would like to know if the sdk 34 can be installed in all mobiles from android 9 or 10 for example until now.
SDK34 refers to the Android SDK for API level 34, corresponding to Android 14. as long as you specify targetsdkversion as 29 in manifest , the app developed with sdk34 can also be used on Android 10
 
Upvote 0

Espinosa4

Active Member
Licensed User
Longtime User
Ok Thanks!
then I can write in the manifest this line
<uses-sdk android:minSdkVersion="18" android:targetSdkVersion="34"/>
and I understand that the minsdkVersion is an old mobile and target is for Android 14. Min and target is the range, right?

Thank you so much @teddybear for your help
 
Upvote 0
Top