Default keyboard in application

by Craigbtx » Wed, 05 Jan 2011 03:46:01 GMT


Sponsored Links
 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 
    }

}

-- 



Other Threads

1. Newbi

Hi All,

I am a completely  newbie with the android platform and to explore and know
about the security framework in android. I have just
downloaded the source code,build and run the emulator in ubuntu.

I have been working in SELinux for last few months.
http://code.google.com/android/devel/security.html i got that security here
is in process level,that every application runs in a sandboxed environment.I
have two questions(maybe they are too basic to ask,sorry for that)

1.Is there any security when some application wants to make a system call?
2.Which module in android source code is responsible for security
enforcement(want to know where to start with in order to know about android
security)?

Could anyone help me?

Regards,
Shaunak

2. Device Idle State Capture

Hi All:

Is it possible to somehow detect and capture the idle state of the
android device?
Need help on the approach which should be followed for developing idle
time based applications in android?

Thanks,
Pooja
--~--~---------~--~----~------------~-------~--~----~

3. Future supported screen sizes and resolutions

4. How to Get PendingIntent Result Code?

5. Audio in the emulator...

6. Profiling Android Libraries

7. HELP: How to Packaging a Database in an App