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. Changes required to handle dual orientations

Something's got to be different.

Open R.java and scan for your view id there, check to see if maybe you have a close sounding ID, or there is a capitalization difference. -- Kostya 26.07.2010 21:05, Bret Foreman :
I mistyped. The file path is actually res/layout-land. The exception is happening when I call findViewById for one particular button. I stared at the two xml files as carefully as I could and the ID of that button is identical in both files. Other buttons are not causing any trouble. To add to the frustration, the logcat does not show the exception, though the system does a Force-Close at the exact point of calling findViewById for that button in the de{*filter*}.
-- Kostya Vasilev -- WiFi Manager + pretty widget -- http://www.***.com/ --

2. Cannot open "/system/etc/wifi/wpa_supplicant.conf": No such file or directory

When I try to enable the wifi it is throwing

Cannot open "/system/etc/wifi/wpa_supplicant.conf": No such file or
directory

below is the logs for the same.

D/WifiVdr ( 1023): leave from insmod
D/WifiVdr ( 1023): leave from wlan_load_driver
D/WifiHW  ( 1023): call wlan_load_driver, return ok
E/WifiHW  ( 1023): Cannot open "/system/etc/wifi/wpa_supplicant.conf":
No such file or directory
E/WifiHW  ( 1023): Wi-Fi will not be enabled
D/WifiVdr ( 1023): enter into wlan_unload_driver
D/WifiVdr ( 1023): enter into check_driver_loaded
D/WifiVdr ( 1023): enter into rmmod

Please let me know what is the problem?

Thanks
Guru

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Drivers to Sony Ericsson phones (X10, X10 mini/pro, X8)

4. is android 2.2 UI slower than android 1.6?

5. Lupa Setting awal Market Enable

6. location.getTime() returns strange result

7. Aktifin Flexi Unlimted di Samsung Moment