Android 如何在浏览器中请求url时启动活动
嗨,我想在调用url时打开一个活动。url为(http://riteshmehandiratta.appspot.com).这是我的舱单Android 如何在浏览器中请求url时启动活动,android,android-intent,Android,Android Intent,嗨,我想在调用url时打开一个活动。url为(http://riteshmehandiratta.appspot.com).这是我的舱单 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.familygraph7" android:versionCode="1" a
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.familygraph7"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="7" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".FamilyActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:label="Hello Wordl"
android:name=".FamilyUser" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http" android:host="www.riteshmehandiratta.appspot.com" />
</intent-filter>
</activity>
</application>
</manifest>
但当我试图在浏览器中打开Url时,它没有打开我的活动。请建议如何在调用特定Url时启动活动。将可浏览类别添加到清单中的
:
<activity android:label="Hello Wordl" android:name=".FamilyUser" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http" android:host="www.riteshmehandiratta.appspot.com" />
</intent-filter>
</activity>
当用户在浏览器中键入URL并进行搜索时,是否要启动活动?或者您想启动浏览器行为。使用活动中的特定url?从何处调用url??请把你的问题重新措辞一下。