Soundboard Questions

All your problems with Audio, Video and Images.

Soundboard Questions

Postby Reg » Fri Dec 23, 2011 6:42 am

hey guys,

I have 2 questions.

Right now I have a soundboard app that plays 5 - 10 sounds. I'm just streaming it with a URI.

This is an example:

Code: Select all
Button a = (Button) findViewById(R.id.dominatingButton);
        a.setOnClickListener(new OnClickListener()
        {

         @Override
         public void onClick(View arg0) {
            
            MediaPlayer mp = MediaPlayer.create(AnnouncerMain.this, Uri.parse("website"));
            mp.start();
            mp.setOnCompletionListener(new OnCompletionListener() {
               
               
               public void onCompletion(MediaPlayer mp) {
                  mp.release();
                  
               }
            });
               
            
            }
         });


This method works great, but I dont believe this method is stable enough. I'm wondering if anyone could help me out by finding a safer and more stable method.

My next question:
I'm trying to figure out how to create a context menu that will allow the users to save the sounds as a ringtone and notifications. I've only found one tutorial on the internet

Here

I've been working on it for an hour and cant seem to get it to work. Any help would be amazing!

Thanks,
Reg
Reg
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Dec 23, 2011 6:35 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Google [Bot] and 9 guests