onsingletapup not called

by Keith Wiley » Sat, 11 Apr 2009 04:45:16 GMT


Sponsored Links
 My TextView subclass implements OnGestureListener and I successfully
detect onDown events, but both taps and long presses cause onLongPress
to be called and never onSingleTapUp.

I realize I'm not provided much detail, but I'm not sure what nuances
might be relevant.  Please ask for any relevant elaboration.

Any thoughts?

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



Other Threads

1. AccountManager sync policy

In Android 2.0, AccountManager was introduced.  It is a powerful API
and I am still learning its capabilities.  I know that I can add an
account and sync down contacts to the contacts database.  Does the
SDKs support sync up contact changes made on the phone?

When a piece of data (e.g. a contact entry) can be changed in multiple
devices, it becomes a very difficult problem to resolve conflicting
edits.  I am trying to understand more about the sync policies and
rules (if any) that may be built into the platform SDK.  Can someone
point me in the right direction?  Thanks!

-- 

2. Finally Hit a Wall

This is my first post, as I am new to Android development.  I have
many years with C++/C#/Windows, et al.

I started developing an Android project last week and, considering it
was my first time using Eclipse, Java and Android I am very happy with
the progress and loving all the new tools.  But I finally hit a wall.

*** environment ***
- OS: Windows XP
- Eclipse: Eclipse IDE for Java Developers, Build id: 20090920-1017,
1.2.1.20090918-0703
- Android Toolkit 0.9.5.v200911191123-20404
- Devices are Emulator and Droid

*** app description ***
Basic game that used the Android Lunar Lander example as a starting
point.

*** Problem ***

I noticed odd app behavior so I ran under the de{*filter*} and was
surprised with what I saw.  The following method returns false.

                        boolean headingNorth()
                        {
                                int i = 1;

                                if (1 == i)
                                        return true;
                                else
                                        return false;
                        }

I've tried all sorts of variations of the method and nothing changes
the outcome (or if it does, the Good Times only last till the method
exits and the caller then has problems).  The method exists in a
thread that was created exclusively for graphics/UI (just like Lunar
Lander) and synchronizes access points (like Lander).

At this point, my question is very general: What could possibly be
causing this and how do I go about fixing?

(included log dump below.  Is the "Failed to ersist new stats" of
interest?)

Thanks,

Tom

*** Log ***

I02-01 15:14:02.864: INFO/System.out(10130): Sending WAIT chunk
02-01 15:14:02.872: INFO/dalvikvm(10130): De{*filter*} is active
02-01 15:14:03.060: INFO/System.out(10130): De{*filter*} has connected
02-01 15:14:03.067: INFO/System.out(10130): waiting for de{*filter*} to
settle...
02-01 15:14:03.263: INFO/System.out(10130): waiting for de{*filter*} to
settle...
02-01 15:14:03.466: INFO/System.out(10130): waiting for de{*filter*} to
settle...
02-01 15:14:03.669: INFO/System.out(10130): waiting for de{*filter*} to
settle...
02-01 15:14:03.872: INFO/System.out(10130): waiting for de{*filter*} to
settle...
02-01 15:14:04.067: INFO/System.out(10130): waiting for de{*filter*} to
settle...
02-01 15:14:04.275: INFO/System.out(10130): waiting for de{*filter*} to
settle...
02-01 15:14:04.476: INFO/System.out(10130): waiting for de{*filter*} to
settle...
02-01 15:14:04.677: INFO/System.out(10130): waiting for de{*filter*} to
settle...
02-01 15:14:04.879: INFO/System.out(10130): waiting for de{*filter*} to
settle...
02-01 15:14:05.079: INFO/System.out(10130): de{*filter*} has settled
(1405)
02-01 15:14:05.833: WARN/MediaPlayer(10130): info/warning (1, 44)
02-01 15:14:05.888: WARN/MediaPlayer(10130): info/warning (1, 44)
02-01 15:14:05.958: WARN/MediaPlayer(10130): info/warning (1, 44)
02-01 15:14:05.989: INFO/MediaPlayer(10130): Info (1,44)
02-01 15:14:05.989: INFO/MediaPlayer(10130): Info (1,44)
02-01 15:14:05.997: INFO/MediaPlayer(10130): Info (1,44)
02-01 15:14:06.161: DEBUG/dalvikvm(10130): GC freed 701 objects /
54016 bytes in 52ms
02-01 15:14:06.458: DEBUG/dalvikvm(10130): GC freed 53 objects / 1944
bytes in 60ms
02-01 15:14:07.232: DEBUG/dalvikvm(10130): GC freed 132 objects / 6088
bytes in 45ms
02-01 15:14:07.396: DEBUG/dalvikvm(10130): GC freed 140 objects / 5456
bytes in 46ms
02-01 15:14:07.724: INFO/ActivityManager(1022): Displayed activity
MyCo.MyGame1/.MyGame: 5047 ms (total 5047 ms)
02-01 15:14:07.724: WARN/UsageStats(1022): Failed to persist new stats
02-01 15:14:14.239: DEBUG/dalvikvm(2533): GC freed 921 objects / 57144
bytes in 1460ms

-- 

3. installing application silently in android

4. Wifi capability question

5. XY picker in emulator?

6. Market flood prevention

7. variable parameter function problem