【发布时间】:2012-06-20 08:55:06
【问题描述】:
<activity
android:name=".RegisterationCompletion"
android:configChanges="orientation"
android:label="@string/app_name" >
<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:scheme="test" />
</intent-filter>
</activity>
我需要从浏览器 URI 启动 android 应用程序,但此代码在 Ginger Bread 和其他更高版本中不起作用。有什么想法吗?
【问题讨论】:
-
它是否在较低版本中工作?
-
test://192.168.254.84:8080/testregisteration/ 我正在提供这样的链接,它在本地托管..
-
您的代码看起来不错,但不建议创建自定义方案。但是,如果您只是在浏览器中键入此 URL,那将不起作用。网页上的链接应该可以工作。
标签: android html android-browser