我正试图接手HelloWebView Sample(如没有 cu子)在座。
rel=“nofollow noreferer”http://developer.android.com/resources/tutorials/views/hello-webview.html
我继续 j。 安全 例外:尽管做出了各种努力,但还是允许拒绝。 我认为,这必然是我根本缺乏理解(我是一个新鲜事物),或许是我发展环境的地方(Windows XP)。
我的主编为:乐施会、乐施会、乐施会。
迄今审理的案件:
- different api s (6,7)
- adding/verifying (I think :)) that "uses-permission android:name="android.permission.INTERNET"" has the correct syntax and location in my manifest.
- wiping emulator
- restarting eclipse, laptop etc.
- disabling my internet security
任何帮助都将受到高度赞赏。
Thank you. Tim
我的主轴是:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<WebView
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
</LinearLayout>
我的明确档案是:
<uses-permission android:name="android.permission.INTERNET" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".HelloWebView"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".HelloWebView" android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
</activity>
</application>
实际青s产出:
------------------------------ [2010-06-04 07:57:06 - HelloWebView] Android Launch! [2010-06-04 07:57:06 - HelloWebView] adb is running normally. [2010-06-04 07:57:06 - HelloWebView] Performing com.example.hellowebview.HelloWebView activity launch [2010-06-04 07:57:06 - HelloWebView] Automatic Target Mode: launching new emulator with compatible AVD AndroidGM2.1 [2010-06-04 07:57:06 - HelloWebView] Launching a new emulator with Virtual Device AndroidGM2.1 [2010-06-04 07:57:08 - HelloWebView] New emulator found: emulator-5554 [2010-06-04 07:57:08 - HelloWebView] Waiting for HOME ( android.process.acore ) to be launched... [2010-06-04 07:57:34 - HelloWebView] WARNING: Application does not specify an API level requirement! [2010-06-04 07:57:34 - HelloWebView] Device API version is 7 (Android 2.1) [2010-06-04 07:57:34 - HelloWebView] HOME is up on device emulator-5554 [2010-06-04 07:57:34 - HelloWebView] Uploading HelloWebView.apk onto device emulator-5554 [2010-06-04 07:57:35 - HelloWebView] Installing HelloWebView.apk... [2010-06-04 07:57:46 - HelloWebView] Success! [2010-06-04 07:57:47 - HelloWebView] Starting activity com.example.hellowebview.HelloWebView on device [2010-06-04 07:57:55 - HelloWebView] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.hellowebview/.HelloWebView } [2010-06-04 07:57:55 - HelloWebView] ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.example.hellowebview/.HelloWebView } from null (pid=-1, uid=-1) requires null