Via Lattanzio,23 Milano
+39 02 00704272
info@synaptica.info

Delphi 10.4.1 on Android error : java.lang.NullPointerException: Attempt to invoke virtual method

Delphi 10.4.1 on Android error : java.lang.NullPointerException: Attempt to invoke virtual method

When you try to use the camera component and you get “java.lang.NullPointerException: Attempt to invoke virtual method ‘android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData (android.content.pm.PackageManager, java.lang.String)” only on “release” version of your application, probably you don’t have this setting to true:

Check that the Project Options > Entitlements List > Secure File Sharing option is set to true.

good job