Ich lese Absicht & Absicht Filter. Ich habe den Code unten:kann Absicht Filter nicht verstehen
In Aktivität:
Intent i = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("http://www.example.com"));
startActivity(i);
In Manifest:
<activity android:name="com.example.intentdemo.CustomActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="com.example.intentdemo.LAUNCH" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http" />
</intent-filter>
</activity>
Meine Frage ist, dass- soll ich nicht android.Intent erklären. ACTION_VIEW, anstelle von android.content.Intent.ACTION_VIEW innerhalb der Absicht?
Ich war Antwort für Ihre HTTP Frage schreiben, warum Sie es gelöscht? – user3301551