私は AndroidManifest.xml にこれを持っています
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<data android:scheme="http"/>
</intent-filter>
しかし、私が電話すると:
Intent i = currentActivity.getIntent();
Log.d("Logging", "i.getAction() is " + i.getCategories());
Log.d("Logging", "i.getAction() is " + i.getAction());
Log.d("Logging", "i.getData() is " + i.getData());
Log.d("Logging", "scheme is " + i.getScheme());
私はこれを取り戻しました:
D/Logging( 5050): i.getAction() is [android.intent.category.LAUNCHER]
D/Logging( 5050): i.getAction() is android.intent.action.MAIN
D/Logging( 5050): i.getData() is null
D/Logging( 5050): scheme is null
なぜ何か考えはありますか?