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. Native heap size

Hi at all,

I am a little bit confused about the native heap on android, I would
like know the native heap max size, there is a way to know it?

Like getRuntime().maxMemory()  which I use for know the maximum limit
of VM heap.

Another question is relative at how the native heap memory is
released, I read that IS NOT the GC of Dalvik which free that memory,
is correct? If yes, when the memory of native heap is released?


Thanks a lot in advance for any suggestion.

pedr0


-- 

2. filesystem access on emulator

Dear All,
                Does anyone in this comunitys,know now to access the linux 
filesytem local to the emulator? Ironically, i am using the windows version 
of the Android SDK API 9.
I need to locate the .apk file that one loads onto the emulator to run/debug 
the project binary.

Thanks and Regards,
Ajay

-- 

3. convert web page to pdf

4. Qualcomm 7630 fastboot issue

5. Android Binding Project

6. RPC service with notification

7. resource not found when building application for passion