Skip to content

Commit ef9a4d0

Browse files
committed
Add intent-filter for main activity in getting started documentation to clarify app launch configuration
1 parent 8faa69a commit ef9a4d0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

site/pages/docs/getting-started.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,12 @@ struct Index {
466466
android:launchMode="singleTask">
467467
<!-- ↑↑↑ -->
468468

469+
<intent-filter>
470+
<action android:name="android.intent.action.MAIN" />
471+
<category android:name="android.intent.category.LAUNCHER" />
472+
</intent-filter>
469473

470-
<!-- ↓↓↓ 添加如下 intent-filter -->
474+
<!-- ↓↓↓ 添加如下 intent-filter, 注意和上面的 intent-filter 是不同的 action 和 category -->
471475
<intent-filter>
472476
<action android:name="android.intent.action.VIEW" />
473477
<category android:name="android.intent.category.DEFAULT" />

0 commit comments

Comments
 (0)