Mobile SDK Null Pointer Exception Workaround

We've had some reports that people are seeing a null pointer exception in Andrdoid apps build with the Connect IQ Mobile SDK when calling:

mConnectIQ.registerForAppEvents(mDevice, mMyApp, this);

at com.garmin.android.apps.connectmobile.connectiq.IConnectIQService$Stub$Proxy.registerApp(IConnectIQService.java:380)
at com.garmin.android.connectiq.ConnectIQDeviceStrategy.registerForRemoteAppEvents(ConnectIQDeviceStrategy.java:297)
at com.garmin.android.connectiq.ConnectIQ.registerForAppEvents(ConnectIQ.java:604)


UPDATE:

We have a new version 1.2 of the Android Mobile SDK up and available for download on the developer site, which contains a fix for the null pointer exception issue:

https://developer.garmin.com/connect-iq/sdk/
  • Former Member
    Former Member over 8 years ago
    I can confirm that latest connectIq.jar + latest GCM 1.12.01, which is prompted to update at the application start, resolve communication problems once again.
    Let's hope, that it will stay that way, but I will keep a copy of current GCM somewhere in my archive just in case 8))
  • I can confirm that latest connectIq.jar + latest GCM 1.12.01, which is prompted to update at the application start, resolve communication problems once again.
    Let's hope, that it will stay that way, but I will keep a copy of current GCM somewhere in my archive just in case 8))


    Fantastic!

    -Coleman