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. android:mimeType="text/XXX" cannot work on eclair

hi
i have an activity whose intent-filter is android:mimeType="text/XXX"

so i select it on web pages , my activity will be launched
and before eclair it works well

but on eclair it fails

after checking

i found in
external/webkit/WebKit/android/WebCoreSupport/
FrameLoaderClientAndroid.cpp

in function
FrameLoaderClientAndroid::canShowMimeType

it adds DOMImplementation::isTextMIMEType(mimeType) on eclair branch

so the webcore thinks it some kind of DOM so the mimeType cannot be
passed on

so i would like to ask why this check is added on eclair branch

thanks

-- 

2. Classification of Applications

The current classification or grouping of applications does not
consider the applications that are created by collaboration with
experts in the field in which the application supports.
The current market image of smart apps is they are free or cheap and
are not designed to improve ones life or health. One goes to the smart
app for the same reason one buys items from a flea market, or yard
sale.
You expect to get value for a cheap price at yard sales and flea
markets. The same mentality is evident on the Android market.
We need to create a classification of apps for those deemed created by
expert subject matter experts collaborating with expert technical
people to create an app that is useful in improving ones life and well
being.
Change the market image for the smart app platform so these apps, that
are expensive to create, can participate above the noise of all the
free, almost free, or cheap apps.

--

3. Invoking apps in background when phone starts

4. app bound to its own virtual keyboard

5. problem with the fix Button at of the list View

6. localization

7. Stop Scroll In a WebView