android - onLocationChanged call the onDraw method in my custom view -



android - onLocationChanged call the onDraw method in my custom view -

i have mapimageviewer activity class has methods checking phones gps location. activity calls custom view of mine called mapcanvas - constructor takes latitude , longitude , draws circle corresponding pixels on image of map.

this works ok, wondering how can update , phone call ondraw method every time gps coordinates change? know needs go in onlocationchanged method..but i'm not sure how can pass new latitude , longitude values there custom view class.

what sending lat/lon onlocationchanged() method using .sendbroadcast() , handle them within view class broadcastreceiver?

alternatively utilize callback method locationlistener shown in this post.

android view android-canvas draw

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -