1. Configure in the Android local app manifest file
<activity android:name= "com.mdj.ui.WelcomeActivity" android:screenorientation= "Portrait " Android:theme= "@android: Style/theme.black.notitlebar.fullscreen" > <intent-filter> <action Android:name= "Android.intent.action.MAIN"/> <category android:name= "Android.intent.category.LAUNCHER" /> </intent-filter> <!--use URI to call app-- <intent-filter> <action android: Name= "Android.intent.action.VIEW"/> <category android:name= "Android.intent.category.DEFAULT"/> <category android:name= "Android.intent.category.BROWSABLE"/> <data android:host= " Com.mdj.ui " android:scheme=" Mdj "/> </intent-filter></activity>
Attention:
The schema must all be lowercase letters. and can't have numbers.
Host is also a lowercase letter
2 . Write a simple HTML page
3. Mobile browser opens HTML directly
4. Assume that you need to pass the URI to participate. Change the HTML directly to
5, in the application of the call to get
Uri uri = getintent (). GetData ();
String test1= uri.getqueryparameter ("arg0");
String test2= uri.getqueryparameter ("arg1");
Call up the local app with a URI