Rodrigo Chiossi wrote:
> First, the user press a button on the main Activity. When the
> LongClick triggers, I start the second Activity wich also has a button
> which should be pressed when the activity starts and should only be
> released when the user takes his finger off the screen.

Why are you using multiple activities? UI events are not designed to
span multiple activities.

> In order to triggers the onTouch of the button in the second activity,
> i create a copy of the MotionEvent in the first activity and send it
> as an Intent Extra to the second activity which call it's own onTouch
> passing this MotionEvent as parameter.

Ick.

> Oh, and btw, I call it a 'child' activity since it has a "getParent()"
> method which returns the main activity...

Then you are not starting the "child activity" via startActivity().

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.0 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to