4
I’m like a doubt on how to control the volume of the app’s media.
I’m using this method:
Button button1;
MediaPlyer mp;
button1 = (Button)findViewById(R.id.button1);
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mp = MediaPlayer.create(Teste.this, R.raw.som);
mp.start();
}
});
I wanted to decrease or increase the volume on the device, change the app and not mobile.
blz, but I wanted to control the volume of the application on the physical device, because when you press to increase the volume it increases the device and not the app, to be able to increase the volume of the application and only when it is active (when you call the sound ), but it does not give a lot of time, because they are very short sounds.
– Vale