ItemizedOverlay Adding Items and onTap Issue

by aspekt9 » Fri, 05 Feb 2010 12:34:16 GMT


Sponsored Links
 When I add a new item to my ItemizedOverlay the onTap display I have
set appears X times, where X is equal to the number of items that I
added. So for example, if I add one item and tap it, it the onTap
method gets called once, and in the LogCat I get:

02-04 23:28:56.188: INFO/NotificationService(52): enqueueToast
pkg=android.mapit callback=android.app.ITransientNotification$Stub
$pr...@4394c100 duration=0

If I add a second item and click ANY of the other items, the onTap
method gets called twice and I get the following in LogCat:

02-04 23:29:29.408: INFO/NotificationService(52): enqueueToast
pkg=android.mapit callback=android.app.ITransientNotification$Stub
$pr...@438b4048 duration=0
02-04 23:29:29.418: INFO/NotificationService(52): enqueueToast
pkg=android.mapit callback=android.app.ITransientNotification$Stub
$pr...@43950d20 duration=0

If I add a third item and click ANY of the other items, the onTap
method gets called three times and I get the following in LogCat:


02-04 23:30:32.007: INFO/NotificationService(52): enqueueToast
pkg=android.mapit callback=android.app.ITransientNotification$Stub
$pr...@4394fcf8 duration=0
02-04 23:30:32.017: INFO/NotificationService(52): enqueueToast
pkg=android.mapit callback=android.app.ITransientNotification$Stub
$pr...@43950408 duration=0
02-04 23:30:32.028: INFO/NotificationService(52): enqueueToast
pkg=android.mapit callback=android.app.ITransientNotification$Stub
$pr...@438babe0 duration=0


Any idea why this would occur? I'm running into issues with it
affecting other things like removal of items.

--



ItemizedOverlay Adding Items and onTap Issue

by TreKing » Fri, 05 Feb 2010 14:47:02 GMT


 



Because this is the way it works. You get onTap for each item in the
overlay. If you return true from this function, the tap event continues to
propagate to other items in the overlay and eventually to any other overlays
in general. If you return false the function will stop being called.

What do you mean it's effecting removal of items? If you explain what you're
trying to do I or someone else could help you work through it.

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

--


Sponsored Links


Other Threads

1. Permission READ_LOGS

I've seen that there is a permission READ_LOGS:
http://code.google.com/android/reference/android/Manifest.permission.html#READ_LOGS

Does this mean there is a possibility for applications to read the
content of the Log.d(), Log.w(),... output?

Peli

--~--~---------~--~----~------------~-------~--~----~

2. Android & IPC

Well seems the error is related to the system call not existing.
Might be one of the things they stripped out of the kernel, but you
say you see it.  I'm thinking that allocating shared memory might be
different on a device of that, at least that's something I would
modify if I was google and writing android kernel.

That's all for now, I'll try and checkout the kernel and take a look
for you here sometime soon and get back to you...
with a confirmed answer.



--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [EMAIL PROTECTED]
website: 

3. shopsavvy violates shop guideline

4. Cross platform app payments system

5. Go from one Screen to another screen

6. Files : Absolute and relative path

7. Text version of repo diff