从浏览器打开Android应用程序找到No Launcher活动

时间:2015-11-17 23:56:26

标签: android android-intent android-launcher

尝试从带有方案的浏览器运行我的应用程序,但如果我添加方案,它会显示在日志下面并且无法启动应用程序。

// if all the info you need is in your user  
Users.build({req.body})
        .save()
            .then(function(newUser){
               Users.find({where: {UserID: newUser.UserID}}).then(function(user){
                 //resolve your promise as you please.
               });

  // or if address info is in another model you can use eager loading.
  Users.build({req.body})
        .save()
            .then(function(newUser){
               Users.find({where: {UserID: newUser.UserID},
                                  include: [{
                                      model: address
                                  }]
                          }).then(function(user){
                 //resolve your promise as you please.
               });

我的[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! 如下

AndroidManifest.xml

尝试了许多不同的方法来使用启动器运行应用程序但无法运行它并且无法在应用程序中看到应用程序图标

1 个答案:

答案 0 :(得分:2)

尝试分离意图过滤器:

<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>