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. Unable to start service Intent error in Client-Server project

Hi All,

I am getting the below error when ever i am trying to call the bind
02-12 20:17:25.486: WARN/ActivityManager(58): Unable to start service
Intent { }: not found

I have created the Client-Server application. At the Server site i
have used the AIDL to impliment the interfaces in my Service class.
At Client site i have exposed the AIDL interfaces and have one
Activity that mainly do the IPC mechanism , i mean ServiceConnection,
bindService and then call the Serivce of the Client site. But i am
getting the error i mentioned during the bindService call.

Could you please let me know the steps mainly i have to follow to run
the Client -Server Application. For time being i am running the
Client .apk first and then the Server .apk, but the server one giving
me error.

It would be great if you could let me know what all permission short
of thing to take care, as my Client and Server code are placed at
different APks, so do i need to import the Client project in my Server
Project, if yes then how to impliment that.


2. How get horizontal and vertical events in android


There's no need to do this.

Instead, use two files:

res/layout-port/splash.xml << splash for portrait mode
res/layout-land/splash.xml << splash for landscape mode

Then in your code just call setContentView(R.layout.splash).

Android will take care of the rest :)

Romain Guy
Android framework engineer

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them


3. Can we call acreoss the packages?

4. Native Library Porting in Android[Windows]

5. Paid App Question

6. EditText (textbox) to String

7. BUG of IMF