I have an application that should trigger an action when javaScript starts,
this is my javascript that works
// javascript interface
private class JsInterface{
and so I call the action a click of a button:
Button next = (Button) findViewById(R.id.button1); next.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { Intent myIntent = new Intent(view.getContext(), VideoVC.class); startActivityForResult(myIntent, 0); } });
but how im completely noob on andoid dev can not figure out how to change activity on my JsInterface
I tried in my JSinterface:
Intent myIntent2 = new Intent(JsExampleMain.this, VideoVC.class); startActivity(myIntent2);
but don't like "startActicity (myIntent2);"
How to complete this simple task?
Many thanks!
source share