Nexus 5
OS 6.0.1
Alpha-6
the changes to the ProximityObserver i implemented.
I have verified my app context, cloud creds are fine. didn’t change them from alpha 5
Hope you can help
As soon as I get to this line everything stops.
try {
proximityObserver =
new ProximityObserverBuilder(provider.provideApplicationContext(), cloudCredentials)
.withBalancedPowerMode()
.withOnErrorAction(new Function1<Throwable, Unit>() {
@Override
public Unit invoke(Throwable throwable) {
Log.d(TAG, "throwable" + throwable.getMessage());
Log.d(TAG, "throwable" + throwable.getCause().getMessage());
return null;
}
})
.build();
}catch(Exception e) {
Log.d(TAG, "Exception " + e.getMessage());
}
Build gradle
compile 'com.squareup.okhttp3:okhttp:3.9.0'
compile 'com.google.code.gson:gson:2.8.0'
compile 'com.android.support:appcompat-v7:26.0.2'
compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'
compile 'joda-time:joda-time:2.9.6'
compile 'com.estimote:proximity-sdk:0.1.0-alpha.6'
compile "com.android.support:support-core-utils:26.0.2"
compile 'org.greenrobot:eventbus:3.1.1'