You need to have a reference to the other activity, from which you
would call your second (or third) activity's method to update the
coordinates
For example, your second activity could have a static method to return
the component/widget or entire activity.
SecondActivity.java
----------------------
public static Canvas getCoordinateCanvas() {
return this.myCanvas;
}
FirstActivity.java
--------------------------
private void someMethod() {
Canvas canvasToUpdate = SecondActivity.getCoordinateCanvas();
canvasToUpdate.<your update code>
}
On Jul 28, 5:49 pm, Victor Basurto <[email protected]> wrote:
> Hi, I'm new in android, i have a problem, i have 3 activities, in the
> first one i have a map where i want to draw a point with a coordinates
> that obtain in the second activity and third one i have a picture, but
> i want to use and refresh this coordinates and navigate between
> activities one and third, how can i refresh this coordinates obtained
> in the second activity without go to this.
>
> Thanks excuses for my english
--
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