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. Nokia E 90 black

Hai all ada yg jual nokia E90 black yg baru gak? Yg BM jg gpp asalkan
bagus,thanks yoo

-- 
"Indonesian Android Community [id-android]" 

2. Building a copy of a native Android system app

I need to  create a slightly modified version of one of the native
Android apps (to be precise: of packages/apps/Mms).

For the sake of this discussion, please ignore the fact that this is a
bad thing to do; that it will be version-dependent and fragile; etc.
I'm aware of these issues and need to ignore them for the now.

I simply want to build a copy of the app that I can install on a
device.

My first attempt was to copy the code into my standard Eclipse
environment. This might work eventually, but I hit a huge spiral of
dependencies... each time I copied code, it would bring in
dependencies which forced me to copy more system code bringing in more
dependencies.

Second attempt was to build within the OS source framework (lunch,
mmm, etc).  I copied the Mms tree and made the obvious changes to
package name, etc., to create a duplicate of the app.

This installed and mostly runs!

But, I am getting crashes in a couple of cases; looks like static
lookup is failing on some system methods.

The one I've seen so far is probably a red herring... for silly
temporary reasons, I built from the 1.5 sources and tested on a 1.6
device. I'll be testing on the correct device in a day or two.

But, before I dive too deeply down this rat-hole of ugly kludging....
1) Will this really work? Or will I just hit another known trap soon?
2) Is this the best/only way to rebuild a system app?

Thanks,
David

-- 

3. Paging om Masdrie.co

4. Latest Android Kernel Source for OMAP3Evm

5. using charts in android applications

6. OOT Thanks

7. Downloadable apks