xtensivearts - One Leap Ahead
Episode #11 – Intents: Multi Activity Applications

Episode #11 – Intents: Multi Activity Applications

Posted 04/16/2010 - 9:42 pm by Mathias Reisch

In this episode we pick off right where we left last time. So far we developed small applications that had one single activity. In the last tutorial we had a look at how to call other activities that are provided by other Android applications. If you want to know how to create your very own activity and how to incorporate it into your application, well, read on.

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)

Related posts:
  1. Episode #10 – Intents: An Introduction
  2. Episode #6 – Notification & Long Clicks
  3. Episode #3 – Using Buttons
  4. Episode #4 – Checkboxes & Complex Layouts
  5. Episode #5 – Using Radio Buttons
  6. Episode #8 – The Alert Dialog
  7. Episode #9 – Lists: Item Clicks
  8. Episode #2 – Create A New Project And Run It
  9. Episode #7 – Using Basic Lists
  10. Episode #1 – Getting Started!

Why Not Leave a Comment?

Name:*
E-Mail:*
Website:
Comment:*

Comments

Mathias Reisch

02/20/2011 – 9:51 pm

Hey 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 pm

Hey 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 am

Excellent tutorial and am ready to make my multi-application app. Thanks a ton!

Big Bear

03/07/2011 – 6:41 am

Thanks a ton.
Could you show me how to create an android menu.
Looking forward to the next episode.

Binh

03/08/2011 – 5:58 pm

I am really appreciate your tutorial . It really helpful. I hopes everyone can watch this. Thanks again ^^!

Ajith PS

03/10/2011 – 8:00 am

I 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 pm

Hi,
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 pm

Hi,
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 pm

its 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 am

Thanks 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 am

It 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 pm

I 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 am

HI 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 pm

Amazing 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 pm

Really Awsome Tutorial….

Bob Meltsner

04/25/2011 – 5:52 pm

Are there any more tutorials coming?

Alex

05/17/2011 – 2:59 pm

You are the best :)

When you plan to output tuts for DB and writ in file ?

dont

05/17/2011 – 8:10 pm

love your tutorials, please put up some more <3

Craig V

05/26/2011 – 11:36 pm

Hi 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 am

Hi 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 pm

Excellent Tutorial! I really enjoyed it and your learn by example teaching method works great.