2 Replies Latest reply on Jul 26, 2017 12:56 AM by Thomaskwscott

    WebConnectivity test code shows "Not connected to a smartphone"

    Thomaskwscott

      I'm following the web connectivity test from the documentation but every time I launch it I get a stacktrace like the below:

       

      07-17 23:02:31.115 7816-7844/com.threefi.recon.reconrss W/System.err: android.os.RemoteException: android.accounts.NetworkErrorException: Not connected to a smartphone

      07-17 23:02:31.115 7816-7844/com.threefi.recon.reconrss W/System.err:     at com.reconinstruments.os.connectivity.HUDConnectivityServiceConnection.sendWebRequest(HUDConnectivityServiceConnection.java:56)

      07-17 23:02:31.115 7816-7844/com.threefi.recon.reconrss W/System.err:     at com.reconinstruments.os.connectivity.HUDConnectivityManager.sendWebRequest(HUDConnectivityManager.java:289)

      07-17 23:02:31.115 7816-7844/com.threefi.recon.reconrss W/System.err:     at com.threefi.recon.reconrss.MainActivity$FetchUpdates.doInBackground(MainActivity.java:104)

      07-17 23:02:31.115 7816-7844/com.threefi.recon.reconrss W/System.err:     at com.threefi.recon.reconrss.MainActivity$FetchUpdates.doInBackground(MainActivity.java:88)

      07-17 23:02:31.120 7816-7844/com.threefi.recon.reconrss W/System.err:     at android.os.AsyncTask$2.call(AsyncTask.java:287)

      07-17 23:02:31.120 7816-7844/com.threefi.recon.reconrss W/System.err:     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)

      07-17 23:02:31.120 7816-7844/com.threefi.recon.reconrss W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:137)

      07-17 23:02:31.120 7816-7844/com.threefi.recon.reconrss W/System.err:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)

      07-17 23:02:31.120 7816-7844/com.threefi.recon.reconrss W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)

      07-17 23:02:31.120 7816-7844/com.threefi.recon.reconrss W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)

      07-17 23:02:31.120 7816-7844/com.threefi.recon.reconrss W/System.err:     at java.lang.Thread.run(Thread.java:856)

       

      The glasses are connected to the phone and I have verified that a number of different ways. It also seems my code is right as I can turn on Wifi on the glasses and get the expected results. Anyone seen anything like this before?

       

      Also can anyone point me at the Javadoc for the Recon classes, I'm flying blind right now.