hi,
im writing a bare bones application on android...and my webview doesnt
seem to work. i mean its not showing any data on the emulator screen.
the textview and editview all work fine..but the webview doesnt show
any data on screen. am i missing something?
below is the part of the code that is relevant
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.login);
WebView wView = (WebView) findViewById(R.id.wview);
wView.loadData(
"<html><body>Please click </body></html>",
"text/html", "utf-8");
}
my login.xml looks like this
------------------------------------------
<?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"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Username"
/>
<EditText android:id="@+id/username"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Password"
/>
<EditText android:id="@+id/password"
android:password="true"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<Button android:id="@+id/login"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Login"
/>
<WebView
android:id="@+id/wview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:focusable="false"/>
</LinearLayout>
thanx
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---