How to call an activity in another project?

前端 未结 5 794
无人及你
无人及你 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:57

    According to Android you can handle this by making the project Library and then Define it in the manifest file and call it in what ever manner you want

    for an explanation i did this as per my requirement the activity you want to call on Button click Define it in the Manifest with its full package name and then when you call it on button click the activity of the new project will trigger the sample to do this is following in the manifest file of your 1st project define some thing like this

    
    
        
    

    in the package name define the full path of the the activity you want to call and after the package name give the name of the activity hope this will work for you as this worked perfect for me

提交回复
热议问题