I forget the name of the Hamburger menu thing that uses appcompat, B4XDrawer I think?
anyways, If I add this to the manifest, my app crashes instantly:
With:
On Android 10, I get alot of appcompat.v7 errors with the same thing. null reference.
However, if I leave that stuff out of the manifest, it works fine.
thoughts?
anyways, If I add this to the manifest, my app crashes instantly:
B4X:
' Starting from Android 7 (API 24) we pass a file uri using a FileProvider
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="19" />
)
AddPermission(android.permission.REQUEST_INSTALL_PACKAGES)
With:
B4X:
java.lang.RuntimeException: Unable to start activity ComponentInfo{md.smbk2at1/md.smbk2at1.main}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setId(int)' on a null object reference
On Android 10, I get alot of appcompat.v7 errors with the same thing. null reference.
However, if I leave that stuff out of the manifest, it works fine.
thoughts?
Last edited: