Re: [android-developers] Re: setOnTouchListener

2010-12-01 Thread TreKing
On Wed, Dec 1, 2010 at 12:21 AM, dmodroid dmodr...@gmail.com wrote:

 So from my map activity, I want to say myOverlay.addEventListener(onTouch,
 myCallback).


Then define your own callback class, add a function to your custom overlay
addTouchListener(MyCallBack myCallback) where you set the callback for the
overlay (from your mapactivity), then in the custom overlay when the touch
event actually happens, forward the call on to your custom callback.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: setOnTouchListener

2010-11-30 Thread dmodroid
My question may not be clear.  In Flash, I can create an object, then
say myObject.addEventListener (some_event, mycallback).

So from my map activity, I want to say
myOverlay.addEventListener(onTouch, myCallback).

Or again, can I just capture the onTouch in the map activity, and get
the latitude, longitude that way?

thanks



On Nov 23, 3:04 pm, TreKing treking...@gmail.com wrote:
 On Fri, Nov 19, 2010 at 10:48 PM, dmodroid dmodr...@gmail.com wrote:
  I feel like there should be a myItemizedOverly.setOnTouchListener (blah,
  myCallback);   in myMapActivity.

 What's stopping you from adding this to your custom overlay?

 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en