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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -