[android-developers] MotionEvent event.x and event.y always returns 0 when catching MotionEvent.ACTION_OUTSIDE

2012-05-23 Thread tsukishiro
Hello everyone,

I have a customized Dialog whose size does not fill the screen. I have also 
enabled the following flags for the dialog's window.
1. WindowManager.LayoutParams.TYPE_APPLICAITON_ATTACHED_DIALOG
2. WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
3. WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL
4. WindowManager.LayoutParams.FLAG_ WATCH_OUTSIDE_TOUCH

In addition, I overridden onTouchEvent(MotionEvent event) method so that I 
can process the event whenever a touch outside of the dialog's window 
occurs.
As a result, I can move my dialog at any point outside its window.

Here's my problem. This expected behavior works fine in the emulator (using 
Gingerbread code and build btw) and it also works fine with my Samsung 
Galaxy S2 (Gingerbread build).
But when I tried to run this app on my friends machine (runs on ICS), 
event.x and event.y for ACTION_OUTSIDE will always return 0.
Does anyone know the reason for this? Has event handling in ICS been 
changed for ACTION_OUTSIDE?

Hoping to hear from you guys, thanks and best regards,
- tsukishiro

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] InputConnection becomes inactive after launching Activity from IME

2012-04-02 Thread tsukishiro
Hello guys,

I launched a translucent Activity that contains custom views from my IME 
(so that I can have a full-screen IME whose layout I can control 
relatively). My problem is when I tried to call commitText of the 
InputConnection that I passed from my IME to the translucent Activity, 
nothing happens. No output is displayed on the EditText or input field in 
the background Activity (this is the Activity that launched my IME). Does 
anyone know how to re-activate my InputConnection with the Activity behind 
my translucent Activity?

Thanks and best regards,
- tsukishiro

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Question About LatinIME/SoftKeyboard - anyone using it?

2012-03-22 Thread tsukishiro
You can modify the qwerty.xml keyboard xml file in the SoftKeyboard sample 
to suit your needs. As for dynamically changing the layout, you can either 
check the type of input field you are working with (for example, check if 
it requires only numbers) then display the appropriate keyboard by using 
the android:keyboardMode xml attribute of Keyboard.Row *OR *you can create 
separate keyboard xml files to suit your need. The latter is more tedious 
and will require you to do a lot of if-else if statements in your code when 
creating the keyboard.

On Friday, March 23, 2012 9:03:20 AM UTC+9, Mark Phillips wrote:

 I am working on a app that needs a fair amount of user input, both text 
 and numbers. The input paradigm has to be very fast - there is little time 
 to jump between several screens to complete the input before a new set of 
 data input has to be made. Fast may not the the right wordin this 
 scenario I find it distracting to move through several screens (popup 
 dialogs/selection boxes included) to finish this input set and then return 
 to making observations to collect the data that has to be input. I could 
 use selection boxes, but I would like to find something else more clever. 
 Why? The competition uses that input mode, and I find their input method to 
 be slow and painful (to me - ie distracting from the observing component of 
 this user application).

 The good news is the text is really just a small set of one, two, or three 
 letter codes plus 1-3 numbers. I was thinking of trying to make a small 
 keyboard that had the right codes and numbers to see if that input format 
 is faster and less distracting. I googled for android soft keyboard and 
 found references to the LatinIME and the sample SoftKeyboard in the sdk. 
 Most of the references I have found to these keyboards is translating them 
 into different languages. What I really need is a 4X4 grid (or maybe the 
 3X6 number grid will work) of keys where I can change the labels on the 
 keys depending on the different input conditions. Is it possible to change 
 the layout and number of keys using these tools, or do I have to roll my 
 own from scratch using the SoftKeyboard as a starting point? 

 Would it be easier/simpler to use a grid layout and just put 16 buttons in 
 it? 

 Thanks for your thoughts! 

 Mark


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How do you get the Activity that launches the IME?

2012-03-21 Thread tsukishiro
Hello guys,

Still working on my IME (sheesh, it's taking too long... .). I was 
wondering if there was a way to get a reference or instance of the Activity 
that launches my IME. For example, if I was in the new contact activity of 
Contacts application and I click on an input field (like an EditText), then 
my IME would be launched (as expected). Now I want to get a reference to 
the new contact activity from which my IME was launched. Is this possible?

Please let me here your thoughts,
- tsukishiro

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How do you get the Activity that launches the IME?

2012-03-21 Thread tsukishiro
Thanks Zsolt Vasvari,

Hmmm... I can get the package name of the Activity that launched my IME, is 
there a way to use that information to create a dummy instance of an 
Activity?

On Wednesday, March 21, 2012 4:23:48 PM UTC+9, Zsolt Vasvari wrote:

 I don't believe so.  An IME is a completely separate app in Android.   
 Just as you cannot get a reference to another app's activity, you cannot do 
 this from an IME.  

 On Wednesday, March 21, 2012 3:15:52 PM UTC+8, tsukishiro wrote:

 Hello guys,

 Still working on my IME (sheesh, it's taking too long... .). I was 
 wondering if there was a way to get a reference or instance of the Activity 
 that launches my IME. For example, if I was in the new contact activity of 
 Contacts application and I click on an input field (like an EditText), then 
 my IME would be launched (as expected). Now I want to get a reference to 
 the new contact activity from which my IME was launched. Is this possible?

 Please let me here your thoughts,
 - tsukishiro



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How do you get the Activity that launches the IME?

2012-03-21 Thread tsukishiro
Noo. . ok, let me try a different angle at this. Let's say I 
were to make an IME that is not a subclass of InputMethodService, is it 
possible? I was thinking of launching a translucent Activity to hold my 
on-screen keyboard. Can this be done?

On Wednesday, March 21, 2012 4:43:47 PM UTC+9, Zsolt Vasvari wrote:

 No.  It's a completely separate app in different processes, signed with 
 different certificates, etc, etc.

 On Wednesday, March 21, 2012 3:30:23 PM UTC+8, tsukishiro wrote:

 Thanks Zsolt Vasvari,

 Hmmm... I can get the package name of the Activity that launched my IME, 
 is there a way to use that information to create a dummy instance of an 
 Activity?

 On Wednesday, March 21, 2012 4:23:48 PM UTC+9, Zsolt Vasvari wrote:

 I don't believe so.  An IME is a completely separate app in Android.   
 Just as you cannot get a reference to another app's activity, you cannot do 
 this from an IME.  

 On Wednesday, March 21, 2012 3:15:52 PM UTC+8, tsukishiro wrote:

 Hello guys,

 Still working on my IME (sheesh, it's taking too long... .). I was 
 wondering if there was a way to get a reference or instance of the 
 Activity 
 that launches my IME. For example, if I was in the new contact activity of 
 Contacts application and I click on an input field (like an EditText), 
 then 
 my IME would be launched (as expected). Now I want to get a reference to 
 the new contact activity from which my IME was launched. Is this possible?

 Please let me here your thoughts,
 - tsukishiro



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How do you get the Activity that launches the IME?

2012-03-21 Thread tsukishiro
Oh, I take it you mean something similar to this 
onehttp://stackoverflow.com/questions/7914912/starting-activity-from-another-application-using-only-package-name
 right? 
Well, basically, if I already have a reference to the Activity that 
launched my IME, then I would be able to use that Activity's 
dispatchTouchEvent() method.

On Wednesday, March 21, 2012 5:07:55 PM UTC+9, Zsolt Vasvari wrote:

 I mean, I take that back.  If you know the class name of an activity, you 
 can start it with an Intent, but you cannot really control it in any 
 meaningful way, so I am not sure what you would be able to accomplish.

 On Wednesday, March 21, 2012 3:49:20 PM UTC+8, tsukishiro wrote:

 Noo. . ok, let me try a different angle at this. Let's say 
 I were to make an IME that is not a subclass of InputMethodService, is it 
 possible? I was thinking of launching a translucent Activity to hold my 
 on-screen keyboard. Can this be done?

 On Wednesday, March 21, 2012 4:43:47 PM UTC+9, Zsolt Vasvari wrote:

 No.  It's a completely separate app in different processes, signed with 
 different certificates, etc, etc.

 On Wednesday, March 21, 2012 3:30:23 PM UTC+8, tsukishiro wrote:

 Thanks Zsolt Vasvari,

 Hmmm... I can get the package name of the Activity that launched my 
 IME, is there a way to use that information to create a dummy instance of 
 an Activity?

 On Wednesday, March 21, 2012 4:23:48 PM UTC+9, Zsolt Vasvari wrote:

 I don't believe so.  An IME is a completely separate app in Android. 
   Just as you cannot get a reference to another app's activity, you 
 cannot 
 do this from an IME.  

 On Wednesday, March 21, 2012 3:15:52 PM UTC+8, tsukishiro wrote:

 Hello guys,

 Still working on my IME (sheesh, it's taking too long... .). I was 
 wondering if there was a way to get a reference or instance of the 
 Activity 
 that launches my IME. For example, if I was in the new contact activity 
 of 
 Contacts application and I click on an input field (like an EditText), 
 then 
 my IME would be launched (as expected). Now I want to get a reference to 
 the new contact activity from which my IME was launched. Is this 
 possible?

 Please let me here your thoughts,
 - tsukishiro



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How do you get the Activity that launches the IME?

2012-03-21 Thread tsukishiro
Zannen (too bad in jap.) I guess this is a dead-end road. Thanks for 
your replies Zsolt Vasvari! Really helped me clarify a things.

On Wednesday, March 21, 2012 5:22:37 PM UTC+9, Zsolt Vasvari wrote:

 No, you cannot call methods in another process' Activity as you cannot get 
 a reference to it.  You can start it via an Intent, but that won't give you 
 a reference.  Nothing will.


 On Wednesday, March 21, 2012 4:13:23 PM UTC+8, tsukishiro wrote:

 Oh, I take it you mean something similar to this 
 onehttp://stackoverflow.com/questions/7914912/starting-activity-from-another-application-using-only-package-name
  right? 
 Well, basically, if I already have a reference to the Activity that 
 launched my IME, then I would be able to use that Activity's 
 dispatchTouchEvent() method.

 On Wednesday, March 21, 2012 5:07:55 PM UTC+9, Zsolt Vasvari wrote:

 I mean, I take that back.  If you know the class name of an activity, 
 you can start it with an Intent, but you cannot really control it in any 
 meaningful way, so I am not sure what you would be able to accomplish.

 On Wednesday, March 21, 2012 3:49:20 PM UTC+8, tsukishiro wrote:

 Noo. . ok, let me try a different angle at this. Let's 
 say I were to make an IME that is not a subclass of InputMethodService, 
 is it possible? I was thinking of launching a translucent Activity to hold 
 my on-screen keyboard. Can this be done?

 On Wednesday, March 21, 2012 4:43:47 PM UTC+9, Zsolt Vasvari wrote:

 No.  It's a completely separate app in different processes, signed 
 with different certificates, etc, etc.

 On Wednesday, March 21, 2012 3:30:23 PM UTC+8, tsukishiro wrote:

 Thanks Zsolt Vasvari,

 Hmmm... I can get the package name of the Activity that launched my 
 IME, is there a way to use that information to create a dummy instance 
 of 
 an Activity?

 On Wednesday, March 21, 2012 4:23:48 PM UTC+9, Zsolt Vasvari wrote:

 I don't believe so.  An IME is a completely separate app in 
 Android.   Just as you cannot get a reference to another app's 
 activity, 
 you cannot do this from an IME.  

 On Wednesday, March 21, 2012 3:15:52 PM UTC+8, tsukishiro wrote:

 Hello guys,

 Still working on my IME (sheesh, it's taking too long... .). I 
 was wondering if there was a way to get a reference or instance of the 
 Activity that launches my IME. For example, if I was in the new 
 contact 
 activity of Contacts application and I click on an input field (like 
 an 
 EditText), then my IME would be launched (as expected). Now I want to 
 get a 
 reference to the new contact activity from which my IME was launched. 
 Is 
 this possible?

 Please let me here your thoughts,
 - tsukishiro



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How do you launch an Activity for your IME?

2012-03-21 Thread tsukishiro
Hello all,

Is it possible to launch an Activity as you IME? By this, I mean, that 
instead of using a KeyboardView for the InputView of the IME, an Activity 
containing a few widgets will be launched. My purpose in doing this is so 
that I can control where the keyboard will be placed on screen. If I were 
to use the basic implementation for an IME, I would end up having the 
keyboard always at the bottom of the screen. I wanted to place my on-screen 
keyboard somewhere other than the bottom. 

Can someone share some ideas?
Thanks and best regards,
- tsukishiro

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How do you get the Activity that launches the IME?

2012-03-21 Thread tsukishiro
Hmmm... I'm not sure if what I really want is to extend another app. 
Basically, I have a customized IME that is loosely based on the Android API 
Demo SoftKeyboard. In this custom IME, I want to launch a translucent 
Activity that holds a few widgets (like Buttons and TextViews) as my 
InputView. In other words, instead of using the usual KeyboardView as the 
InputView, I will be displaying the translucent Activity to serve as my 
on-screen keyboard. 

Because only a portion of the translucent Activity actually holds the 
widgets, I wish to let touch events in any part of the translucent Activity 
that is not a part of the so-called on-screen keyboard to pass through to 
the Activity that is behind it. To do this, I will have to invoke 
dispatchTouchEvent(MotionEvent event) method of the Activity that is behind 
my translucent Activity. This is the reason why I want to get a reference 
to the Activity that launches my IME.

Is there an alternative way to the end-goal I plan to do?
Thanks for your replies guys!
- tsukishiro

On Thursday, March 22, 2012 12:13:15 AM UTC+9, Kristopher Micinski wrote:

 I think this goes in the i want to extend another app category,
 which is asked a lot here..

 kris

 On Wed, Mar 21, 2012 at 11:10 AM, TreKing treking...@gmail.com wrote:
  On Wed, Mar 21, 2012 at 2:15 AM, tsukishiro tsukishir...@gmail.com 
 wrote:
 
  Now I want to get a reference to the new contact activity from which my
  IME was launched. Is this possible?
 
 
  If you explain what you hoped to accomplish with such functionality, 
 perhaps
  someone could offer alternative suggestions.
 
  
 -
  TreKing - Chicago transit tracking app for Android-powered devices
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How do you get the Activity that launches the IME?

2012-03-21 Thread tsukishiro
Ah, yes it is true that the UI of the IME a.k.a. the InputView will 
automatically allow user's touch events to pass through to the Activity 
behind. However, if the implementation is changed, by this I mean instead 
of the usual way of using KeyboardView as the InputView, an Activity will 
be launched in its place, then touch events will no longer pass through to 
the Activity behind as they are consumed by the translucent Activity that 
has been shown by the IME. Thus, the need to call 
dispatchTouchEvent(MotionEvent event) method of the Activity behind the IME.

On Thursday, March 22, 2012 10:12:07 AM UTC+9, Zsolt Vasvari wrote:

 You sure this doesn't just work like that by default?  Obviously, the UI 
 of a IME allows the user to continue using the main app.  

 On Thursday, March 22, 2012 8:04:01 AM UTC+8, tsukishiro wrote:

 Hmmm... I'm not sure if what I really want is to extend another app. 
 Basically, I have a customized IME that is loosely based on the Android API 
 Demo SoftKeyboard. In this custom IME, I want to launch a translucent 
 Activity that holds a few widgets (like Buttons and TextViews) as my 
 InputView. In other words, instead of using the usual KeyboardView as the 
 InputView, I will be displaying the translucent Activity to serve as my 
 on-screen keyboard. 

 Because only a portion of the translucent Activity actually holds the 
 widgets, I wish to let touch events in any part of the translucent Activity 
 that is not a part of the so-called on-screen keyboard to pass through to 
 the Activity that is behind it. To do this, I will have to invoke 
 dispatchTouchEvent(MotionEvent event) method of the Activity that is behind 
 my translucent Activity. This is the reason why I want to get a reference 
 to the Activity that launches my IME.

 Is there an alternative way to the end-goal I plan to do?
 Thanks for your replies guys!
 - tsukishiro

 On Thursday, March 22, 2012 12:13:15 AM UTC+9, Kristopher Micinski wrote:

 I think this goes in the i want to extend another app category,
 which is asked a lot here..

 kris

 On Wed, Mar 21, 2012 at 11:10 AM, TreKing treking...@gmail.com wrote:
  On Wed, Mar 21, 2012 at 2:15 AM, tsukishiro tsukishir...@gmail.com 
 wrote:
 
  Now I want to get a reference to the new contact activity from which 
 my
  IME was launched. Is this possible?
 
 
  If you explain what you hoped to accomplish with such functionality, 
 perhaps
  someone could offer alternative suggestions.
 
  
 -
  TreKing - Chicago transit tracking app for Android-powered devices
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to 
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en


On Thursday, March 22, 2012 10:12:07 AM UTC+9, Zsolt Vasvari wrote:

 You sure this doesn't just work like that by default?  Obviously, the UI 
 of a IME allows the user to continue using the main app.  

 On Thursday, March 22, 2012 8:04:01 AM UTC+8, tsukishiro wrote:

 Hmmm... I'm not sure if what I really want is to extend another app. 
 Basically, I have a customized IME that is loosely based on the Android API 
 Demo SoftKeyboard. In this custom IME, I want to launch a translucent 
 Activity that holds a few widgets (like Buttons and TextViews) as my 
 InputView. In other words, instead of using the usual KeyboardView as the 
 InputView, I will be displaying the translucent Activity to serve as my 
 on-screen keyboard. 

 Because only a portion of the translucent Activity actually holds the 
 widgets, I wish to let touch events in any part of the translucent Activity 
 that is not a part of the so-called on-screen keyboard to pass through to 
 the Activity that is behind it. To do this, I will have to invoke 
 dispatchTouchEvent(MotionEvent event) method of the Activity that is behind 
 my translucent Activity. This is the reason why I want to get a reference 
 to the Activity that launches my IME.

 Is there an alternative way to the end-goal I plan to do?
 Thanks for your replies guys!
 - tsukishiro

 On Thursday, March 22, 2012 12:13:15 AM UTC+9, Kristopher Micinski wrote:

 I think this goes in the i want to extend another app category,
 which is asked a lot here..

 kris

 On Wed, Mar 21, 2012 at 11:10 AM, TreKing treking...@gmail.com wrote:
  On Wed, Mar 21, 2012 at 2:15 AM, tsukishiro tsukishir...@gmail.com 
 wrote:
 
  Now I want to get a reference to the new contact activity from which 
 my
  IME was launched. Is this possible?
 
 
  If you explain what you hoped to accomplish with such functionality, 
 perhaps
  someone could offer alternative suggestions

Re: [android-developers] How do you get the Activity that launches the IME?

2012-03-21 Thread tsukishiro
Ok. I tried a simple customized layout based on this 
posthttp://stackoverflow.com/questions/6448627/android-non-keyboard-ime and 
inflated it using getLayoutInflater.inflate(R.layout.my_xml_file, null) 
and used the View that was created from this inflation as my InputView. 
Things seem ok because my custom layout was displayed by the IME as the 
on-screen keyboard. *However, *I find that I cannot click on the views or 
widgets on the custom layout I created. For example, the Button I placed in 
my custom View (the I inflated) cannot be clicked. Do you know the reason 
behind this?

On Thursday, March 22, 2012 11:39:40 AM UTC+9, Zsolt Vasvari wrote:

 You cannot call that.  You need to find another solution.  Perhaps create 
 a custom View that encompasses all your UI.

 On Thursday, March 22, 2012 9:20:15 AM UTC+8, tsukishiro wrote:

 Ah, yes it is true that the UI of the IME a.k.a. the InputView will 
 automatically allow user's touch events to pass through to the Activity 
 behind. However, if the implementation is changed, by this I mean instead 
 of the usual way of using KeyboardView as the InputView, an Activity will 
 be launched in its place, then touch events will no longer pass through to 
 the Activity behind as they are consumed by the translucent Activity that 
 has been shown by the IME. Thus, the need to call 
 dispatchTouchEvent(MotionEvent event) method of the Activity behind the IME.

 On Thursday, March 22, 2012 10:12:07 AM UTC+9, Zsolt Vasvari wrote:

 You sure this doesn't just work like that by default?  Obviously, the UI 
 of a IME allows the user to continue using the main app.  

 On Thursday, March 22, 2012 8:04:01 AM UTC+8, tsukishiro wrote:

 Hmmm... I'm not sure if what I really want is to extend another app. 
 Basically, I have a customized IME that is loosely based on the Android 
 API 
 Demo SoftKeyboard. In this custom IME, I want to launch a translucent 
 Activity that holds a few widgets (like Buttons and TextViews) as my 
 InputView. In other words, instead of using the usual KeyboardView as the 
 InputView, I will be displaying the translucent Activity to serve as my 
 on-screen keyboard. 

 Because only a portion of the translucent Activity actually holds the 
 widgets, I wish to let touch events in any part of the translucent 
 Activity 
 that is not a part of the so-called on-screen keyboard to pass through to 
 the Activity that is behind it. To do this, I will have to invoke 
 dispatchTouchEvent(MotionEvent event) method of the Activity that is 
 behind 
 my translucent Activity. This is the reason why I want to get a reference 
 to the Activity that launches my IME.

 Is there an alternative way to the end-goal I plan to do?
 Thanks for your replies guys!
 - tsukishiro

 On Thursday, March 22, 2012 12:13:15 AM UTC+9, Kristopher Micinski 
 wrote:

 I think this goes in the i want to extend another app category,
 which is asked a lot here..

 kris

 On Wed, Mar 21, 2012 at 11:10 AM, TreKing treking...@gmail.com 
 wrote:
  On Wed, Mar 21, 2012 at 2:15 AM, tsukishiro tsukishir...@gmail.com 
 wrote:
 
  Now I want to get a reference to the new contact activity from 
 which my
  IME was launched. Is this possible?
 
 
  If you explain what you hoped to accomplish with such functionality, 
 perhaps
  someone could offer alternative suggestions.
 
  
 -
  TreKing - Chicago transit tracking app for Android-powered devices
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to 
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en


 On Thursday, March 22, 2012 10:12:07 AM UTC+9, Zsolt Vasvari wrote:

 You sure this doesn't just work like that by default?  Obviously, the UI 
 of a IME allows the user to continue using the main app.  

 On Thursday, March 22, 2012 8:04:01 AM UTC+8, tsukishiro wrote:

 Hmmm... I'm not sure if what I really want is to extend another app. 
 Basically, I have a customized IME that is loosely based on the Android 
 API 
 Demo SoftKeyboard. In this custom IME, I want to launch a translucent 
 Activity that holds a few widgets (like Buttons and TextViews) as my 
 InputView. In other words, instead of using the usual KeyboardView as the 
 InputView, I will be displaying the translucent Activity to serve as my 
 on-screen keyboard. 

 Because only a portion of the translucent Activity actually holds the 
 widgets, I wish to let touch events in any part of the translucent 
 Activity 
 that is not a part of the so-called on-screen keyboard to pass through to 
 the Activity that is behind it. To do this, I will have to invoke 
 dispatchTouchEvent(MotionEvent event) method

[android-developers] How to add Android Widgets (ex. TextView) to KeyboardView

2012-03-15 Thread tsukishiro
Hi all,

I am working on a customized IME that is based on the API Demo 
SoftKeyboard. I already have it working but I was hoping to add a little 
more customization to it. I am thinking of adding Android Widgets such as 
TextView or even Button to my InputView. So I created a new class that 
extends KeyboardView. I used this new class as the root tag of my InputView 
layout xml file. Unfortunately, when I add the Android Widgets into the 
layout xml file and run my code, I either get ClassCastException or the 
widgets don't appear.

I also tried following the suggestion in this 
threadhttp://stackoverflow.com/questions/7865719/edittext-on-inputkeyboard-launch-creating-ime-in-android
 but 
I still get the same problems as mentioned above.
Can someone please help me with this one?

Hoping for your reply.
Thanks and best regards,
- tsukishiro

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Cannot catch swipe action for SoftKeyboard

2012-03-14 Thread tsukishiro yamazaki
Hi,

Thanks again Solution 9420! Your guidance and tips really helped me! I 
already have a working IME that has implemented a basic swiping feature. I 
found this thread in 
stackoverflowhttp://stackoverflow.com/questions/937313/android-basic-gesture-detection,
 
which also really helped me visualize clearer how things should come 
together.

Once again, thanks for the help! Truly appreciated it! :D
Best regards,
- tsukishiro

On Tuesday, March 13, 2012 5:57:15 PM UTC+9, tsukishiro yamazaki wrote:

 Hello everyone,

 I wanted to implement swiping for the custom IME I am developing. Looking 
 into SoftKeyboard sample code, it seems this can be handled by the swipe 
 methods under OnKeyboardActionListener. However when I tried to test if the 
 swipe methods in SoftKeyboard were working, I found myself having a hard 
 time catching the event. For example, swipeLeft() method in SoftKeyboard 
 will perform a backspace. But I never get to pull this off. I usually just 
 get some random letters being printed out to the input field whenever I do 
 swipe left aciton.

 Can someone tell me how to get swipe methods to work?
 Thanks and best regards,
 - tsukishiro


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Button cannot be clicked when used with an IME

2012-03-14 Thread tsukishiro yamazaki
Hello everyone,

My custom IME is slowly coming to life! Thanks to all the people who have 
replied to my posts regarding my IME. I hope I can get the same support for 
this question too. So here it is. Up until now, I have been using 
KeyboardView as the root tag in the layout xml for my InputView. Now, I am 
thinking of replacing it with a general View that contains something like a 
RelativeLayout and several buttons. Inflating the layout and getting it 
displayed as my new InputView for the IME have no problems. But when I try 
to click on any of the buttons in the new InputView, it seems I cannot fire 
any click event at all. 

Does anyone know how to resolved this problem? 
Hoping for your support. Thanks and best regards,
- tsukishiro

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Button cannot be clicked when used with an IME

2012-03-14 Thread tsukishiro yamazaki
Hello everyone,

My custom IME is slowly coming to life! Thanks to all the people who have 
replied to my posts regarding my IME. I hope I can get the same support for 
this question too. So here it is. Up until now, I have been using 
KeyboardView as the root tag in the layout xml for my InputView. Now, I am 
thinking of replacing it with a general View that contains something like a 
RelativeLayout and several buttons. Inflating the layout and getting it 
displayed as my new InputView for the IME have no problems. But when I try 
to click on any of the buttons in the new InputView, it seems I cannot fire 
any click event at all. 

Does anyone know how to resolved this problem? 
Hoping for your support. Thanks and best regards,
- tsukishiro

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: update TextView inside a TimerTask

2012-03-13 Thread tsukishiro yamazaki
You can take the sample here   
http://developer.android.com/guide/topics/ui/dialogs.html#ProgressDialog   
for your reference.
Check the sample code marked by the section  *Example ProgressDialog with 
a second thread*http://developer.android.com/guide/topics/ui/dialogs.html#
 

Thanks and best regards,
- tsukishiro


On Tuesday, March 13, 2012 1:20:18 PM UTC+9, Ali wrote:

 Hi
 i have made a timer and a timer task, and i need to update my textview 
 every seconds
 how can i do that?
 thanks


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to make keyboard layout and input style similar to Google Japanese Input Beta IME

2012-03-13 Thread tsukishiro yamazaki
Bump.

I was thinking that maybe I could use the swipe methods under 
KeyboardView.OnKeyboardActionListener. But they don't seem to work. I 
wanted to check if they are called by placing simple debug logs and swiping 
my fingers up, down, left, and right but the logs never get printed. Does 
anyone know how Google implemented their keyboard keys to allow flicking?

Thanks and best regards,
- tsukishiro

On Tuesday, March 13, 2012 10:36:28 AM UTC+9, tsukishiro yamazaki wrote:

 Hello everyone,

 Have you tried using Google Japanese Input Beta IME on your Android 
 devices? It has a unique keyboard layout and input style that I wanted to 
 adopt to my custom IME. 
 Keyboard Layout :
 Input keys can optionally have 5 labels. 1 in the middle, 1 on top, 1 on 
 the right, 1 on the bottom, and 1 on the left. For easier visualization, 
 refer to the simple drawing of a key below.
 -
 |  u   |  
 | iae  |
 |  o   | 
 -

 Input Style :
 With the given key layout above, when the user taps on the key, the 
 character at the middle will be typed on screen. To type the other 
 characters, the user simply swipes or flicks to that direction. 
 Swiping/Flicking up outputs 'u', swiping/flicking right outputs 'e', 
 swiping/flicking down outputs 'o', and swiping/flicking left outputs 'i'.

 Can someone guide me how to enable or create such a keyboard layout and 
 input style?
 Hoping for your replies. Thanks and best regards,
 - tsukishiro


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Cannot catch swipe action for SoftKeyboard

2012-03-13 Thread tsukishiro yamazaki
Hello everyone,

I wanted to implement swiping for the custom IME I am developing. Looking 
into SoftKeyboard sample code, it seems this can be handled by the swipe 
methods under OnKeyboardActionListener. However when I tried to test if the 
swipe methods in SoftKeyboard were working, I found myself having a hard 
time catching the event. For example, swipeLeft() method in SoftKeyboard 
will perform a backspace. But I never get to pull this off. I usually just 
get some random letters being printed out to the input field whenever I do 
swipe left aciton.

Can someone tell me how to get swipe methods to work?
Thanks and best regards,
- tsukishiro

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Cannot catch swipe action for SoftKeyboard

2012-03-13 Thread tsukishiro yamazaki
Hi Solution 9420,

Thanks so much for your reply! I have been trying SoftKeyboard (Demo API) 
and I wanted to verify if the method swipeLeft(), which has been 
implemented to do backspace or delete function, is actually working. So I 
deployed SoftKeyboard.apk to my device and have been swiping my finger on 
the keyboard. But as I mentioned above, all I get is a bunch of letters 
being printed out because of the swipe: motion over the row of keys.

I will check your application to see how you made swiping and especially 
key-level fling (I really wanted to implement this on my IME too) to work.
Thank you again and best regards,

P.S. Your English is perfectly fine and understandable :)

On Tuesday, March 13, 2012 6:39:40 PM UTC+9, Solution 9420 wrote:

 Hi there, 
 I am the creator of 9420 Tablet Keyboard (and 9420 Thai Keyboard). 
 Pretty much familiar with this matter. 
 For swipe, you can only trap the outcome of the swipe thru the method 
 swipeDown/Left/Up/Right() and it is the swipe at keyboard level. You 
 can change the action of the swipe, for example, from delete to 
 anything else). 
 If you want to trap the MotionEvent, you will need to create your own 
 keyboardView. 
 That way, you can implement anything you want such as  key-level 
 flingUp. 

 I'm poor on English. Please check out my application. 
 It supports 
 - configurable keyboard-level swipe 
 - Key-level fling 
 - MultiTap 
 - LongPress 
 All are done thru custom keyboard view. 
 See www.solution9420.com 

 Cheers, 
 Solution 9420 



 On Mar 13, 3:57 pm, tsukishiro yamazaki tsukishir...@gmail.com 
 wrote: 
  Hello everyone, 
  
  I wanted to implement swiping for the custom IME I am developing. 
 Looking 
  into SoftKeyboard sample code, it seems this can be handled by the swipe 
  methods under OnKeyboardActionListener. However when I tried to test if 
 the 
  swipe methods in SoftKeyboard were working, I found myself having a hard 
  time catching the event. For example, swipeLeft() method in SoftKeyboard 
  will perform a backspace. But I never get to pull this off. I usually 
 just 
  get some random letters being printed out to the input field whenever I 
 do 
  swipe left aciton. 
  
  Can someone tell me how to get swipe methods to work? 
  Thanks and best regards, 
  - tsukishiro

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Cannot catch swipe action for SoftKeyboard

2012-03-13 Thread tsukishiro yamazaki
Hello again Solution 9420,

I just downloaded the 9420 Tablet Keyboard to my device and had a taste of 
your IME. It's nice and swiping clearly works. For example, swipeRight 
changes keyboard type between English and Thai. But I'm afraid I was not 
able to find a way to check Key-level fling. So can you help me with the 
following questions :

1.) How did you enable swiping on the keyboard?
2.) How to enable key-level fling? Example, if I fling a key upwards, a 
different character will be printed.

Hoping for your guidance.
Thanks and best regards,
- tsukishiro

On Wednesday, March 14, 2012 9:34:16 AM UTC+9, tsukishiro yamazaki wrote:

 Hi Solution 9420,

 Thanks so much for your reply! I have been trying SoftKeyboard (Demo API) 
 and I wanted to verify if the method swipeLeft(), which has been 
 implemented to do backspace or delete function, is actually working. So I 
 deployed SoftKeyboard.apk to my device and have been swiping my finger on 
 the keyboard. But as I mentioned above, all I get is a bunch of letters 
 being printed out because of the swipe: motion over the row of keys.

 I will check your application to see how you made swiping and especially 
 key-level fling (I really wanted to implement this on my IME too) to work.
 Thank you again and best regards,

 P.S. Your English is perfectly fine and understandable :)

 On Tuesday, March 13, 2012 6:39:40 PM UTC+9, Solution 9420 wrote:

 Hi there, 
 I am the creator of 9420 Tablet Keyboard (and 9420 Thai Keyboard). 
 Pretty much familiar with this matter. 
 For swipe, you can only trap the outcome of the swipe thru the method 
 swipeDown/Left/Up/Right() and it is the swipe at keyboard level. You 
 can change the action of the swipe, for example, from delete to 
 anything else). 
 If you want to trap the MotionEvent, you will need to create your own 
 keyboardView. 
 That way, you can implement anything you want such as  key-level 
 flingUp. 

 I'm poor on English. Please check out my application. 
 It supports 
 - configurable keyboard-level swipe 
 - Key-level fling 
 - MultiTap 
 - LongPress 
 All are done thru custom keyboard view. 
 See www.solution9420.com 

 Cheers, 
 Solution 9420 



 On Mar 13, 3:57 pm, tsukishiro yamazaki tsukishir...@gmail.com 
 wrote: 
  Hello everyone, 
  
  I wanted to implement swiping for the custom IME I am developing. 
 Looking 
  into SoftKeyboard sample code, it seems this can be handled by the 
 swipe 
  methods under OnKeyboardActionListener. However when I tried to test if 
 the 
  swipe methods in SoftKeyboard were working, I found myself having a 
 hard 
  time catching the event. For example, swipeLeft() method in 
 SoftKeyboard 
  will perform a backspace. But I never get to pull this off. I usually 
 just 
  get some random letters being printed out to the input field whenever I 
 do 
  swipe left aciton. 
  
  Can someone tell me how to get swipe methods to work? 
  Thanks and best regards, 
  - tsukishiro



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Adding swype-like functionality to the LatinIME keyboard

2012-03-12 Thread tsukishiro yamazaki
Hi,

I just want to clarify if you were able to emulate swiping in the android 
emulator? I read from another discussion thread that swiping is not 
supported in the emulator and can only be verified using an actual device.
If you were able to do it using the emulator, can you share how?

Thanks and best regards,
- tsukishiro

On Wednesday, February 16, 2011 5:10:01 AM UTC+9, Karel Vervaeke wrote:

 Hi everyone. 

 I checked out the Android sources and introduced swype-like 
 functionality to the LatinIME keyboard. 
 At the moment, it's still very rough: 
 - you need to download a list of most-frequently used words for your 
 language 
 - you need to compile that list into an index which allows you to 
 quickly look up words based on the swype gestures. 
 - you need to put the compiled list on an sd card 
 - you need to push the modified LatinIME.apk to your device. 

 At the moment I have only worked with an emulator. Performance is 
 getting close to what it needs to be and I'm quite confident that I 
 can improve it to being very usable. 

 Before I clean up the implementation and move forward I would like to 
 get some hints or pointers: 

 (1) packaging 
 I want to prevent having to provide packages for all target devices  
 target Android versions. How do I deal with the native code in the 
 LatinIME package? (Currently I have only run the modified LatinIME on 
 an emulator - I wouldn't even know how to start building it for 
 specific devices) Should I even base my code on LatinIME or are there 
 better input methods? 

 (2) contributing 
 Are there any projects out there which would be interested in 
 incorporating these changes? (This is just a hobby project, I don't 
 have time to maintain it forever). 
 As far as I see it, it would make an interesting contribution to the 
 android proper codebase, but I need to figure out how to deal with 
 various languages  keyboard layouts. 

 (3) how to deal with multiple languages  keyboard layouts 
 Each different language+keyboard layout requires another index file. 
 How would you go about to attract contributions and how would make 
 them available to all users? 

 I'm looking forward to hearing your suggestions. All hints and 
 pointers are very welcome. 

 Karel

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to make keyboard layout and input style similar to Google Japanese Input Beta IME

2012-03-12 Thread tsukishiro yamazaki
Hello everyone,

Have you tried using Google Japanese Input Beta IME on your Android 
devices? It has a unique keyboard layout and input style that I wanted to 
adopt to my custom IME. 
Keyboard Layout :
Input keys can optionally have 5 labels. 1 in the middle, 1 on top, 1 on 
the right, 1 on the bottom, and 1 on the left. For easier visualization, 
refer to the simple drawing of a key below.
-
|  u   |  
| iae  |
|  o   | 
-

Input Style :
With the given key layout above, when the user taps on the key, the 
character at the middle will be typed on screen. To type the other 
characters, the user simply swipes or flicks to that direction. 
Swiping/Flicking up outputs 'u', swiping/flicking right outputs 'e', 
swiping/flicking down outputs 'o', and swiping/flicking left outputs 'i'.

Can someone guide me how to enable or create such a keyboard layout and 
input style?
Hoping for your replies. Thanks and best regards,
- tsukishiro

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: update TextView inside a TimerTask

2012-03-12 Thread tsukishiro yamazaki
If I'm not mistaken, any code inside a TimerTask is running on a different 
thread. This means that it won't have access to the main UI thread. So if 
you put some code in there to update your Textview, you will probably end 
up with an exception or error saying that it cannot access the main ui 
thread. To fix this, you will need to create a message handler (Handler) so 
that you can send messages to your main ui thread telling it to update 
the Textview accordingly.

On Tuesday, March 13, 2012 1:20:18 PM UTC+9, Ali wrote:

 Hi
 i have made a timer and a timer task, and i need to update my textview 
 every seconds
 how can i do that?
 thanks


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] TOUCHABLE_INSETS_FRAME on landscape orientation causes fields to be untouchable

2012-03-08 Thread tsukishiro yamazaki
Hello,

I have been working on my custom IME for the past few weeks now. My goal 
wat to make a soft keyboard that will not pan or resize the UI behind it. 
To do this, I implemented/override the onComputeInsets method for 
InputMethodService. There, I set outInsets.visibleTopInsets to the display 
height and outInsets.touchableInsets to 
InputMethodService.Insets.TOUCHABLE_INSETS_FRAME. This delivers the 
expected result - a soft keyboard that covers the UI behind it without 
panning or resizing the background UI. However, I notice that* other input 
fields* (EditText widgets) are *not touchable *when my soft keyboard is 
displayed. This problem only happens when my emulator is in *landscape 
orientation*. Otherwise, when it is in portrait, everything seems fine. 
Other input fields can be touched.

Does someone know why it behaves this way?
Hoping to hear from someone,
Thanks and best regards,
- tsukishiro

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to prevent window from adjusting when soft keyboard is displayed

2012-02-29 Thread tsukishiro yamazaki
Hello all,

I came upon an IME called Transparent Keyboard.apk
It's an onscreen keyboard that keeps everything behind it in tack.
In other words, it doesn't resize or pan the contents behind to make
room for the keyboard.
Does anyone know how this was done?
I want my own IME to do this as well and I found adjustNothing value
for windowSoftInputMode.
But if I think this is only applicable to activity and not to service.
Can someone help me with this one?

Thanks and best regards,
tsukishiro

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: No TOUCHABLE_INSETS_REGION constant field under InputMethodService.Insets class in SDK

2012-02-29 Thread tsukishiro yamazaki
Sorry if this sounds annoyingly persistent but what is the use of
TOUCHABLE_INSETS_REGION constant in the first place? I thought it's
supposed to limit the touchable regions in the input view of the soft
keyboard. Is this wrong?

On Feb 17, 3:32 pm, Jim Andresakis jimandresa...@gmail.com wrote:
 I think she means that as long as you use the android keyboard without
 totally creating your own from scratch you wont be able to register
 touch events any where other than on the keyboard while its in view.

 On Feb 16, 10:17 pm,tsukishiroyamazaki tsukishir...@gmail.com
 wrote:







  Hi Dianne,

  By not supported do you mean the TOUCHABLE_INSETS_REGION constant
  field?
  If so, why is it mentioned under InputMethodService.Insets?
  (refer 
  tohttp://developer.android.com/reference/android/inputmethodservice/Inp...)

  On Feb 17, 11:15 am, Dianne Hackborn hack...@android.com wrote:

   Sorry, this is not supported.

   On Thu, Feb 16, 2012 at 3:55 PM,tsukishiroyamazaki tsukishir...@gmail.com

wrote:
Can anyone help me with this one? If it's hard to imagine, you can
refer to my rough sketch below.

--
|                |
|                |
||

Let's say the above drawing is the input view for the soft keyboard.
It basically is located at the bottom of the screen filling the entire
width of the screen.

--
|        ||
|        ||
||

Let's say the above drawing is the input view for the soft keyboard
that I am planning to implement.
The portion filled with 'X's is the area where my keys will be placed.
So I want that this area is the only touchable region for the soft
keyboard.
This means that if there are any widgets (ex. button) on the Activity
behind the soft keyboard, that button should be touchable/clickable
provided that it is not covered by the keys in the soft keyboard.

On Feb 14, 1:24 pm,tsukishiroyamazaki tsukishir...@gmail.com
wrote:
 Hi,

 I'm making a custom-shaped softkeyboard. I am using the softkeyboard
 sample from developers.android.com.
 I want that only certain parts in thekeyboardwill betouchableso I
 though of using the constant field
 TOUCHABLE_INSETS_REGION to set the touchableInsets member field.
 However, this does not seem to be
 supported in the SDK. Only the following 3 constant fields are
 available :
 1. TOUCHABLE_INSETS_CONTENT
 2. TOUCHABLE_INSETS_FRAME
 3. TOUCHABLE_INSETS_VISIBLE

 Can someone help me with this problem? Has this constant field been
 removed?
 Thanks and best regards,
 -tsukishiro

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

   --
   Dianne Hackborn
   Android framework engineer
   hack...@android.com

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Disable window or screen resize when soft keyboard is displayed

2012-02-29 Thread tsukishiro yamazaki
Hi,

I am working on a customized IME. Basically, I want to create a
transparent keyboard (similar to Tranparent Keyboard app on the
market). I want my IME to be on top of the UI or application behind
it. So I really don't want the window or screen to resize when the
keyboard is displayed. Does anyone know how to disable window or
screen resizing for IMEs?

Please offer suggestions,
Thanks and best regards,
tsukishiro

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: No TOUCHABLE_INSETS_REGION constant field under InputMethodService.Insets class in SDK

2012-02-16 Thread tsukishiro yamazaki
Can anyone help me with this one? If it's hard to imagine, you can
refer to my rough sketch below.

--
|                |
|                |
||

Let's say the above drawing is the input view for the soft keyboard.
It basically is located at the bottom of the screen filling the entire
width of the screen.

--
|        ||
|        ||
||

Let's say the above drawing is the input view for the soft keyboard
that I am planning to implement.
The portion filled with 'X's is the area where my keys will be placed.
So I want that this area is the only touchable region for the soft
keyboard.
This means that if there are any widgets (ex. button) on the Activity
behind the soft keyboard, that button should be touchable/clickable
provided that it is not covered by the keys in the soft keyboard.

On Feb 14, 1:24 pm, tsukishiro yamazaki tsukishir...@gmail.com
wrote:
 Hi,

 I'm making a custom-shaped softkeyboard. I am using the softkeyboard
 sample from developers.android.com.
 I want that only certain parts in thekeyboardwill betouchableso I
 though of using the constant field
 TOUCHABLE_INSETS_REGION to set the touchableInsets member field.
 However, this does not seem to be
 supported in the SDK. Only the following 3 constant fields are
 available :
 1. TOUCHABLE_INSETS_CONTENT
 2. TOUCHABLE_INSETS_FRAME
 3. TOUCHABLE_INSETS_VISIBLE

 Can someone help me with this problem? Has this constant field been
 removed?
 Thanks and best regards,
 - tsukishiro

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: No TOUCHABLE_INSETS_REGION constant field under InputMethodService.Insets class in SDK

2012-02-16 Thread tsukishiro yamazaki
Hi Dianne,

By not supported do you mean the TOUCHABLE_INSETS_REGION constant
field?
If so, why is it mentioned under InputMethodService.Insets?
(refer to 
http://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets.html)

On Feb 17, 11:15 am, Dianne Hackborn hack...@android.com wrote:
 Sorry, this is not supported.

 On Thu, Feb 16, 2012 at 3:55 PM, tsukishiro yamazaki tsukishir...@gmail.com









  wrote:
  Can anyone help me with this one? If it's hard to imagine, you can
  refer to my rough sketch below.

  --
  |                |
  |                |
  ||

  Let's say the above drawing is the input view for the soft keyboard.
  It basically is located at the bottom of the screen filling the entire
  width of the screen.

  --
  |        ||
  |        ||
  ||

  Let's say the above drawing is the input view for the soft keyboard
  that I am planning to implement.
  The portion filled with 'X's is the area where my keys will be placed.
  So I want that this area is the only touchable region for the soft
  keyboard.
  This means that if there are any widgets (ex. button) on the Activity
  behind the soft keyboard, that button should be touchable/clickable
  provided that it is not covered by the keys in the soft keyboard.

  On Feb 14, 1:24 pm, tsukishiro yamazaki tsukishir...@gmail.com
  wrote:
   Hi,

   I'm making a custom-shaped softkeyboard. I am using the softkeyboard
   sample from developers.android.com.
   I want that only certain parts in thekeyboardwill betouchableso I
   though of using the constant field
   TOUCHABLE_INSETS_REGION to set the touchableInsets member field.
   However, this does not seem to be
   supported in the SDK. Only the following 3 constant fields are
   available :
   1. TOUCHABLE_INSETS_CONTENT
   2. TOUCHABLE_INSETS_FRAME
   3. TOUCHABLE_INSETS_VISIBLE

   Can someone help me with this problem? Has this constant field been
   removed?
   Thanks and best regards,
   - tsukishiro

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] No TOUCHABLE_INSETS_REGION constant field under InputMethodService.Insets class in SDK

2012-02-13 Thread tsukishiro yamazaki
Hi,

I'm making a custom-shaped soft keyboard. I am using the soft keyboard
sample from developers.android.com.
I want that only certain parts in the keyboard will be touchable so I
though of using the constant field
TOUCHABLE_INSETS_REGION to set the touchableInsets member field.
However, this does not seem to be
supported in the SDK. Only the following 3 constant fields are
available :
1. TOUCHABLE_INSETS_CONTENT
2. TOUCHABLE_INSETS_FRAME
3. TOUCHABLE_INSETS_VISIBLE

Can someone help me with this problem? Has this constant field been
removed?
Thanks and best regards,
- tsukishiro

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Always overlayed soft keyboard

2012-01-23 Thread tsukishiro yamazaki
Hello,

I am making my own soft keyboard based on the SoftKeyboard sample from
developers.android.com
I wanted to make mine always overlayed on the activity behind/below
it.
By this, I mean that the keyboard won't push the contents of the
Activity out of the screen.
There's an application in the market called Transparent Keyboard that
has done this.
Can someone please give me tips on how to do this?

Thanks and best regards

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en