soft keyboard selection from app?

by ddum...@gmail.com » Wed, 14 Jul 2010 04:19:43 GMT


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

I have an edit box for numerical input that i have specified as number|
numberDecimal|phone
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
key.
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


 Hi

I had issues with the X10s IME in that it ignored particular IME flags
( http://developer.sonyericsson.com/wportal/devworld/forum? 
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
findings).

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
solution).

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
exist?





>



soft keyboard selection from app?

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


 s per: 
http://developer.android.com/reference/android/view/inputmethod/InputMethodManager.html
:

"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 <ddum...@gmail.com> 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 <jame...@gmail.com> 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 <ddum...@gmail.com> 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 <jame...@gmail.com> wrote:

> > > > >



soft keyboard selection from app?

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


 i,
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
/Johan
Sony Ericsson Developer Support

On Jul 16, 5:53pm, Dan Dumont <ddum...@gmail.com> wrote:
> > > > > >



soft keyboard selection from app?

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


 Hi,
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
  /Johan
Sony Ericsson Developer Support #SEDW

--



Other Threads

1. G1 access internet via pc internet connection

Hi All,

I got some hints of how to access internet through G1 phone wireless
connection.

what if accessing the internet from G1 phone via PC internet
connection?

thx,

george

--~--~---------~--~----~------------~-------~--~----~

2. Update Running Activity from BroadcastReceiver?

Hi all,

Is it possible to update a currently running activity from a BroadcastReceiver?

I have a BroadcastReceiver that's able to start an activity just fine
from its onReceive method.  But what if the activity is already
running?  How do I let it know that the BroadcastReceiver has some
more data for it?  Do I just start the activity again?  If so, would
that be a new instance of the activity?  What happens to the old one?
If it doesn't create a new instance, does onCreate get called again?
If not, how does the activity know that it's been hit again by the
BroadcastReceiver?  More importantly, in that case, how does the
activity get the data I attached to the intent in the
BroadcastReceiver?

--~--~---------~--~----~------------~-------~--~----~

3. Unable to Update a Contact Phone number

4. Skip object in BasicAdapter / CustomListAdapter

5. Go to the home screen.

6. Join Online Android Classes

7. Android Courses