Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,599 members, 7,955,204 topics. Date: Saturday, 21 September 2024 at 07:30 PM |
Nairaland Forum / Science/Technology / Programming / Creating Multiple Activity In Android (971 Views)
What Programming Language Is Used In Creating Viruses? / Consuming Laravel Api In Android / Gradle Problem In Android Studio (2) (3) (4)
(1) (Reply)
Creating Multiple Activity In Android by richardwalter: 3:48pm On Feb 15, 2017 |
Hello, I am creating an application which has lots of buttons on home screen and upon clicking any button - opens new activity. I would like to know how to code for multiple activity from one single activity. Please help.. Thanks..!! About me: I'm new in this forum, I have worked with multiple firms You can check Marketing automation software video ,one of my work. |
Re: Creating Multiple Activity In Android by simiolu1(m): 4:17pm On Feb 15, 2017 |
Re: Creating Multiple Activity In Android by Dekatron(m): 6:05pm On Feb 15, 2017 |
If I can get you right, all you need to do is declare intents. Lets say I have activity A and I want to go to activity B after I click activity A, I will declare an onClick method (actually, Override it. I hope you know what Overriding means in java). button.setOnClickListener(new View.OnClickListener() { That is just a test code. Hope you catch the drift. |
(1) (Reply)
I Need A Tech Company To Partner With / Anatomy Of A Contract(part 2) Invitation To Treat And Offer Distinguished / Android Studio Help
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 12 |