Back to project page AudioPlayerRecorder.
The source code is released under:
MIT License
If you think the Android project AudioPlayerRecorder listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.heavyplayer.audioplayerrecorder.utils; //w ww. j a v a 2 s . c om import android.content.Context; import android.content.pm.PackageManager; public class AudioUtils { public static boolean isMicrophoneAvailable(Context context) { final PackageManager pm = context.getPackageManager(); return pm != null && pm.hasSystemFeature(PackageManager.FEATURE_MICROPHONE); } }