Hello,

I'm a newbie with Android Studio.

I've created a very basic app with various TextViews and ImageViews. I want 
to take the next step and have my app play a sound when it opens.

I've googled around and found a lot of info about playing a sound when a 
button is clicked, but I didn't want to start getting into buttons yet. I 
just want it to play my mp3 when it first opens.

I figured out how to create the raw folder and paste my mp3 file into it.

Is there a way to play a sound when my app first opens?

Note that this is my first attempt at doing anything with 
MainActivity.java, so if you have a code example, please let me know where 
it goes.

thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/2f6d3649-ca7e-4e0d-8f3f-6c7853b690e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to