LoginSignup
9
9

More than 5 years have passed since last update.

作成したアプリを端末へインストール後 開く が選択できない場合

Last updated at Posted at 2014-11-02

症状

マーケットからインストールしたり
apkからインストールしたり
Eclipseなどから直接インストールしたりしても開けない(ドロワーにも表示されない)時

対処方法

AndroidManifest.xmlでActivityに対してintent-filterを設定し 起動直後のActivityを設定しますが、
その際android.intent.action.MAINandroid.intent.category.LAUNCHERだけは独立させる必要があります。

AndroidManifest.xml
<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" />
</intent-filter>

参考

9
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9