android - How to get the default Equalizer to work with my current Audio Session ID -
i want make users default equalizer work app, can't seem app audio session connect equalizer though passing audio session id etc.
here code:
intent = new intent(audioeffect.action_display_audio_effect_control_panel); i.putextra(audioeffect.extra_audio_session, musicplayerservice.getmpsessionid()); startactivityforresult(i, 11113);
i using code above launch user's default equalizer.
@override protected void onactivityresult(int requestcode, int resultcode, intent data) { super.onactivityresult(requestcode, resultcode, data); if (resultcode == result_ok) { system.out.println("result_ok"); equalizer equalizer = new equalizer(0,musicplayerservice.getmpsessionid()); equalizer.setenabled(true); return; } }
and using code above apply enable , apply it. doing wrong here? have few apps on phone use stock equalizer , work fine.
if me out, highly appreciated, thanks.
Comments
Post a Comment