public static int getMaximumVolume(Context context) {
		return ((AudioManager) context.getSystemService(Context.AUDIO_SERVICE)).getStreamMaxVolume(AudioManager.STREAM_MUSIC);
	}
public static int getMaximumVolume ( Context context ) { return ( ( AudioManager ) context . getSystemService ( Context . AUDIO_SERVICE ) ) . getStreamMaxVolume ( AudioManager . STREAM_MUSIC ) ; }
Returns maximum volume the media volume can have

@param context Context
@return Maximum volume