CopyPastor

Detecting plagiarism made easy.

Score: 0.8163608092118085; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2015-11-09
by Krunal Patel

Original Post

Original - Posted on 2013-04-26
by No\_Rulz



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Using AudioManager you can control the volume of media player. AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, 20, 0); also from MediaPlayer (But I didn't try that) public void setVolume (float leftVolume, float rightVolume) Parameters leftVolume left volume scalar rightVolume right volume scalar
Using AudioManager you can control the volume of media player.
AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, 20, 0);
also from MediaPlayer
public void setVolume (float leftVolume, float rightVolume)
for example you can use this method as,
int maxVolume = 100; float log1=(float)(Math.log(maxVolume-currVolume)/Math.log(maxVolume)); mp.setVolume(1-log1);

        
Present in both answers; Present only in the new answer; Present only in the old answer;