[android-beginners] Clicks and Gestures on MapView...

2009-06-05 Thread ian.fawcett.hun...@googlemail.com
Hi Folks, I have a need to effect the following:- 1) Single tap on overlay item centres the item on the MapView at current zoom. 2) Double tap on item centres the item on the MapView at high resolution zoom. 3) Double tap, anywhere on the map, other than an item, centres home location on map at

[android-beginners] Re: Clicks and Gestures on MapView...

2009-06-08 Thread ian.fawcett.hun...@googlemail.com
 This let the know that I had picked the overlay item and > to ignore the rest of the processing and cleared the flag on the way out. > Actually it was a little more complicated than that but it was low tech and > works for me. > > On Fri, Jun 5, 2009 at 3:21 AM, ian.fawcett.

[android-beginners] Re: How to persist my canvas between calls to invalidate()

2009-06-08 Thread ian.fawcett.hun...@googlemail.com
[I have not looked at the specific drawing capabilities of Android, so I am talking in general terms here] Presumably, you want to update the canvas having added a new point. To avoid invalidating (and clearing) the whole Canvas, I think most graphic systems allow you to invalidate a smaller rect

[android-beginners] Re: Timer

2009-06-08 Thread ian.fawcett.hun...@googlemail.com
java.util.Timer see http://developer.android.com/reference/java/util/Timer.html Use cancel() from the event that cancels the timer. Ian Hunter On Jun 8, 7:40 pm, "Kevin J. Brooks" wrote: > Hey Everyone, > > I need a method that will notify me every 60 seconds until I cancel it. > Anyone have a

[android-beginners] Re: Syntax error on token ...... (newb)

2009-06-10 Thread ian.fawcett.hun...@googlemail.com
You cant have Java variables starting with numbers, must be letters (or underscore). So you're drawable '@drawable/ 2316840057_7d197ddd0f_m' mis-translates. Call it '@drawable/ abc_2316840057_7d197ddd0f_m' and I think you'd be OK (of course the filename in res/drawable has to change too) Ian Hunt

[android-beginners] Re: Click on MapView return Dialog/Alert Long/Latitude

2009-06-10 Thread ian.fawcett.hun...@googlemail.com
Implement you own MapView which overides onTouchEvent(). HTH Ian Hunter On Jun 8, 9:35 pm, Georgy wrote: > Hello, > > this should be simple but somehow I can't get it to work!! > > I have a simple map application, how can I get a dialog when the user > clicks on the map to whenever the user c