tags:

views:

47

answers:

1

I am new in android and using eclipse.

How can I Randomly view an image (images are saved in res/drawable) and the sound that belong that image (sounds are saved in res/raw). Thank you.

A: 

The application should start by showing a random image and playing corresponding sound at the same time. Images and sounds have the same name. There is no problem with accessing media files. I can access one sound by (R.raw.name) in java-file, and one image from main.xml. The names are also in res/value/string.xml as items. Thank you Janne

Janne