Allow only decimal numeric input and use phone soft keyboard?

by Nmix » Fri, 23 Apr 2010 12:30:35 GMT

Sponsored Links
 Try adding the following line to the xml to filter for integer input:


I've had some success using android:inputType to select the soft
keyboard and android:digits to filter which keys are accepted.


Allow only decimal numeric input and use phone soft keyboard?

by jamesc » Fri, 23 Apr 2010 13:44:00 GMT

 >From reading this: 

it looks like you need TYPE_CLASS_NUMBER.


Sponsored Links

Other Threads

1. Any Insight on this crash?

I am getting a crash intermittently when my Activity starts up either
initially or when the screen gets rotated I get several log messages
which I have been unable to get any insight from:

timeout expired mFreezeDisplay=1 mFreezeCount=0
App freeze timeout expired
Force clearing freeze
then lots of: Lock_layer timed out (is the CPU pegged?)
Key dispatching timed out

then I get ANR annotation: keyDispatchingTimedOut

the trace has alot of

sending signal 3 to alot of PIDs

anyone have any idea what my problem might be, or for that matter what
any of these things might mean or be indicating?

2. Delete assets at runtime

Hi all,

I have a large (900kb) asset in the assets directory which is only
used once by the app at initialization time. Is there way for me to
delete this file at runtime?
If not delete change it's contents to "0" and effectively reduce its
size to almost nothing.
There isn't really any point of having this take space on the phone's
limited memory.

Thanks for the help.


3. "Apple iPhone Developers Mostly Don't Make Much Money"

4. An advanced list view

5. LiveFolder

6. I just have to say thanks to google. The iPhone review process was killing me, but this is great

7. concurrency of AsyncTasks