Android 无法启动什么三个字的意图

Android 无法启动什么三个字的意图,android,android-intent,startactivityforresult,Android,Android Intent,Startactivityforresult,我正在尝试使用此处的文档打开what3words应用程序 但我一直都有这个问题 android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=w3w://show?threewords=daring.lion.race} 我在我的设备上,并在设备上安装了google play和what3words应用程序。尝试如下方式打开应用程

我正在尝试使用此处的文档打开what3words应用程序

但我一直都有这个问题

android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=w3w://show?threewords=daring.lion.race}

我在我的设备上,并在设备上安装了google play和what3words应用程序。

尝试如下方式打开应用程序:

Intent intent = packageManager.getLaunchIntentForPackage("{w3w package name}");
intent.setAction(Intent.ACTION_VIEW);
intent.setData(Uri.parse("w3w://show?threewords=daring.lion.race"));
startActivity(intent);
要获取包名,请在adb中查找:

adb shell pm list packages
adb shell pm list packages