Defaulting to numeric keyboard on EditText without forcing numeric input.

by Mike Olson » Fri, 07 Aug 2009 01:00:46 GMT

Sponsored Links
 I have an EditText that I don't want to force to be a number, but
chances are it almost always will start with a number (The field is
"Quantity", and I'd like to to be free text, so I can write "1 oz", "2
boxes", etc).

Is there a way to have the on-screen keyboard default to the numeric
keyboard, but still allow me to enter letters if I press the "ABC"
button?  If I say add android:number="integer" it won't allow non-
numeric inputs.



Other Threads

1. Google Adsense on Android (or any other Mobile OS)

Thanks Polyclefsoftware,

What did you mean about Admob? About them not requiring webview?

What I'm looking is an ad network that will allow me to call an advert by
using a <Javascript> or some php code in the webview that will bring it into
display. It needs to work this way.

Does anyone here know of anything?

As for Google Adsense: yes, it was pretty vicious what they did. Not that I
don't have an account anymore, but the "way" they did it. Without any
explanation, without any communication, nor reasoning whatsoever. Especially
as I never clicked the ads myself and was responsible. They never explained
anywhere that the ads should not go on an Android phone. I think that is
really irresponsible of them.

Thanks again,

2009/10/21 polyclefsoftware <>


2. Using Webkit/Webview for Android UI instead of native UI

yes you can. use a WebViewClient to deal with clicks on links, invent 
some new URL schemes to implement app logic, etc. call back to Java 
code using the Javascript interface.

we tried this approach, but gave up on it due to issues with the 
WebKit interface and the performance of heavy Javascript on current 
hardware. we will probably go back to it when the hardware & software 
platform evolves enough.



3. Installtion problem

4. Creating sub sampled Bitmap Objects for images on SDcard

5. I Need Help Setting Up My ADB On MY Mac

6. Barcode Scanning App

7. How to add my own item to input field menu