javascript - How to Intent to Another Activity from JavaScriptInterface? -


my javascriptinterface method working fine without intent function. when add intent method not working.
javascriptinterface method.

@javascriptinterface public void check(string p) {     intent intent = new intent(getapplicationcontext() , webappinterface.class);     intent.putextra("data", p);     mcontext.startactivity(intent); }  

i tried using mainactivity, this, etc... instead of getapplicationcontext() , tried without context mcontext. no help.


Comments

Popular posts from this blog

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Create a stacked percentage column -