Community
Topic: Android SDK
JNI DETECTED ERROR when launch app in Android 6 (SOLVED)
First of all, congratulations for your product. I need a geo AR for show POIs (Android & IOS) and your SDK is perfect for me
I have only been able to successfully test it on an old HTC with Android 4, but in a new Huawei P9 Lite with Android 6 I get this error. The code is exactly the same that your sample
Thanks in advance (sorry for my english)
JNI DETECTED ERROR IN APPLICATION: JNI CallObjectMethod called with pending exception java.lang.NullPointerException: Attempt to invoke virtual method 'void com.pikkart.ar.geo.camera.CameraTextureView.setVisibility(int)' on a null object reference
at void com.pikkart.ar.geo.GeoLocationManager.switchToCam() (GeoLocationManager.java:458)
at void com.pikkart.ar.geo.GeoLocationManager.onSensorChanged(android.hardware.SensorEvent) (GeoLocationManager.java:376)
at void android.hardware.SystemSensorManager$SensorEventQueue.dispatchSensorEvent(int, float[], int, long) (SystemSensorManager.java:496)
No problems in a HTC one M8 with Android 6
Hi,
Huawei P9 Lite has only some of the sensors used by the SDK for the geolocation feature: it doesn't provide magnetometer and gyroscope sensors. That's the cause of the crash that we will fix in the next release.
Thanks for the reporting.
Please download the latest release (rc) that fixes the issue.
Best,