0

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?

enter image description here

enter image description here

enter image description here

4
  • 1
    You cant have more than 1 activity at the same page - the page itself is the activity , you can use fragments insted Jan 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 Jan 23, 2019 at 9:28
  • Post your code and i will help you Jan 23, 2019 at 13:01
  • its cool ive given up on that and found a roundabout method Jan 24, 2019 at 14:31

1 Answer 1

0

You have to use fragments for that. Learn more from here: https://developer.android.com/guide/components/fragments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.