I am real new to android development.

I am using the WebView view to display a webpage inside the android
app

When a user touches a textbox in the web page, can I set the virtual
keyboard that comes up to be a numeric keyboard?

In fact the default keyboard for my whole web app can always be
numeric.

Thanks

Craigbtx


I was hoping to set some property in my code below, like you might do
for a TextView.

Listed below is all my code.

<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="0dip"
        android:layout_weight="1"

        />


  public class WebViewDemo extends Activity {
    private static final String True = null;

        /** Called when the activity is first created. */

        /** private static final String LOG_TAG = "WebViewDemo";
        private WebView mWebView;
        private Handler mHandler = new Handler();
        */

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        WebView webview = new WebView(this);
        setContentView(webview);

        // Simplest usage: note that an exception will NOT be thrown
        WebSettings webSettings = webview.getSettings();
        webSettings.setJavaScriptEnabled(true);

        // Make the zoom controls visible
        webSettings.setBuiltInZoomControls(true);

        //Open clicked links in this WebView view
        webview.setWebViewClient(new WebViewClient());



        // Go to a web page
        webview.loadUrl("http://192.168.1.101/PhoneApps/Default.aspx
    }

}

-- 
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to