How to call an activity in another project?

前端 未结 5 677
无人及你
无人及你 2021-01-18 22:22

Hi I am new to android and I have created 2 projects.

Now I want to call an activity in the second project from the first project upon a button click.

The 1

5条回答
  •  离开以前
    2021-01-18 22:50

    1. in the map project's AndroidManifest file add your custom intent filter

       
       
                  
                      
                  
              
      
    2. from the login button call this activity like this:

    Intent intent = new Intent("com.example.map.show"); startActivity(intent);

提交回复
热议问题