安卓開發(fā)五大關(guān)鍵字(比如activity)
2 回答

呼如林
TA貢獻1798條經(jīng)驗 獲得超3個贊
先在AndroidManifast.xml要被指定Scheme的Activity下設(shè)置如下參數(shù)
[html] view plain copy
<intent-filter>
<category android:name="android.intent.category.DEFAULT"></category>
<action android:name="android.intent.action.VIEW"></action>
<data android:scheme="sh"></data>
</intent-filter>
這樣即指定了接收Uri的Scheme為sh 且 Action為View的Intent。
利用如下Intent調(diào)用Activity
- 2 回答
- 0 關(guān)注
- 756 瀏覽
添加回答
舉報
0/150
提交
取消