I need a button to open two activities on one page. For example when I click on the button it must display the time and the location on the same page, but the time and location activities are in separate activities. Could anyone help please?
4
-
1You cant have more than 1 activity at the same page - the page itself is the activity , you can use fragments insted– Tamir AbutbulJan 22, 2019 at 12:00
-
yeah kind of figured,so i combined my two activities into one,it worked but then my button stopped working– jordan theronJan 23, 2019 at 9:28
-
Post your code and i will help you– Tamir AbutbulJan 23, 2019 at 13:01
-
its cool ive given up on that and found a roundabout method– jordan theronJan 24, 2019 at 14:31
Add a comment
|
1 Answer
You have to use fragments for that. Learn more from here: https://developer.android.com/guide/components/fragments