Friday, July 23, 2010

[android-developers] Calling methods of an activity from another

Hi! I have one activity (Activity1) which loads a C++ library through
JNI. This C++ class calls some methods I implemented in my Activity1,
in response to some events.

In certain cases I start another activity (Activity2), but would it be
possible, from Activity1, to call some methods of Activity2? I need
this as when an event of my C++ library arises, a method of Activity1
is called, and I need then to call a method of Activity2.

Any idea if this is possible and how to do it?
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate