how to transfer an action(ex:key press) from an Activity to other Activities

by npak...@gmail.com » Thu, 12 Mar 2009 19:31:56 GMT


Sponsored Links
 Hi all,
When my application is running, a button is pressed.After my
application processes this event, i want to continue to transfer this
event to other applications. Is it possible? If yes, how to do that?
I very appreciate your advices,
Thanks,
NPAK


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



how to transfer an action(ex:key press) from an Activity to other Activities

by Streets Of Boston » Fri, 13 Mar 2009 03:12:52 GMT


 First you should figure out what you really try to accomplish. I don't
know the details of your app, but i guess that your goal is not to
push a button. The goal is the action that occurs when the button is
pushed.

I would just call the action (method/java-code/etc) directly that
would have been called by the button-click of the other activity.



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


Sponsored Links


how to transfer an action(ex:key press) from an Activity to other Activities

by Streets Of Boston » Fri, 13 Mar 2009 10:55:54 GMT


 You could figure how to start the original dialer's activity
(startActivity(Intent)) providing the correct Intent... I'm not sure
how to do that, which action/category/extra-data/etc. to set to make
this happen. Maybe someone else can help you with that.





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



Other Threads

1. RuntimeException -

Hi All,

Everything was going great, then all of a sudden this morning, I am getting  
this --

ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord) line:  
2194
ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord) line:  
2284
ActivityThread.access$1800(ActivityThread, ActivityThread$ActivityRecord)  
line: 112
ActivityThread$H.handleMessage(Message) line: 1692
ActivityThread$H(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 123
ActivityThread.main(String[]) line: 3948
Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean)  
line: not available [native method]
Method.invoke(Object, Object...) line: 521
ZygoteInit$MethodAndArgsCaller.run() line: 782
ZygoteInit.main(String[]) line: 540
NativeStart.main(String[]) line: not available [native method]

I have not changed anything, and yesterday everything was working fine. I  
set a breakpoint at the first line in my "main" and it never hits it.

Any ideas?

-phil

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

2. Any updates on ADC-2?

The full terms and conditions were to be published and its almost mid-
july now. I know it says timelines are subject to change but with
around 20 days remaining when they start accepting entries, maybe the
contest organizers should update the timeline so that we have an
approximate idea, how much time remaining do we really have.


p.s. asking here because adc-2 doesnt seem to have an official mailing
list till now


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

3. ADC 2 - Can I post my app to the app store after August 1st?

4. sdk for windows from source code

5. Is there a simple way to...

6. Automatic Import causes crash ?

7. Do they need to change the security keys for the OEM