1、BufferQueueProducer
BufferQueueProducer connect: already connected(cur=1 req=1)
///
/// This function will return NULL when entering VR mode failed because the ANativeWindow
/// was not valid. If the ANativeWindow's buffer queue is abandoned
/// ("BufferQueueProducer: BufferQueue has been abandoned"), then the app can wait for a
/// new ANativeWindow (through SurfaceCreated). If another API is already connected to
/// the ANativeWindow ("BufferQueueProducer: already connected"), then the app has to first
/// disconnect whatever is connected to the ANativeWindow (typically an EGLSurface).
OVR_VRAPI_EXPORT ovrMobile * vrapi_EnterVrMode( const ovrModeParms * parms );
2、INTERACT_ACROSS_USERS_FULL
registerReceiver asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
解决办法:
A、 adb shell am start --user 0 -n com.game.test/com.game.test.MainActivity
B、 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL"/>或
<permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" android:protectionLevel="signature"/>
C、修改参数 UserHandle ALL

本文探讨了在进入VR模式时遇到的问题及解决方案,并详细解释了如何在Android应用中实现跨用户交互,包括必要的权限配置和代码示例。
最低0.47元/天 解锁文章
8130

被折叠的 条评论
为什么被折叠?



