Hi folks,
I connected the Connect IQ simulator to my Android via ADB to understand how to send data to my first watch app.
In the android app I get the device but the app status will always be "NOT_INSTALLED". The ID of the Garmin App in the android code is the same as in the garmin manifest.
Can anyone help me out with this?
With kind regards
connectIQ.getApplicationInfo("6ece9e2ef1e049ee8b9a7cd93c4e6e38", device, new ConnectIQ.IQApplicationInfoListener() {
@Override
public void onApplicationInfoReceived( IQApp app ) {
if (app != null) {
Toast.makeText(context, ""+app.getStatus(), Toast.LENGTH_LONG).show();
openGarminApplication(connectIQ, device, app);
if (app.getStatus() == INSTALLED) {
if (app.version() < 0) {
Toast.makeText(context, "App too old", Toast.LENGTH_LONG).show();
} else {
Toast.makeText(context, "App Found", Toast.LENGTH_LONG).show();
sendMessageToGarmin(connectIQ, device, app);
}
}
}
}
@Override
public void onApplicationNotInstalled(String s) {
// Prompt user with information
Toast.makeText(context, "App Not Found", Toast.LENGTH_LONG).show();
}
});