[Java for Android App Development] iacoposk8:
Hello to all! Today I started learning android :)

use eclipse already configured (I was able to start a hello world)

Now I would like to launch a webview.

I added in activity_main.xml with the graphic mode, then src / MainActivity.java I wrote:

package com.example.helloworld;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.text.Editable;
import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Button;
import android.widget.EditText;

public class MainActivity extends Activity {
WebView webview;

[MENTION=439709]override[/MENTION]
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

WebView webView = (WebView) findViewById(R.id.webView1);
webView.loadUrl("google");
}

[MENTION=439709]override[/MENTION]
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
}

I read it in the emulator:

unfortunately, HelloWorld has stopped

this is the log:

09-04 10:19:27.392: D/AndroidRuntime(1728): Shutting down VM
09-04 10:19:27.392: W/dalvikvm(1728): threadid=1: thread exiting with uncaught exception (group=0x41465700)
09-04 10:19:27.411: E/AndroidRuntime(1728): FATAL EXCEPTION: main
09-04 10:19:27.411: E/AndroidRuntime(1728): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.helloworld/com.example.helloworld.MainActivity}: android.view.InflateException: Binary XML file line #11: Error inflating class uses-permission
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.app.ActivityThread.access$600(ActivityThread.java:141)
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.os.Handler.dispatchMessage(Handler.java:99)
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.os.Looper.loop(Looper.java:137)
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-04 10:19:27.411: E/AndroidRuntime(1728): at java.lang.reflect.Method.invokeNative(Native Method)
09-04 10:19:27.411: E/AndroidRuntime(1728): at java.lang.reflect.Method.invoke(Method.java:525)
09-04 10:19:27.411: E/AndroidRuntime(1728): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-04 10:19:27.411: E/AndroidRuntime(1728): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-04 10:19:27.411: E/AndroidRuntime(1728): at dalvik.system.NativeStart.main(Native Method)
09-04 10:19:27.411: E/AndroidRuntime(1728): Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class uses-permission
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707)
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
09-04 10:19:27.411: E/AndroidRuntime(1728): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:267)
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.app.Activity.setContentView(Activity.java:1895)
09-04 10:19:27.411: E/AndroidRuntime(1728): at com.example.helloworld.MainActivity.onCreate(MainActivity.java:19)
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.app.Activity.performCreate(Activity.java:5133)
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
09-04 10:19:27.411: E/AndroidRuntime(1728): ... 11 more
09-04 10:19:27.411: E/AndroidRuntime(1728): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.uses-permission" on path: DexPathList[[zip file "/data/app/com.example.helloworld-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.helloworld-2, /system/lib]]
09-04 10:19:27.411: E/AndroidRuntime(1728): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
09-04 10:19:27.411: E/AndroidRuntime(1728): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
09-04 10:19:27.411: E/AndroidRuntime(1728): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.view.LayoutInflater.createView(LayoutInflater.java:559)
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:652)
09-04 10:19:27.411: E/AndroidRuntime(1728): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:66)
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:669)
09-04 10:19:27.411: E/AndroidRuntime(1728): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:694)
09-04 10:19:27.411: E/AndroidRuntime(1728): ... 21 more
09-04 10:19:39.201: I/Process(1728): Sending signal. PID: 1728 SIG: 9