私は2つのApps ImplicitIntent_00とImplicitIntent_01を持っています。 ImplicitIntent_00のマニフェストファイルで、以下のようにマニフェストファイルに "android.intent.action.VIEW"というアクションのために登録しました。 いる間は、implicitintent_01では、次のコードを持っている:私は何をしたいか登録されたアクションにアプリケーションを反応させる方法
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
String url = "http://www.vogella.com";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
i.putExtra("extra", "value");
startActivity(i);
}
}
を私はimplicitintent_01を実行したとき、私はimplicitintent_00アプリケーションはアプリケーションとして選択メニューに表示したいです"android.intent.action.VIEW"アクションを実行することができます。 しかし、私は暗黙intentent_01アプリケーションを実行すると、暗黙的な_00は、選択メニューのアプリケーションの中に決して表示されません
それを正しく行う方法。 implicitIntent_00の
マニフェスト:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.com.implicitintent_00" >
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
<activity android:name=".MainActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http"/>
</intent-filter>
</activity>
</application>
今マニフェストアクティビティタグをあなたのimplicitintent_00でこれを使用してみてください閲覧を開始するはずのアプリケーションを選択する – user2121
このリンクにチェックを入れてくださいブラウザのstファイルを使用すると、https://github.com/anthonycr/Lightning-Browser/blob/dev/app/src/main/AndroidManifest.xmlに役立ちます。 –