Dispatch event from children to parent

by arnouf » Sat, 11 Apr 2009 03:28:39 GMT


Sponsored Links
 Hi all,

I tried some stuffs, but i didn't find yet the solution, so
question...

I've a Layout containing some ImageView.

I manage the TouchEvent on the layout, with a setOnTouchListener, to
launch animation when user slide on screen. If I do a slide on an
Image, nothing happens. So I would like that the animation is launched
when user slide on an image.

I tried to use the dispatch event from my ImageView, but my app crash
always...I get a NullPointer but I don't finf where...the logs are not
really explicit...see below
Do you have a solution or a good strategy?

Thanks for your help

04-10 19:18:38.884: ERROR/AndroidRuntime(12224):
java.lang.NullPointerException
04-10 19:18:38.884: ERROR/AndroidRuntime(12224):     at
android.view.ViewRoot.handleMessage(ViewRoot.java:1198)
04-10 19:18:38.884: ERROR/AndroidRuntime(12224):     at
android.os.Handler.dispatchMessage(Handler.java:88)
04-10 19:18:38.884: ERROR/AndroidRuntime(12224):     at
android.os.Looper.loop(Looper.java:123)
04-10 19:18:38.884: ERROR/AndroidRuntime(12224):     at
android.app.ActivityThread.main(ActivityThread.java:3739)
04-10 19:18:38.884: ERROR/AndroidRuntime(12224):     at
java.lang.reflect.Method.invokeNative(Native Method)
04-10 19:18:38.884: ERROR/AndroidRuntime(12224):     at
java.lang.reflect.Method.invoke(Method.java:515)
04-10 19:18:38.884: ERROR/AndroidRuntime(12224):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:739)
04-10 19:18:38.884: ERROR/AndroidRuntime(12224):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
04-10 19:18:38.884: ERROR/AndroidRuntime(12224):     at
dalvik.system.NativeStart.main(Native Method)
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Forcing Linux to Parse For Devices to Eliminate the Necessity for Porting

Would it be possible to alter the android kernel, so that the linux
part of it parses for devices and then assigns those device profiles
to their necessary jobs in the operating system through intent, and
then connects the davlik virtual machine and Java to those devices?
Moreover, can the search for certain devices eliminate the necessity
for 1)Future porting, and 2) strict device specifications.
--~--~---------~--~----~------------~-------~--~----~

2. add third-party package error

In my eclipse projects to add a third-party jar package, but it can
not be compiler and product .apk documents after added. Will we have a
solution? Thanks!
--~--~---------~--~----~------------~-------~--~----~

3. Announcing DroidDraw User Interface (GUI) Designer for Android

4. Take me off of your distributions list!

5. Text to speech

6. using kml file

7. JAD - Java Application Descriptor like