从我的 PreferenceScreen 我想在 WebView 而不是浏览器中打开链接。有任何想法吗?
这是我的xml的一部分:
<PreferenceCategory
android:title="@string/about">
<PreferenceScreen
android:title="@string/eula"
android:summary="">
<intent android:action="android.intent.action.VIEW"
android:data="http://www.tara.com/m/EULA.aspx" />
</PreferenceScreen>
<PreferenceScreen
android:title="@string/privacy_policy"
android:summary="">
<intent android:action="android.intent.action.VIEW"
android:data="http://www.tara.com/m/Legal/Privacy.aspx" />
</PreferenceScreen>
<PreferenceScreen
android:title="@string/version"
android:summary="@string/version_name">
</PreferenceScreen>
<PreferenceScreen
android:title="@string/customer_support"
android:summary="@string/email_description">
<intent android:action="com.tara.android.turboweather.EMAIL_ACCUWX"
/>
</PreferenceScreen>
<PreferenceScreen
android:title="@string/branding"
android:summary="">
</PreferenceScreen>
</PreferenceCategory>
所以 URL 在哪里我想打开一个 Android WebView,而不是打开手机的浏览器。