Quantcast
Channel: EmotiCODE - Snippets and Source Code Search Engine
Viewing all articles
Browse latest Browse all 110

Android SDK - Get phone ringer status ( muted or normal )

$
0
0
final AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); // Play sound only if not muted if( audioManager.getRingerMode() == AudioManager.RINGER_MODE_NORMAL ) { ...

Viewing all articles
Browse latest Browse all 110

Trending Articles