我有两个类,一个来自PApplet
,另一个来自Activity
。
我想通过Intent
相互交流。我该怎么做?
//Class that extends PApplet.
Intent intent = new Intent(this, Test.class); //Activity I wanna go to.
startActivity(intent);
答案 0 :(得分:0)
Intent intent = new Intent(this.getActivity(), Teste.class);
try {
this.finalize();
} catch (Throwable throwable) {
throwable.printStackTrace();
}
this.startActivity(intent);