Hi guys,
I just upgrade from sdk 28 to sdk 30.
When I compiled the app with new sdk, it can compiled OK but when ran it, It was forced closed.
Here is the contains of log windows
Logger connected to: 192.168.234.103:5555
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
The app can compiled and ran OK with sdk 28.
I still use B4A 10.
How to solve this problem.
Here are the contents of manifest editor
I just upgrade from sdk 28 to sdk 30.
When I compiled the app with new sdk, it can compiled OK but when ran it, It was forced closed.
Here is the contains of log windows
Logger connected to: 192.168.234.103:5555
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
The app can compiled and ran OK with sdk 28.
I still use B4A 10.
How to solve this problem.
Here are the contents of manifest editor
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="5" android:targetSdkVersion="29"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
AddPermission(android.permission.USE_FINGERPRINT)
AddPermission(android.permission.READ_EXTERNAL_STORAGE)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:theme, "@style/br")
SetApplicationAttribute(android:usesCleartextTraffic, "true")
SetActivityAttribute(Main, android:windowSoftInputMode, adjustPan|stateHidden)
'CreateResourceFromFile(Macro, Themes.DarkTheme)
AddManifestText(<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="29" />
)
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" />
)
AddPermission(android.permission.REQUEST_INSTALL_PACKAGES)
Last edited: