[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

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

2012-03-21 Thread TreKing
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

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

2012-03-21 Thread Kristopher Micinski
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

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.

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

2012-03-21 Thread Zsolt Vasvari
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

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

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

2012-03-21 Thread Zsolt Vasvari
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

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