soft keyboard selection from app?

by » Wed, 14 Jul 2010 04:19:43 GMT

Sponsored Links
 So Sony appears to have included their own IME with their xperia

I have an edit box for numerical input that i have specified as number|
It allows for easy number entry and allows users to enter in decimal
numbers.   However the IME in the xperia phones is missing the decimal
Is there a way to specify it should only be using the android IME?

Can I specify resources for specific phones similar to how I can
control resources for versions of android?


soft keyboard selection from app?

by jamesc » Wed, 14 Jul 2010 15:50:37 GMT


I had issues with the X10s IME in that it ignored particular IME flags
cc=gb&lc=en).  You might be suffering from a similar issue.  I suggest
that you post to the SE forum and ask them directly (they confirmed my

Off the top of my head (I've not got the code in front of me at the
moment) I did find that I got the (my) required behaviour by passing
in Type_NULL (or something like that) into the IME configuration
method.  So, you *may* want to play about with the arguments and see
what comes out.  This, however, then leads to the issue that you've
got different config flags for different IMEs, and as far as I know,
you cannot determine which IME is actually in use.  You can, however,
find out which IMEs are present on the device, so you could apply some
sort of workaround if the device is an SE device (but that may affect
users of the standard Android IME on the SE phone...).

I'm not sure that you can enforce the use of the standard Android IME
because that's the responsibility of the user/security issue (also, it
might be a bit 'odd' when the IME is different to what they're
currently using).  I suppose you could show the IME picker and also
tell the user why you're doing that (but, again, that's not the best

I'd be interested to hear how you get on.

One last thing, you might want to get hold of Swype and Swiftkey to
try those IMEs out too...


Sponsored Links

soft keyboard selection from app?

by Dan Dumont » Thu, 15 Jul 2010 02:50:01 GMT

 My wife's phone has swipe built in and the phone keypad has all the buttons
I need.

I emailed SE and they seem pretty clueless so far, I've followed up asking
them to direct me to their android development staff, because their android
page just points users to general android help.  And their emulator setup
does not include their IME...       not fun...

I can understand why Android would want to make the IME a system wide
setting, but I'm surprised there's no permission that I can declare for my
app to set the default IME to the default android one.   Does this not


soft keyboard selection from app?

by jamesc » Thu, 15 Jul 2010 03:40:28 GMT

 s per:

"A client application can ask that the system let the user pick a new
IME, but can not programmatically switch to one itself."

My point about Swype and Swiftkey is that they may also not handle
your flags correctly. Unlikely, though, as they appear, from my
experience, to be well behaved.

I agree with your comments on IMEs; it is potentially a massive
headache and it'll be the app writers that bear the brunt of the
complaints from users when their favourite (obscure? incorrectly
written?) IME disobeys expected behaviour.

Have you tried my suggestions of tinkering with the flags on the
Xperia device to see what happens?

On Jul 14, 7:49pm, Dan Dumont <> wrote:
> >

soft keyboard selection from app?

by Dan Dumont » Thu, 15 Jul 2010 09:23:38 GMT

 o, I don't have a sony phone and the emu doesn't have their IME...    :(

Just trying to address some complains that my users are having.

On Wed, Jul 14, 2010 at 3:38 PM, jamesc <> wrote:

> > >

soft keyboard selection from app?

by jamesc » Thu, 15 Jul 2010 13:26:23 GMT

 ell, I've got access to an X10 so I'd be willing to test out any
variant apks you want to send my way.

On Jul 15, 2:23am, Dan Dumont <> wrote:
> > > >

soft keyboard selection from app?

by Dan Dumont » Fri, 16 Jul 2010 23:53:41 GMT

 an you install wwdiary from the market and confirm the reports of no
decimal key on the phonepad?

I'm interested to know what the screen looks like, can you take a
screenshot? After install, press back to get to main screen, then press
the chicken leg.
put the cursor in the points edittext and it should bring up a phone keypad.

On Thu, Jul 15, 2010 at 1:26 AM, jamesc <> wrote:

> > > > >

soft keyboard selection from app?

by Johan Abramsson » Thu, 22 Jul 2010 01:05:11 GMT

The Sony Ericsson X10 emulator is basically only a skin which is put
on top of the standard google emulator, which is why the IME of the
emulator doesn't behave as the IME of the phone.
Kind regards
Sony Ericsson Developer Support

On Jul 16, 5:53pm, Dan Dumont <> wrote:
> > > > > >

soft keyboard selection from app?

by Johan Abramsson » Thu, 22 Jul 2010 11:48:11 GMT

I was asked to comment why the SonyEricsson emulator doesn't emulate
the IME of the X10 hardware. That is because the X10 emulator is
merely a skin put on top of the default android emulator.

Kind regards
Sony Ericsson Developer Support #SEDW


Other Threads

1. Getting a File object from android

I have a library that takes a File object as a parameter to one of the

I am getting the file like this:

this.openFileOutput("myFile", MODE_PRIVATE)

I need to load this file from the system, however, I don't know how to
convert FileOutputStream to File.  Or is there another way of doing


2. Need help with part of an app.. countdown

Or, you could do something like this:

It works wonders.  In the onTick method is where you can update your
textview with the new information.


3. eclair patch for arm920 s3c244x family

4. LocationManager.requestLocationUpdates()

5. Unable to found the 'Android' in eclipse-> Window > preferences on windows 7 OS

6. Do I need to notify users that I'm using analytics in my Android app? (like Flurry, Admob analytics or even logging tool like DriodDrop)

7. Accessing contact's phone number