2012-03-13 57 views
2

我已经制定,而不是在web视图加载它命名为“石鱼赛车”的情况下的应用程序ü想反正当应用程序加载页面延胡索吧:) ,它会打开一个浏览器? 继承人的编码,如果u能帮助的Android的WebView问题

RMS/RES /布局/ main.xml中

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:orientation="vertical" > 

<TextView 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    /> 

<WebView xmlns:android="http://schemas.android.com/apk/res/android" 
android:id="@+id/webview" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
/> 

</LinearLayout> 

AndroidManifest.xml中

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="XXXXXXX" 
android:versionCode="1" 
android:versionName="1.0" > 

<uses-sdk android:minSdkVersion="10" /> 
<uses-permission android:name="android.permission.INTERNET" /> 

<application 
    android:icon="@drawable/new_launcher" 
    android:label="@string/app_name" > 
    <activity 
     android:name=".RockfishMotorsportsActivity" 
     android:label="@string/app_name" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
</application> 
</manifest> 
+0

添加活动的源代码 – FoamyGuy 2012-03-13 00:50:58

回答

0

我无法找到Android Market上的应用程序,但我假设你的WebView你有试图去一个不同的页面上的用户行为,在默认情况下将启动浏览器。为了使你的的WebView新的页面加载,看看这个其他SO回答:

Android WebView click opens default browser

+0

感谢的人现在的工作 – SMOKE 2012-03-13 12:29:22