this is crashing my application when i set AutoPanMode and gps on the device is turned off.
locationDisplay.setAutoPanMode( LocationDisplay.AutoPanMode.NAVIGATION );
I first set autopanmode off
locationDisplay.setAutoPanMode( LocationDisplay.AutoPanMode.OFF );
and then allow the user to resume functions and if location services is off the app crashes.
how do i catch this or prevent this (without saying turn location services on).
I tried checkinglocationDisplay.isStarted()
but this passes and the app still crashes.
03-14 15:03:54.934 11143-11143/cmdpoint.org A/art: sart/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: JNI NewLocalRef called with pending exception 'java.lang.NullPointerException' thrown in unknown throw location
03-14 15:03:54.934 11143-11143/cmdpoint.org A/art: sart/runtime/check_jni.cc:65] in call to NewLocalRef
03-14 15:03:54.934 11143-11143/cmdpoint.org A/art: sart/runtime/check_jni.cc:65] from void com.esri.arcgisruntime.internal.jni.CoreLocationDisplay.nativeSetAutoPanMode(long, int)
03-14 15:03:54.934 11143-11143/cmdpoint.org A/art: sart/runtime/check_jni.cc:65] "main" prio=5 tid=1 Runnable