Nailik / rhasspy_mobile

Rhasspy is a voice assistant software. This repository implements the functionality of a Rhasspy satellite, with local wake word recognition.
65 stars 4 forks source link

Intent not found exception #337

Closed Nailik closed 1 year ago

Nailik commented 1 year ago

Some Devices may not containt an activity to handle an url intent

Fatal Exception: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=https://console.picovoice.ai/... flg=0x10000000 } at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1944) at android.app.Instrumentation.execStartActivity(Instrumentation.java:1618) at android.app.ContextImpl.startActivity(ContextImpl.java:878) at android.app.ContextImpl.startActivity(ContextImpl.java:855) at android.content.ContextWrapper.startActivity(ContextWrapper.java:372) at org.rhasspy.mobile.logic.nativeutils.NativeApplication.openLink(NativeApplication.java:73) at org.rhasspy.mobile.logic.ApplicationUtilsKt.openLink(ApplicationUtils.kt:8) at org.rhasspy.mobile.viewmodel.configuration.WakeWordConfigurationViewModel.openPicoVoiceConsole(WakeWordConfigurationViewModel.java:257) at org.rhasspy.mobile.android.configuration.content.WakeWordConfigurationKt$PorcupineConfiguration$1$2.invoke(WakeWordConfiguration.kt:149) at org.rhasspy.mobile.android.configuration.content.WakeWordConfigurationKt$PorcupineConfiguration$1$2.invoke(WakeWordConfiguration.kt:149) at androidx.compose.foundation.ClickableKt$clickable$4$gesture$1$1$2.invoke-k-4lQ0M(Clickable.kt:163) at androidx.compose.foundation.ClickableKt$clickable$4$gesture$1$1$2.invoke(Clickable.kt:152) at androidx.compose.foundation.gestures.TapGestureDetectorKt$detectTapAndPress$2$1.invokeSuspend(TapGestureDetector.kt:255) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTask.kt:178) at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:166) at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:397) at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(CancellableContinuationImpl.kt:431) at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$default(CancellableContinuationImpl.kt:420) at kotlinx.coroutines.CancellableContinuationImpl.resumeWith(CancellableContinuationImpl.kt:328) at androidx.compose.ui.input.pointer.SuspendingPointerInputFilter$PointerEventHandlerCoroutine.offerPointerEvent(SuspendingPointerInputFilter.java:566) at androidx.compose.ui.input.pointer.SuspendingPointerInputFilter.dispatchPointerEvent(SuspendingPointerInputFilter.kt:456) at androidx.compose.ui.input.pointer.SuspendingPointerInputFilter.onPointerEvent-H0pRuoY(SuspendingPointerInputFilter.kt:469) at androidx.compose.ui.node.BackwardsCompatNode.onPointerEvent-H0pRuoY(BackwardsCompatNode.kt:370) at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:314) at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:301) at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:301) at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:301) at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:301) at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:301) at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:301) at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:301) at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:301) at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:301) at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:301) at androidx.compose.ui.input.pointer.NodeParent.dispatchMainEventPass(NodeParent.java:183) at androidx.compose.ui.input.pointer.HitPathTracker.dispatchChanges(HitPathTracker.kt:102) at androidx.compose.ui.input.pointer.PointerInputEventProcessor.process-BIzXfog(PointerInputEventProcessor.kt:98) at androidx.compose.ui.platform.AndroidComposeView.sendMotionEvent-8iAsVTc(AndroidComposeView.android.kt:1360) at androidx.compose.ui.platform.AndroidComposeView.handleMotionEvent-8iAsVTc(AndroidComposeView.android.kt:1306) at androidx.compose.ui.platform.AndroidComposeView.dispatchTouchEvent(AndroidComposeView.android.kt:1245) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2968) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2657) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2968) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2657) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2968) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2657) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2968) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2657) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2968) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2657) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2968) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2657) at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:448) at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1829) at android.app.Activity.dispatchTouchEvent(Activity.java:3333) at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:70) at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:410) at android.view.View.dispatchPointerEvent(View.java:12016) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4809) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4623) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4161) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4214) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4180) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4307) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4188) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4364) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4161) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4214) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4180) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4188) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4161) at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6682) at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6656) at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6617) at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6785) at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:187) at android.os.MessageQueue.nativePollOnce(MessageQueue.java) at android.os.MessageQueue.next(MessageQueue.java:325) at android.os.Looper.loop(Looper.java:142) at android.app.ActivityThread.main(ActivityThread.java:6518) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

Nailik commented 1 year ago

reworked: