Skip to content

Instantly share code, notes, and snippets.

View kazuman519's full-sized avatar
πŸ’­
🍺

Kazuma Miura kazuman519

πŸ’­
🍺
View GitHub Profile
@kazuman519
kazuman519 / file0.java
Created May 19, 2016 07:50
【Android】他をプγƒͺで音ζ₯½γŒε†η”Ÿγ•γ‚Œγ¦γ„γ‚‹γ‹ηŸ₯γ‚ŠγŸγ„γ€€θ‡ͺγ‚’γƒ—γƒͺγ‹γ‚‰γƒ—γƒ¬γ‚€γƒ€γƒΌγ‚’ζ“δ½œγ—γŸγ„ ref: http://qiita.com/kazuman519/items/f470851b7fb7cb75794e
AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
if (audioManager.isMusicActive()) {
// ε†η”ŸδΈ­!!
}