Android Question App Crash on android version 8.0

Keith Yong

Active Member
Licensed User
Longtime User
I have problem with android phone with version 8.0, the app getting crash after launching. Following are the manifest, may I know is there any problem?

B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")

'Speed up webview loading
SetApplicationAttribute(android:hardwareAccelerated, "true")

'To Support SDK 28
SetApplicationAttribute(android:usesCleartextTraffic,"true")
SetActivityAttribute(main, android:theme, @android:style/Theme.Translucent.NoTitleBar)

'Take Photo
AddManifestText(<uses-permission
    android:name="android.permission.WRITE_EXTERNAL_STORAGE"
    android:maxSdkVersion="18" />
)

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" />
)
'Take Photo-----
'
''Firebase
CreateResourceFromFile(Macro, Themes.DarkTheme)
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
CreateResourceFromFile("google-services", "google-services.json")
 

DonManfred

Expert
Licensed User
Longtime User
Last edited:
Upvote 0

Keith Yong

Active Member
Licensed User
Longtime User
Where is the full error? How can we help without knowing it?
Sorry, the problem reported from my client, it show me the video that app cannot launch in Samsung S7edge running android 8.0. I do not getting the error from my side. Will try to get phone that giving the problem in order to extract the error.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Sorry, the problem reported from my client, it show me the video that app cannot launch in Samsung S7edge running android 8.0. I do not getting the error from my side. Will try to get phone that giving the problem in order to extract the error.
Implement CrashLytics in your App.
 
Upvote 0
Top