Hi everybody,
after many years I came back yo use B4A, but I'm still a biginner and I need your help
I follow the post https://www.b4x.com/android/forum/threads/b4x-b4xpages-barcode-reader.120417/#content, but I get an error when I run new activity:
I add the manifest:
I hope in the correct way, but is tyhe first time I add more than one "addictional manifest text".
when code arrived here:
I getting this error:
View attachment 115026
and application crash.
the same error occurent in the example, but example continue to works and barcode reader works.
what's wrong?
TY
after many years I came back yo use B4A, but I'm still a biginner and I need your help
I follow the post https://www.b4x.com/android/forum/threads/b4x-b4xpages-barcode-reader.120417/#content, but I get an error when I run new activity:
I add the manifest:
Manifest:
AddApplicationText(
AddManifestText(
<uses-sdk android:minSdkVersion="5" 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)
'End of default text.
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>
<meta-data
android:name="com.google.android.gms.vision.DEPENDENCIES"
android:value="barcode,,face" />
)
CreateResource(xml, provider_paths,
<files-path name="name" path="shared" />
)
when code arrived here:
B4X:
builder.InitializeNewInstance("com/google/android/gms/vision/barcode/BarcodeDetector.Builder".Replace("/", "."), Array(ctxt))
I getting this error:
View attachment 115026
and application crash.
the same error occurent in the example, but example continue to works and barcode reader works.
what's wrong?
TY
Last edited: