Extend Your Knowledge
It is needless to say that it is generally not very common among actual real-world applications to consist of only one lonesome activity. Thus, in this second tutorial about Intents, we want to develop an application that has two activities. It shows the basic concept of creating multi activity applications and you can certainly use the knowledge you get from this tutorial to create applications with virtually any number of activities. So, if you are curious about how that is done, look no further, the tutorial is right here.
The Tutorial
You have any questions regarding this tutorial? You want to share your thoughts about this tutorial or this site in general? Please feel free to leave a comment below. It is much appreciated.
As always, you can find the project files for this tutorial here: Episode #11 Project Files (.zip)
- Episode #10 – Intents: An Introduction
- Episode #6 – Notification & Long Clicks
- Episode #3 – Using Buttons
- Episode #4 – Checkboxes & Complex Layouts
- Episode #5 – Using Radio Buttons
- Episode #8 – The Alert Dialog
- Episode #9 – Lists: Item Clicks
- Episode #2 – Create A New Project And Run It
- Episode #7 – Using Basic Lists
- Episode #1 – Getting Started!

Comments
Mathias Reisch
02/20/2011 – 9:51 pmHey Martin,
thank you for your comment. I guess you refer to the use of ‘R.id.labelRed’, ‘R.id.labelGreen’ and ‘R.id.labelBlue’. Please note that the R class contains all the resources (layouts, strings, graphics, etc.) that are part of the application. Whenever you add something to the ‘RES’ folder, that R class is regenerated by Android and you can find it in the ‘GEN’ folder. It is important to understand that all resources in the R class are available to every class, activity, etc. in the entire application and thus they DO NOT belong to a specific class or activity. In the ColorPicker class I just return the ID of each (globally available) label and the first activity then looks up that ID in the R class and modifies the corresponding element by setting it to a specific color.
I hope this answers your question. If not, let me know!
Bart Meinders
02/28/2011 – 11:21 pmHey Mathias,
I would like to thank you for your clear tutorials. They’re really nice when you don’t know where to start and when you find the developer guide complicated to follow. Also the video part is good for me, when i watch you making the apps i really see the meaning of all the components!
I see that it’s a while since the last tutorial. I hope there will be one soon! If not I still want to thank you so much for this kickstart in android developing.
Greetz Bart
Vipin B
03/01/2011 – 1:59 amExcellent tutorial and am ready to make my multi-application app. Thanks a ton!
Big Bear
03/07/2011 – 6:41 amThanks a ton.
Could you show me how to create an android menu.
Looking forward to the next episode.
Binh
03/08/2011 – 5:58 pmI am really appreciate your tutorial . It really helpful. I hopes everyone can watch this. Thanks again ^^!
Ajith PS
03/10/2011 – 8:00 amI would like to ask you a question, Is mobile applications a threat to websites? Please be kind enough to reply.
Bill Gates
03/20/2011 – 4:48 pmHi,
I’m new to android development, and even to java development. I found that i’ts very hard to find good tutorials on the internet, for beginners. I’ve currently watched all your tutorials.
They didn’t only teach me android, but it also teached me the basics of java, and OOP.
It are really great tutorials, and i hope there will soon be a follow-up tutorial
Greetings. (=
Bill Gates
03/20/2011 – 4:48 pmHi,
I’m new to android development, and even to java development. I found that i’ts very hard to find good tutorials on the internet, for beginners. I’ve currently watched all your tutorials.
They didn’t only teach me android, but it also teached me the basics of java, and OOP.
It are really great tutorials, and i hope there will soon be a follow-up tutorial
Greetings.
gunasekar
03/20/2011 – 8:51 pmits really nice tutorial ..we could really learn how to work in android development..i’m clear with the parts upto intents ..i would be greatfull if you can show us how to work with sqlite database
Yebio Mesfin
03/24/2011 – 12:27 amThanks you very much. As a new Adriod dev, I have been reading books but your tutorial is much better. Thank you!
rajib ahmed
03/24/2011 – 7:18 amIt really awesome !!!!!! tutorial !!! sir ……. please post some new content !!!! … i am dying to see some thing on database or XML service call and parsing Please!! Please!! Please!!
Tiru
03/27/2011 – 6:37 pmI like these tutorials very much. They are clear and content rich. Thank you very much for your tutorials. Waiting for next episodes :)
Giridhar Tula
03/28/2011 – 11:44 amHI Mathias Reisch,
xtensive arts is more than appreciatve,
fantastic job by Mathias Reisch.
There is a small poem in sanskrit(INDIA)
“Annadanam maha danam – VIDYA DANAM MAHATTARAM |
Annena kshanika thripthihi – yavajjivanthu vidyayaa” ||
Meaning : Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
MATHIAS REISCH IS EMPOWERMENT THROUGH EDUCATION
Thanks & regards
From
All the XTENSIVEARTS
blog users
exhem
04/16/2011 – 9:44 pmAmazing tutorials dude!! Clear and usefully! A tutorial to parse XML or some database call would be a dream. Thanks for you job!
TheDafda
04/24/2011 – 12:43 pmReally Awsome Tutorial….
Bob Meltsner
04/25/2011 – 5:52 pmAre there any more tutorials coming?
Alex
05/17/2011 – 2:59 pmYou are the best :)
When you plan to output tuts for DB and writ in file ?
dont
05/17/2011 – 8:10 pmlove your tutorials, please put up some more <3
Craig V
05/26/2011 – 11:36 pmHi Mathias,
Thank you so much for your videos. Is it possible to for you to video on working with a database of resources? Maybe either connecting directly to a SQL database to submit queries, or maybe creating some sort of XML from a database and then parsing the XML.
Cheers,
Craig
Dhrumil Shah
06/01/2011 – 9:12 amHi Mathias,
Thanks for a Great Tutorial series..
I want to know that how can i impliment Intent protocol in onClickListener???
Here in this tutorial you just created a function which is called when button clicks but i want to add onClickListener to my Button as we done in previouse tutorials…
so plz fix this problem…..
thanx in advance…….
Kyle Doyle
06/07/2011 – 4:57 pmExcellent Tutorial! I really enjoyed it and your learn by example teaching method works great.