[英]Android Application open from browser No Launcher activity found
Trying to run my application from browser with scheme but getting below logs if i add scheme it show below log and unable to launch app. 尝试使用方案从浏览器运行我的应用程序,但如果我添加方案,则获得以下日志,它显示在日志下方,并且无法启动应用程序。
[2015-11-18 04:49:50 - app] ------------------------------
[2015-11-18 04:49:50 - app] Android Launch!
[2015-11-18 04:49:50 - app] adb is running normally.
[2015-11-18 04:49:50 - app] No Launcher activity found!
[2015-11-18 04:49:50 - app] The launch will only sync the application package on the device!
[2015-11-18 04:49:50 - app] Performing sync
[2015-11-18 04:49:50 - app] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'Nexus_S_API_17'
[2015-11-18 04:49:52 - app] Application already deployed. No need to reinstall.
[2015-11-18 04:49:52 - app] \app\bin\app.apk installed on device
[2015-11-18 04:49:52 - app] Done!
My AndroidManifest.xml
as below 我的AndroidManifest.xml
如下
<activity
android:name="com.holidaynumbers.MainActivity"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|keyboardHidden"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="allplayer" />
</intent-filter>
</activity>
Tried many different ways to run application with launcher but not able to run it and can't see app icon in apps 尝试了多种使用启动器运行应用程序的方法,但无法运行它,并且在应用程序中看不到应用程序图标
try to separate intent filter: 尝试分离意图过滤器:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="allplayer" />
</intent-filter>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.