If you press the button for "recent apps", thus causing onPause() to be called, and then go back to the app, thus causing onResume() to be called, the application does not successfully connect to the Tango Service again. It shows the AR graphics but no camera frames.
Here's the output of the logcat:
01-24 13:15:54.143: D/libEGL(7738): loaded /system/lib/egl/libEGL_tegra.so
01-24 13:15:54.143: I/(7738): Attempting to load EGL implementation libEGL_tegra_impl
01-24 13:15:54.146: I/(7738): Loaded EGL implementation libEGL_tegra_impl
01-24 13:15:54.147: D/libEGL(7738): loaded /system/lib/egl/libGLESv1_CM_tegra.so
01-24 13:15:54.148: D/libEGL(7738): loaded /system/lib/egl/libGLESv2_tegra.so
01-24 13:15:54.427: I/(7738): Loading GLESv2 implementation libGLESv2_tegra_impl
01-24 13:15:54.432: D/OpenGLRenderer(7738): Enabling debug mode 0
01-24 13:15:56.726: I/(7738): Loading GLESv1_CM implementation libGLESv1_CM_tegra_impl
01-24 13:15:56.738: I/tango_client_api(7738): Tango Service: com.projecttango.tango, versionCode: 3205 (client requires >= 2705)
01-24 13:15:56.738: I/tango_jni_example(7738): Tango service initialize success
01-24 13:15:56.759: I/tango_jni_example(7738): Load ADF: befdc691-fc0b-4374-ad7f-857809f93cd1
01-24 13:15:56.759: I/tango_jni_example(7738): Tango set config success
01-24 13:15:56.760: I/tango_jni_example(7738): TangoService_connectTextureId(): Success!
01-24 13:15:57.361: I/tango_jni_example(7738): Tango Service connect success
01-24 13:15:57.365: I/tango_jni_example(7738): after glDrawElements() glError (0x502)
01-24 13:15:57.369: I/art(7738): GcCauseBackground partial concurrent mark sweep GC freed 5845(293KB) AllocSpace objects, 1(36KB) LOS objects, 12% free, 2MB/2MB, paused 5.282ms total 16.626ms
01-24 13:15:59.867: E/BufferQueue(7738): [unnamed-7738-0] dequeueBuffer: BufferQueue has been abandoned!
01-24 13:15:59.869: E/BufferQueue(7738): [unnamed-7738-0] queueBuffer: BufferQueue has been abandoned!
01-24 13:15:59.870: E/BufferQueue(7738): [unnamed-7738-0] dequeueBuffer: BufferQueue has been abandoned!
01-24 13:15:59.870: E/BufferQueue(7738): [unnamed-7738-0] dequeueBuffer: BufferQueue has been abandoned!
01-24 13:15:59.876: E/BufferQueue(7738): [unnamed-7738-0] dequeueBuffer: BufferQueue has been abandoned!
01-24 13:15:59.879: E/BufferQueue(7738): [unnamed-7738-0] queueBuffer: BufferQueue has been abandoned!
01-24 13:15:59.912: E/BufferQueue(7738): [unnamed-7738-0] queueBuffer: BufferQueue has been abandoned!
01-24 13:15:59.947: E/BufferQueue(7738): [unnamed-7738-0] queueBuffer: BufferQueue has been abandoned!
01-24 13:15:59.980: E/BufferQueue(7738): [unnamed-7738-0] queueBuffer: BufferQueue has been abandoned!
01-24 13:16:00.018: E/BufferQueue(7738): [unnamed-7738-0] queueBuffer: BufferQueue has been abandoned!
01-24 13:16:02.588: I/Choreographer(7738): Skipped 167 frames! The application may be doing too much work on its main thread.
01-24 13:16:02.664: I/art(7738): Heap trim of managed (duration=615us, advised=336KB) and native (duration=1.727ms, advised=272KB) heaps. Managed heap utilization of 43%.
01-24 13:16:06.450: I/art(7738): Heap trim of managed (duration=946.166us, advised=768KB) and native (duration=2.091084ms, advised=288KB) heaps. Managed heap utilization of 24%.
01-24 13:16:06.920: I/tango_client_api(7738): Tango Service: com.projecttango.tango, versionCode: 3205 (client requires >= 2705)
01-24 13:16:06.920: I/tango_jni_example(7738): Tango service initialize success
01-24 13:16:06.949: I/tango_jni_example(7738): Load ADF: befdc691-fc0b-4374-ad7f-857809f93cd1
01-24 13:16:06.949: I/tango_jni_example(7738): Tango set config success
01-24 13:16:06.950: I/tango_jni_example(7738): TangoService_connectTextureId(): Success!
01-24 13:16:07.509: I/tango_jni_example(7738): Tango Service connect success
01-24 13:16:07.510: I/tango_jni_example(7738): after glDrawElements() glError (0x502)
01-24 13:16:07.596: I/tango_jni_example(7738): TangoService_connectTextureId(): Success!
01-24 13:16:07.691: E/BufferQueue(7738): [unnamed-7738-1] queueBuffer: BufferQueue has been abandoned!
01-24 13:16:07.695: E/BufferQueue(7738): [unnamed-7738-1] dequeueBuffer: BufferQueue has been abandoned!
01-24 13:16:07.696: E/BufferQueue(7738): [unnamed-7738-1] dequeueBuffer: BufferQueue has been abandoned!
01-24 13:16:07.716: E/BufferQueue(7738): [unnamed-7738-1] dequeueBuffer: BufferQueue has been abandoned!
01-24 13:16:07.719: E/BufferQueue(7738): [unnamed-7738-1] queueBuffer: BufferQueue has been abandoned!
01-24 13:16:07.752: E/BufferQueue(7738): [unnamed-7738-1] dequeueBuffer: BufferQueue has been abandoned!
01-24 13:16:07.757: E/BufferQueue(7738): [unnamed-7738-1] queueBuffer: BufferQueue has been abandoned!
01-24 13:16:07.798: E/BufferQueue(7738): [unnamed-7738-1] dequeueBuffer: BufferQueue has been abandoned!
01-24 13:16:07.805: E/BufferQueue(7738): [unnamed-7738-1] queueBuffer: BufferQueue has been abandoned!
01-24 13:16:07.854: E/BufferQueue(7738): [unnamed-7738-1] dequeueBuffer: BufferQueue has been abandoned!
01-24 13:16:07.860: E/BufferQueue(7738): [unnamed-7738-1] queueBuffer: BufferQueue has been abandoned!
01-24 13:16:07.872: E/BufferQueue(7738): [unnamed-7738-1] queueBuffer: BufferQueue has been abandoned!
01-24 13:16:07.873: E/BufferQueue(7738): [unnamed-7738-1] dequeueBuffer: BufferQueue has been abandoned!
01-24 13:16:07.903: E/BufferQueue(7738): [unnamed-7738-1] dequeueBuffer: BufferQueue has been abandoned!
01-24 13:16:07.910: E/BufferQueue(7738): [unnamed-7738-1] queueBuffer: BufferQueue has been abandoned!
01-24 13:16:17.610: E/tango_client_api(7738): TangoErrorType TangoService_connect(void*, TangoConfig): Internal Error: Connect failed internally: -1
01-24 13:16:17.610: E/tango_jni_example(7738): Tango Service connect failed
If you press the button for "recent apps", thus causing onPause() to be called, and then go back to the app, thus causing onResume() to be called, the application does not successfully connect to the Tango Service again. It shows the AR graphics but no camera frames.
Here's the output of the logcat: