Unknown status of Connect IQ app

Hi,
I'm moving from testing via the simulator to testing with a wireless setup, and I am having some problems. The system worked just fine up until I went from a TETHERED connection to WIRELESS.

I want to register for application events and the code terminates in the outlined line of the code snippet in the picture attached. (the code is based on having only one device connected).

mApp shows u as "" when debugging, as seen in the picture, and has a UNKNOWN status.
mApp is declared as follows:
private IQApp mApp;
String iqAppID = "550399c206ba496195222351d11c256a";
In onCreate: mApp = new IQApp(iqAppID); Anyone had similar problems when testing? community.garmin.com/.../1273852.jpg community.garmin.com/.../1273854.jpg
  • Former Member
    Former Member over 7 years ago
    If mApp shows up as "" when debugging then I might guess that it was not properly constructed or got destroyed somehow. Would you be willing to post the contents of your listeners? Remembering that they are asynchronous, and dependent on a phone-to-watch BLE link, the timing behavior would certainly change between TETHERED and WIRELESS operation. Is there any chance that context required for each of your registrations is modified or set-up in the listener of another registration?
  • I can try to add mApp to watches and see what happens to it.

    You can see my listeners here:
    https://codeshare.io/50VlMe

  • Former Member
    Former Member over 7 years ago
    I don't see any outstanding problems, but I might consider adding a logging statement or some type of execution point to that InvalidStateException catch so you can see if it's getting hit, which would give a bit more info on the state of the CIQ service. If it's not getting hit, you could also try breaking inside the callbacks to see if anything happens there.
  • Thanks, I've done some more debugging and tried to initialize the IQApp object as the following:
    mApp = new IQApp(iqAppID,"sgv_datafield",0);

    Now, mApp looks fine untill the following gets hit:
    mConnectIQ.registerForAppEvents(mDevice,mApp,mAppEventListener);

    I added a breakpoint in the connectiq class, and the code stops here:

    try { this.registerForRemoteAppEvents(device, app); }

    that have a working example with communication with android that you wish to share?