2
嗨,我想打开一个活动,当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"
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.please建议的方式。
你想,当用户在他/她的浏览器中键入URL的搜索,并为它推出的活动?或者你想启动浏览器行为。与您的活动的具体网址? –
网址是从哪里调用的?请稍微改述一下你的问题。 – akkilis