Android Question My App Crash

Keith Yong

Active Member
Licensed User
Longtime User
My app was crash after adding the following code into manifest, it doesn't return any log. It crash before start up the app.

The weird thing is, it works in another project with 95% similar functions and with different package name. I have tried many way to debug and test, but still cannot resolve. Appreciate if you could let me know what is the problem that I have.

B4X:
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" />
)
 

DonManfred

Expert
Licensed User
Longtime User
, it doesn't return any log
there is no such thing in Android. A crash is ALWAYS in the log.
Check the unfiltered LOG. There must be an ERROR.
 
Upvote 0

Keith Yong

Active Member
Licensed User
Longtime User
there is no such thing in Android. A crash is ALWAYS in the log.
Check the unfiltered LOG. There must be an ERROR.


A bit weird. I followed your instruction "Check the unfiltered LOG", it come out the log and now app works fine. I did not make any changes at all, I have been trying whole day for solve this. :cool:
 
Upvote 0
Top