On Oct 5, 2011, at 4:53 AM, Tomasz Cielecki wrote:
> I want it to react to such an event and get the location
> data somehow and update the overlays with the new data.

There are two bits involved here:

 1. Getting the Java code to run when the event occurs.
 2. Getting new data to the Java code.

For (1) you could add a method to your Java code and then use 
Android.Runtime.JNIEnv to invoke the method from C#.

For (2) I would suggest that you implement a ContentProvider within C#, and 
then your Java code can query the ContentProvider for the necessary data to 
display.

> Will the MapActivity know the TabActivity, how do I cast that?

I _think_ Activity.getParent() will do that. However, you won't be able to cast 
it to anything useful; you could cast it to the Android Callable Wrapper for 
your TabActivity subclass, but that won't have any additional methods on it.

 - Jon

_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to