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 
>> one<http://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:
>>>>
>>>> Noooooooooo..... >.< 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to