On Fri, Jul 23, 2010 at 1:12 PM, Luca Carlon <[email protected]> wrote: > 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?
That is not recommended. > 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. It sounds like your JNI ought to be in a service, rather than either activity. You do not even know if Activity1 will be in memory while Activity2 is in the foreground. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- 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

