how to start an activity in another module explicitly

后端 未结 4 1833
囚心锁ツ
囚心锁ツ 2021-02-02 09:46

I created an aar and i added it to my project as an module. in this module i have a HelloWorldActivity that i want to run.

my module manifest looks like this.

4条回答
  •  我在风中等你
    2021-02-02 10:29

    Intent intent = new Intent();
    intent.setClassName(context.getPackageName(), "ir.sibvas.testlibary1.HelloWorldActivity");
    startActivity(intent);
    

提交回复
热议问题