2016-04-13 9 views
0

Ich habe das Demo "java_quick_start_example" heruntergeladen. 1. Ich starte die App direkt, aber es ist fehlgeschlagen. Das Protokoll wird als beschrieben TangoErrorType TangoService_initialize (JNIEnv*, jobject): Done initializing, error code = -1 2. ich den Code ändern, wie untenDie Info über neuen Tango()

mTango = new Tango(this, new Runnable() { 
      @Override 
      public void run() { 
      } 
}); 

Es ausgefallen ist, auch.

Antwort

0

einige Beispiele ziehen aus Tango Beispiel Das Protokoll wird als "Error - TangoService_connectOnPoseAvailable: -1" beschrieben:

mTango = new Tango(MotionTrackingActivity.this, new Runnable() { 
     // Pass in a Runnable to be called from UI thread when Tango is ready, 
     // this Runnable will be running on a new thread. 
     // When Tango is ready, we can call Tango functions safely here only 
     // when there is no UI thread changes involved. 
     @Override 
     public void run() { 
      mConfig = setupTangoConfig(mTango); 

      try { 
       setTangoListeners(); 
      } catch (TangoErrorException e) { 
       Log.e(TAG, getString(R.string.exception_tango_error), e); 
      } catch (SecurityException e) { 
       Log.e(TAG, getString(R.string.permission_motion_tracking), e); 
      } 
      try { 
       mTango.connect(mConfig); 
      } catch (TangoOutOfDateException e) { 
       Log.e(TAG, getString(R.string.exception_out_of_date), e); 
      } catch (TangoErrorException e) { 
       Log.e(TAG, getString(R.string.exception_tango_error), e); 
      } 
     } 
    }); 
}