On Sun, Apr 12, 2009 at 6:28 PM, Todd Sjolander <[email protected]> wrote: > > Marco, your hunch was right. I was somehow creating multiple copies > of Activity C. In case anyone can benefit from this, let me explain > how it went wrong. > > I implemented onTouch() in Activity B, which would create an Intent > for Activity C, and then call startActivity(). For some reason, > onTouch() would get called multiple times with each touch, launching a > new Activity C each time.
Ah indeed. Remember that touch on the emulator, via the mouse, is a very precise operation -- you click one pixel, once. On a real device your finger generates lots of input events due to the imprecision of the point being touched, pressure, etc. If you real on a precise touch, you might want to implement a threshold in your touch listener to filter out noise. R/ > > Jon, I've seen some oddities from that myself, although I can't really > make sense of it. But it's helpful to keep that in mind. > > Thanks! > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

