controllerscanner apk stop running

Shang
Explorer

controllerscanner apk stop running

I use Vive Focus Controller(Finch Dash) with Google Pixel to develop my application since SDK 2.0.32,

it doesn't work recently as controllerscanner shows stop running ANR while pairing to the controller(log as below).

Is it possible to provide an updated version of

- plugins.TurkeyFinch3DofDevice-release.apk
- controllerscanner-release.apk

for my OG Focus controller? off-hmd developing is really helpful to me.

@Tony PH Lin 

2019-06-12 14:26:29.347 12395-12395/com.htc.vr.controllerscanner E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.htc.vr.controllerscanner, PID: 12395
    java.lang.RuntimeException: Unable to create service com.htc.vr.controllerscanner.ScannerService: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
        at android.app.ActivityThread.handleCreateService(ActivityThread.java:3582)
        at android.app.ActivityThread.access$1300(ActivityThread.java:200)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1672)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6718)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
     Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
        at android.app.ContextImpl.startActivity(ContextImpl.java:912)
        at android.app.ContextImpl.startActivity(ContextImpl.java:888)
        at android.content.ContextWrapper.startActivity(ContextWrapper.java:379)
        at com.htc.vr.controllerscanner.ScannerService.onCreate(ScannerService.java:456)
        at android.app.ActivityThread.handleCreateService(ActivityThread.java:3570)
        at android.app.ActivityThread.access$1300(ActivityThread.java:200) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1672) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loop(Looper.java:193) 
        at android.app.ActivityThread.main(ActivityThread.java:6718) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) 

 

Vive Staff

Re: controllerscanner apk stop running

Hi @Shang ,

 

Thanks for feedback this issue, and we're trying to repro internally to see the root cause.

Will keep you update.

Thanks.