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

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):
04-10 19:18:38.884: ERROR/AndroidRuntime(12224):     at
04-10 19:18:38.884: ERROR/AndroidRuntime(12224):     at
04-10 19:18:38.884: ERROR/AndroidRuntime(12224):     at
04-10 19:18:38.884: ERROR/AndroidRuntime(12224):     at
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
04-10 19:18:38.884: ERROR/AndroidRuntime(12224):     at
04-10 19:18:38.884: ERROR/AndroidRuntime(12224):     at
04-10 19:18:38.884: ERROR/AndroidRuntime(12224):     at
dalvik.system.NativeStart.main(Native Method)

Other Threads

1. Converting Android audio recordings to mp3

Hi there,

Would be very grateful for any help with this issue I have blogged
about: http://linklens.blogspot.com/2009/07/android-audio-formats.html

So Android support recording of audio in the 3GPP/AMR format, however
it seems that there is no built in support for conversion to mp3 which
is what I need to be able to upload audio to a web service I am
working with.

Apparently we can extract the AMR core from a 3GPP file but it seems I
need some audio conversion library ...

One way round this might be to upload the file to another service that
could do the conversion. There are various online conversion services,
but I can't seem to find one that will do 3gpp to mp3.

I had also thought that there might be something in the android
marketplace (and then I could outsource the conversion but still run
it on the device), and there is one app, but it has a lot of reviews
suggesting it does not work and may even be a virus.

There appear to be some people who have succeeded in porting ffmpeg to


However, so far I have failed to even get ffmpeg to work from the
command line with files extracting from the android simulator:


ffmpeg is open source, but I am not sure how to deploy code other than
java to android.

So I guess I am going to give up on uploading audio from android and
see if I can get images uploaded, and come back to this after I have
some more input ..

Many thanks in advance

2. How to obtain resources with a given locale?

I have different text packaged into my app for different locale.
The Resource.getString(int resid) method automatically returns me the
string for the CURRENT locale of the phone.
Is there a way I can specifically obtain resources while passing in a
For example, there isn't such method as:
Resource.getString(int resId, Locale myLocale);


3. Maximum length of SharedPreferences

4. How can i access the home screen to show gif anim there..?

5. could i get email recieve notification from intents?

6. android port for linux-2.6.28-rc9-omap1

7. " Creating a file in AFS with NativeBinary and Android App"