Android: How to switch between Activities

Posted May 24th @ 10:38 pm by Boyan Tsolov

Advertisement

In my great expectations of Google Android coming to Canada on June 2nd, I’ve started experimenting with developing some apps for the Android platform. My first app is called “The Taxman” and will calculate the amount of tax you owe per year in your province/state – well only Canada for now.

I had trouble adjusting to what an “Activity” was and how to handle it. Here is a quick and dirty way to create an Activity, and to switch to another Activity (think of it as another screen) on the click of a button.

1. Create a new Android project – or you might already have one created.

01 new project

2. Add a new Class that extends android.app.Activity. You need a total of two classes that extend Activity. You will switch from one Activity to another.

02 new class

03 new class 2

3. Now, we’ll create two XML files to store the layout of each Activity. Under the res/layouts directory create a copy of main.xml

04 xml files

4. Each XML file will contain 1 button. On the click of the button, the Activities will switch.

main.xml will contain:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#ffffff"  >

    <TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textColor="#000000"
    android:text="This is Activity 1" />

       <Button android:text="Next"
        android:id="@+id/Button01"
        android:layout_width="250px"
            android:textSize="18px"
        android:layout_height="55px">
    </Button>    

</LinearLayout>

main2.xml will contain:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#ffffff"  >

    <TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textColor="#000000"
    android:text="This is Activity 2" />

       <Button android:text="Previous"
        android:id="@+id/Button02"
        android:layout_width="250px"
            android:textSize="18px"
        android:layout_height="55px">
    </Button>    

</LinearLayout>

So each Activity will have a text that says “This is Activity x” and a button to switch the Activity.

5. Add the second Activity to the main manifest file. Open AndroidManifest.xml and add:

        <activity android:name=".Activity2"></activity>

The final result will look similar to this:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.warriorpoint.taxman2"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".Activity1"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".Activity2"></activity>
    </application>
    <uses-sdk android:minSdkVersion="3" />
</manifest>

If you forget to do this, then the you will get a Null Pointer exception because “Activity2” will not be found at runtime. It took me some time to find out how to find what Exception was getting thrown as well. I will include how to debug and look at Exceptions in another future post.

5. Open Activity1.java and enter the following code:

package com.warriorpoint.taxman2;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class Activity1 extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        Button next = (Button) findViewById(R.id.Button01);
        next.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), Activity2.class);
                startActivityForResult(myIntent, 0);
            }

        });
    }
}

Here’s a quick explanation of what this does:

- setContentView(R.layout.main) makes sure that main.xml is used as the layout for this Activity.

- Gets a reference to the button with ID Button01 on the layout using (Button) findViewById(R.id.Button01).

- Create san OnClick listener for the button – a quick and dirty way.

- And the most important part, creates an “Intent” to start another Activity. The intent needs two parameters: a context and the name of the Activity that we want to start (Activity2.class)

- Finally, the Activity is started with a code of “0”. The “0” is your own code for whatever you want it to mean. Activity2 will get a chance to read this code and use it. startActivityForResult means that Activity1 can expect info back from Activity2. The result from Activity2 will be gathered in a separate method which I will not include here.

6. Open Activity2.java and enter the code below:

package com.warriorpoint.taxman2;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class Activity2 extends Activity {

    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main2);

        Button next = (Button) findViewById(R.id.Button02);
        next.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent intent = new Intent();
                setResult(RESULT_OK, intent);
                finish();
            }

        });
    }

This code does the following:

- Sets main2 as the layout for this Activity

- Gets a reference to Button02 and creates an OnClick listener

- In the OnClick listener, the Activity finishes with finish(). setResult() returns information back to Activity 1. In this example, it returns no information; and Activity1 doesn’t even have the listener to receive this information anyway.

That’s it! Run it!

05 run

The app will load in Activity 1:

06 activity 1

When you click the button you will see Activity 2. There are no animations, no tweens, etc, so the screen will just “change”. I’ll talk about animations in future posts.

07 activity 2

And clicking on the button “Previous” here will go back to Activity1.

Still to come:

1. How to create animations when switching screens.

2. How to switch using a dragging motion of your finger.

3. How to see a log of the exceptions that your app throws.



9 Trackbacks/Pingbacks

  1. Pingback: Switch between activities tutorial » Parsons Android on April 15, 2010
  2. Pingback: Switch from the main.xml layout to another layout | Android JB on May 11, 2011
  3. Pingback: Link aan button toewijzen on October 20, 2011
  4. Pingback: Switchen tussen Activities on December 1, 2011
  5. Pingback: Relation between activity, xml, views, intent and layout in Android | Android & Java Developer on February 6, 2012
  6. Pingback: 1st problem report « Android – F on February 20, 2012
  7. Pingback: Changing Views Example? | Android Development tutorial | Android Development tutorial on April 18, 2012
  8. Pingback: Android: Restarting an already running activity | Jisku.com - Developers Network on September 22, 2012
  9. Pingback: Android: Restarting an already running activity | Free Android Enthusiasts on September 22, 2012

197 Comments

  1. Tim Almond
    June 11, 2009 at 07:52

    A simple question…

    What makes the emulator start with Activity1 rather than Activity2? Is it the addition of

    ?

    Thanks.
    Tim

  2. Boyan
    June 16, 2009 at 11:22

    Hey Tim,

    If I’m not mistaken it’s the following lines in the Manifest that make Activity1 the default activity:




  3. Boyan
    June 16, 2009 at 11:22

    The opening and closing tags got cut out.
    intent-filter
    action android:name=”android.intent.action.MAIN” /
    category android:name=”android.intent.category.LAUNCHER” /
    /intent-filter

  4. ceveni
    July 6, 2009 at 06:36

    If your screens are simple it is better to use Layouts instead of definining it as activity by switching Layouts

  5. Boyan
    July 6, 2009 at 22:08

    Cool. Thanks

  6. needhelp
    August 12, 2009 at 00:54

    how can i find out need tip solve those problem?

    1. How to create animations when switching screens.

    2. How to switch using a dragging motion of your finger.

    3. How to see a log of the exceptions that your app throws.

    thanks

  7. Chris
    August 22, 2009 at 01:19

    I thought this was a great tutorial–straightforward, lots of detail, and it picked up right where the sample “Hello, Android” app left off.

    I couldn’t understand why my version of your application crashed whenever I pressed the Next button. Finally I figured it out–thanks to your subsequent post about reading the logs:

    E/AndroidRuntime( 1001): android.content.ActivityNotFoundException: Unable to find explicit activity class {tld.domain.helloandroid/tld.domain.helloandroid.Activity2}; have you declared this activity in your AndroidManifest.xml?

    Pretty clear message! Since I had been building off the “Hello, Android” sample, I just added a new class file for Activity2, which wasn’t properly registered in the AndroidManifest.xml file. Just thought I’d mention that here in case anyone else makes the same mistake.

  8. Boyan
    August 23, 2009 at 12:17

    Awesome, thank you very much Chris for posting that; and thanks for the kind words as well.

  9. neil
    September 29, 2009 at 01:55

    Hi!
    do you have an idea on passing an object Bundle back to the first activity and how can you retrieve the data?

    Nice Tutorial. Thanks for the info…

  10. John
    October 16, 2009 at 08:41

    And if I want to switch activity trought MenuItem, how can i do?
    Thanks

  11. Safa
    November 26, 2009 at 13:28

    Hi there. I’d like to learn to program on Android but I’m completely clueless about how the activities work. I wanted to ask, how do you pass parameters to activities? I want to be able to change colour settings for a “game” activity based on a selection made in a “Settings” activity. Could you tell me how to pass variable values across activities?

    Thanks

  12. madhumitha
    December 3, 2009 at 18:45

    hey..
    that really helped. thanks:)

  13. MD Rafiqul Islam
    December 7, 2009 at 07:17

    this is really great!!!

    thanks a lot.

  14. manic miner
    December 11, 2009 at 11:47

    Many thanks for this! So many of the demos out there just demo API fnality, all just in Java, all in onCreate, with zero clues as to how to manage this kind of simple application flow. What are we supposed to do, fill onCreate with dozens of lines of Java?! :P Thanks again ;)

  15. Jay Pena
    December 15, 2009 at 21:53

    Just what I’m looking for!

  16. MNutsch
    December 27, 2009 at 17:18

    Thanks for writing.

  17. MNutsch
    December 27, 2009 at 17:18

    …this.

  18. Werner
    December 28, 2009 at 18:39

    Hi, thanks for this. Best tutorial i found.

  19. kendog
    January 5, 2010 at 11:52

    i have to agree with everyone. this is an excellent tutorial. thank you so much for putting it together.

  20. Justin
    January 7, 2010 at 11:34

    Thanks! I’ve been looking at how to do this for a couple of hours!

  21. sanooj
    January 15, 2010 at 04:20

    me also stuck up for two days……..

    thank you very much its working fine…..

  22. par
    February 3, 2010 at 23:28

    Great post, took about 10 minutes to get the example working! Thanks a bunch!

  23. Paul Gillingwater
    February 5, 2010 at 19:48

    An excellent introduction for one who is learning to develop with Android. Thanks for taking the time to write it up!

  24. sam
    February 9, 2010 at 08:55

    Hi,
    In am developing a android application. The framework is such that I dont allow Activities to laucnh each other.

    Eg: ActivityA can only talk to datahandlerA
    ActivityB can only talk to datahandlerB
    datahandlers can talk to any other datahandlers.

    Some operation happens on ActA. It informs DHA. DHA does some network operation. It informs DHB. DHB does some process than launches ActB.

    Please let me know how this can be done.

    Thanks
    Sam

  25. uday
    March 8, 2010 at 00:59

    thanks……..got it

  26. Mike
    March 18, 2010 at 14:11

    Thanks!

    I found this useful, after several hours of NOT finding this information on the developers site. I modified it for my app, and it worked.

    I tried adding onClick method to button and adding a click listner to my code and both of those solutions did not work. This did the trick!

  27. Mike
    March 18, 2010 at 14:24

    Also, I just noticed this also lets the BACK button (hardware) work as well, so you can go back to the last activity. Smooth!

  28. Ghada
    April 25, 2010 at 19:08

    hey,

    Thanks for the useful post.
    I’d like to know if there is a way by which i can know the name of the activity that started my current activity.
    my problem is that i react differently according to which activity started me.

    Thank you :)

  29. Abhishek
    April 29, 2010 at 04:56

    Hey nice tutorial man but i have a query
    I am using a listview to create a list of items
    and then when the user clicks on or touches on one item he is shown the activity of that particular item. The problem i am having is that :-
    1.How can i set an onclicklistener for list view
    2.Do i have to validate each item separately because i have like 50 items and so and then writting the code somewhat like:-
    “IF this item is clicked then do this and bla bla” will take a hell lot of time. M sure there will be some way in which we can find out the item clicked by user and then store it’s position in some variable and then thru dat variable call the respective activity this shudnt take more than 4 lines of code but i m stuck and cudnt get anythng in my head.
    Any suggestions will be highly appreciated

    abhishek@delvelogic.com

  30. WTK
    May 19, 2010 at 10:49

    I got a question. What could be a reason of misworking back button action. I mean - when I enter another activity, i press back button (on emulator) and instead of going back it shows up android desktop… I am overriding the

    public void onBackPressed() {
    Log.e(”myTag”, “out…”);
    Intent intent = new Intent();
    setResult(RESULT_OK, intent);
    finish();
    }

    but it only throw log, still not working properly..

  31. Dave McCastlebay
    June 14, 2010 at 07:24

    I love you!!
    I’ve been trying to find some place that will explain how to start an activity in a simple way, but I’ve just found shit that was loads of code and I could not managed to get it to work. When I just stumbled across this post and I realize it’s as simple as pie if someone just explain in the great way you did in this post!

    I hope you have a great day, I know mine just got a little bit better, Thanks again!

  32. Pradeep
    June 15, 2010 at 06:53

    HI Abhishek,

    I think this gonna help u,
    package com.example.helloandroid;

    import android.app.ListActivity;
    import android.os.Bundle;
    import android.view.View;
    import android.widget.AdapterView;
    import android.widget.ArrayAdapter;
    import android.widget.ListView;
    import android.widget.TextView;
    import android.widget.Toast;
    import android.widget.AdapterView.OnItemClickListener;

    public class ListExample extends ListActivity {
    /** Called when the activity is first created. */
    static final String[] COUNTRIES = new String[] {
    “Afghanistan”, “Albania”, “Algeria”, “American Samoa”, “Andorra”,
    “Angola”, “Anguilla”, “Antarctica”, “Antigua and Barbuda”, “Argentina”,
    “Armenia”, “Aruba”, “Australia”, “Austria”, “Azerbaijan”,
    “Bahrain”, “Bangladesh”, “Barbados”, “Belarus”, “Belgium”};
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    String[] countries = getResources().getStringArray(R.array.countries_array);
    setListAdapter(new ArrayAdapter(this, R.layout.list_item, countries));
    // setListAdapter(new ArrayAdapter(this, R.layout.list_item, COUNTRIES));

    ListView lv = getListView();
    lv.setTextFilterEnabled(true);

    lv.setOnItemClickListener(new OnItemClickListener() {
    public void onItemClick(AdapterView parent, View view,
    int position, long id) {
    // When clicked, show a toast with the TextView text
    Toast.makeText(getApplicationContext(), ((TextView) view).getText(),
    Toast.LENGTH_SHORT).show();

    }
    });
    }
    }

  33. dogan
    June 29, 2010 at 23:51

    simple, gets the job done. thanks!

  34. Trox
    July 8, 2010 at 15:57

    Thanks so much !!! You’ve saved me hours and hours of searching.

  35. Pankaj
    July 19, 2010 at 08:08

    i am calling activities inside an activity in songle tab host, but when i press back button from any of sub activity (on emulator) and instead of going back it shows up android desktop. Please guide me. Thanks.

  36. Mike
    July 23, 2010 at 11:42

    Awesome.
    I was flipping back & forth in the pages of my Android Wireless Development Book for 2 days trying to get this to work. The example you gave was the best way to describe it. Simple layouts & clear examples of code. I was able to copy/paste 6 lines of code off your site and everything is working now.

    Thanks for taking the time to share the knowledge!

  37. Kevin
    July 23, 2010 at 20:25

    Boyan - Great tutorial! I got Activity 1 to slide (R to L) to Activity 2. How do I slide back (L to R) from Activity 2 to Activity 1? Thanks.

  38. Kevin
    July 23, 2010 at 20:29

    Boyan - I found my own personal error…your code is perfect!

  39. Dean-O
    July 31, 2010 at 15:42

    Keep getting error when pressing the Next button saying…

    07-31 19:38:40.570: ERROR/AndroidRuntime(2478): Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.deano/com.deano.SecondScreenView}; have you declared this activity in your AndroidManifest.xml?

    my first class has the following intent definition in it

    package com.deano;

    import android.app.Activity;
    import android.content.Intent;
    import android.os.Bundle;
    import android.view.View;
    import android.widget.Button;

    public class MainScreenView extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    Button next = (Button) findViewById(R.id.Button01);
    next.setOnClickListener(new View.OnClickListener() {
    public void onClick(View view) {
    Intent myIntent = new Intent(view.getContext(), SecondScreenView.class);
    startActivityForResult(myIntent, 0);
    }

    });

    }

    }

  40. Fred
    August 11, 2010 at 15:52

    Thanks for the great tutorial, made my day!
    I’ve been messing around with different layouts but couldn’t figure out how to address them properly. Works like a charm now.

  41. xoggoth
    August 19, 2010 at 15:22

    Seconded. Best bit of guidance on this nightmare I’ve seen so far. Cheers.

  42. gurnoorinder
    September 16, 2010 at 03:44

    awesome….. u made this task so easy….. cheers dude…

  43. Jetz
    September 16, 2010 at 03:53

    Great tutorial, helped me a lot. Thanks!

  44. Tom Doyle
    September 18, 2010 at 15:59

    Thank You so much. You know how to explain things. Google should hire you to re-write ALL of their documentation.

  45. rosebeat
    September 19, 2010 at 05:18

    Whenever I click on Next, I get the error “Application stopped unexpectedly” and I have to force close it. Why is that? Please help me. I have tried other examples of switching between the activites and the same thing happened. Whenever i click on next it gives me runtime error.
    Anyone has any idea why is it so?

  46. Jontatas
    September 28, 2010 at 12:23

    @rosebeat and Dean-O:

    Make sure you have defined your activities in AndroidManifest.xml, that one got me on several occasions, easy to forget.

    /J

  47. naveen
    October 1, 2010 at 07:51

    how to switch between two activities through timer??

  48. Alok
    October 28, 2010 at 04:50

    Thanks for the great tutorial.I was puzzling from last two days in activity and intents.i have successfully implemented your exmple and learn a lot.
    can you please tell me how to open an image in new screen wheni click the button next.

    i have just modify your code a little in main2.xml and the button becose i want to open an image.
    activity1.java is such as while activity2.java is as:

    package com.example.Activity;

    import android.app.Activity;

    import android.os.Bundle;

    public class Activity2 extends Activity {

    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState)
    {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main2);
    //how to code here to see an image in new screen
    //if i have to use tag(just guessing) in my
    //main2.xml

    }
    }

    Please help i m puzzling from couple of days in this issue.
    Thanks for the great great tutorial………

  49. Phil
    November 3, 2010 at 08:05

    This tutorial has been invaluable. I’d been playing around with tons of tutorials and not one actually covered with switching activities. Thanks for the great tutorial. :-)

  50. Joao
    November 19, 2010 at 08:59

    many thanks for this tutorial…perfect

  51. absar
    December 3, 2010 at 10:30

    it really helps alot.
    thanks

  52. shravan
    December 7, 2010 at 02:49

    Hi
    thanks a ton!!!
    This helped me at the right moment to complete my project. I was trying to do a nested on click listener to listen to two activities and It was messed up until your post helped me to achieve the right way!!

  53. AteTooMuch
    December 12, 2010 at 22:58

    Thanks a million!!

    Your tutorial really helped me to get a clear picture and itemize the various files that must be updated to get second or third activity (screen) to fire up properly
    a) AndroidManifest.xml
    b) res–layout–newactivity.xml
    c) newactivity.java

  54. vype
    December 16, 2010 at 07:45

    Thank you for this very helpful tutorial, greatly appreciated!

  55. junaid
    December 27, 2010 at 04:34

    i want to switch from activity1 to activity2 and then from activity2 to next activity3… by clicking next button but i got an error … here is code of my activity2 NAME as Result1 have prevoius and next buttons ..
    help me

    package seecs.BIT.Result;

    import android.app.Activity;
    import android.content.Intent;
    import android.os.Bundle;
    import android.view.View;
    import android.widget.Button;

    public class Result1 extends Activity {

    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main1);

    Button next = (Button) findViewById(R.id.widget40);
    next.setOnClickListener(new View.OnClickListener() {
    public void onClick(View view) {
    Intent intent = new Intent();
    setResult(RESULT_OK, intent);
    finish() ;
    }

    });

    Button next1 = (Button) findViewById(R.id.widget39);
    next1.setOnClickListener(new View.OnClickListener() {
    public void onClick(View view) {
    Intent myIntent = new Intent(view.getContext(), Result2.class);
    startActivityForResult(myIntent, 0);
    }

    });

    }
    }

  56. breisa
    December 28, 2010 at 11:39

    So… You’re saying that if I have like a hundred screens for my game, I’d be making 100 activites. That is some serious business.

  57. Shweta Chawla
    December 31, 2010 at 19:53

    Very nicely explained all the concepts

  58. Zelpa
    January 27, 2011 at 20:29

    Thank you. I am new to android, and been fighting this simple task for hours. this helped out a lot.

  59. Abhishek
    February 3, 2011 at 05:22

    first application stopped unexpectedly!
    what is the error

  60. deb
    February 3, 2011 at 08:11

    Thx! been looking for this for a while.

  61. ezhil
    February 9, 2011 at 06:00

    great one thank you

  62. Ramesh.M
    February 10, 2011 at 02:34

    this is my manifest file:

    Even I have added the activity2.. still my application crashes..
    my logcat:
    02-10 11:59:27.792: ERROR/AndroidRuntime(1723): java.lang.RuntimeException: Unable to start activity ComponentInfo{button.pack/button.pack.Activity1}: java.lang.NullPointerException

    Please any one find the solution? I have did same java code above there in forum !!..

  63. Ramesh.M
    February 10, 2011 at 02:35

    Even I have added the activity2.. still my application crashes..
    this is my manifest file:

    my logcat:
    02-10 11:59:27.792: ERROR/AndroidRuntime(1723): java.lang.RuntimeException: Unable to start activity ComponentInfo{button.pack/button.pack.Activity1}: java.lang.NullPointerException

    Please any one find the solution? I have did same java code above there in forum !!..

  64. Amit
    February 11, 2011 at 06:06

    Hi I am trying to do this example no error in code. But in emulator it is showing like “Sorry! The application example(process login.Example)has stopped nuexpectedly.Please try again”. Please any one help me.

  65. Amit
    February 14, 2011 at 04:53

    Hi.. who are all getting the above error here i got solution for this.. :) I had give id as login twice so it was unable to refer dat id. When i changed n checked i got the solution.. Id should be unique.

  66. Aurangzeb
    February 16, 2011 at 10:34

    Oh great great great tutorial.. thank you so much!!! I was really stuck at this switching point in android!

  67. chadwick
    March 2, 2011 at 14:44

    Thank you very much! This was perfect!

  68. Bagus Prasojo
    March 3, 2011 at 00:34

    Good. finally, I find it

  69. iaindownie
    March 4, 2011 at 09:23

    Good tutorial - better than official Android site for this topic. Thanks for taking the time…..

  70. Spurge
    March 6, 2011 at 15:51

    Thanks so much for this! It really helped me out.

  71. neha
    March 7, 2011 at 00:29

    hi!
    i was trying to switch from one activity to another using the example given here!
    but when i tried to switch from activity1 to activity2 it stops and says “that the project stopped due to an unexpected error”. kindly guide me for the same, as soon as possible!!

  72. Kalpesh Sangani
    March 9, 2011 at 04:26

    I thankful to you. This code is very very useful for me.

  73. Raghav
    March 14, 2011 at 04:19

    hi,

    After a long run your Application has helped me a lot!!! Really useful!!! Thanks for the post!!!!

  74. Erwin
    March 23, 2011 at 13:21

    Sir how does the setContentView(R.layout.main); work?

    The letter R has errors in it on me. every single line of R

    something wrong?

  75. Mike H.
    March 23, 2011 at 16:01

    Thanks! Your explanations solved my problems, after searching all day. Excellent tutorial

  76. Pramod.Waichal
    March 25, 2011 at 06:16

    Good one dude..

  77. Jake
    April 10, 2011 at 10:34

    Thanks man, this helped me a lot.

  78. Android Phone Tips
    April 18, 2011 at 21:22

    I am still confused with the usage of javascript like the picture above, is there anything easier?
    but this can add to the experience for me, maybe good to try.

  79. Kyle
    April 21, 2011 at 02:28

    Hey guys, I read through the review and had problems moving between screens as well. I actually came across this because I was Google searching for a solution to my problem. For all of you struggling with this I have 2 huge tips for you that have already been mentioned before.

    1: Make sure the class is registered in your AndroidManifest.xml

    2: Check your id’s for all your items in the layout file. If any 2 items have the same id the program will bomb out. All items have to have *unique* ids.

    That was my problem and it wasted 2 hours of my time before I found the two items I had ID’d the same.

  80. Akinsete
    April 23, 2011 at 02:39

    Thank you very much for the tutorial have being searching non stop for about 13hours before i found this.

  81. Akshay
    May 7, 2011 at 10:28

    Thanks man,
    For the such anice tutorial tutorial.It helped me a lot.
    Thanks once again….

  82. Tejas
    May 10, 2011 at 06:55

    Hey, i get an error in both Activity1.java and Activity2.java saying that “id cannot be resolved or is not a field”. I copy pasted everything as it is. Can anyone tell me what the problem is.

  83. Markus L.
    June 17, 2011 at 08:37

    @Tejas: save main.xml

    After 3 days of searching (i’m java and android beginner) i found this. PERFECT!!! Exactlly what i was looking for.
    Thank you very much

  84. Jitendra Nandiya
    August 1, 2011 at 07:49

    hi,
    I am fresher on andoid even in softwair field.
    thaneven it is good

  85. captgeek029
    August 11, 2011 at 14:27

    http://stackoverflow.com/questions/7029031/navigating-between-activities-is-not-happening

    in the above link i have posted my problem.. someone pls try n answer

    Thanks

  86. Kishor
    August 28, 2011 at 06:36

    VERY NICE AND SIMPLE EXAMPLE

  87. mfenimore
    September 6, 2011 at 11:53

    Ahhh, finally! Clear, simple and a clean explanation of how to go from one screen to the next via a button action. Why is it so difficult to get such great examples? Excellent tutorial. For all the people that are too fast out there and don’t read everything . . . you need to modify the AndroidManifest.xml file for this to work. Seems to be a recurring issue that most of us skip over.

  88. new to android
    September 8, 2011 at 00:48

    wow, this tutorial is a lot easier to understand for someone new to android programming. google official android guides contains too much theory and most of them make no sense to a newbie like me! But this tutorial is very clear and achieve what I need straight to the point :)

  89. adiljan
    September 21, 2011 at 03:04

    Thank you for simple and useful explanation !!! :) Hope to find more tutorials later !!! Good luck

  90. Murthy
    September 26, 2011 at 06:16

    hi,
    I am fresher on android even in software field.
    Thank you for simple and useful explanation !!!

  91. Vinod
    September 27, 2011 at 08:22

    thanx buddy…it is really helpful for the android beginner

  92. Steven
    October 13, 2011 at 05:07

    Thank you very much for your tutorial!!
    This tutorial ended my confusion for days!!
    Keep up the good job =)

  93. kgj
    October 15, 2011 at 16:25

    Awesome, thank you. Helped me understand Activities very fast.

  94. Lh Tan
    October 17, 2011 at 01:03

    good job~ thank

  95. Capey
    October 19, 2011 at 20:35

    Thanks! I had no idea that I had to create a separate class file for each activity i the project I was working on. I tried doing everything in one class file and it couldn’t find the activity. I created a new class file and copied the class definition into it and it worked instantly. Thanks! :)

  96. lucas pontes
    October 22, 2011 at 20:46

    Thanks!
    Just a comment, use the android:onClick to turn the code more clean.

    http://developer.android.com/reference/android/widget/Button.html

  97. nasrin
    October 26, 2011 at 13:01

    hi thanks for your codes. I need for spinner items. How can I show the contact list in spinner ? It is very urgent.
    pls help meeeeee.plsssssssssssss.
    pls send the answer to my email.
    thanks a lot.

  98. Imam
    October 26, 2011 at 20:03

    Thank you very much for the tutorial! It’s simple and useful.

  99. caruso
    October 31, 2011 at 18:01

    Still actual. Simple and easy to understand. Thanks for nice tutorial :)

  100. ula? özgüler
    November 2, 2011 at 06:26

    senin ben da??a??n? yiyim!

  101. 0mm
    November 4, 2011 at 16:53

    It’s works and greate. Thanks you!

  102. Diogo15
    November 11, 2011 at 23:34

    Thank you so much! really!

  103. Sid
    November 15, 2011 at 02:33

    hi,I am trying to do a similar thing….but I keep getting an error on the code line setContentView(R.layout.itemwise); saying that main2 cannot be resolved and is not a field. itemwise is the layout of second activity of mine. Any ideas what might be causing this error to appear…Thanks folks

  104. Rajani
    November 21, 2011 at 06:36

    thanks for this nice tutorial.
    thanks

  105. David
    November 22, 2011 at 02:31

    Thank you for pointing out the note on avoiding the null pointer exception. I couldn’t figure out what was happening until I read through your tutorial.

  106. Vajahat Ali
    November 30, 2011 at 20:40

    Nice Article man!

  107. Muhammad
    December 19, 2011 at 11:04

    Hi it is wonderful and helpful article. I have a question. The code is worked behind the button. Which event will be used to slide to the next activity.

  108. Muhammad
    December 19, 2011 at 12:17

    Wants to move on next activity without pressing any button. just touch the screen and slide to next activity. I could not configure which event is performed this activity.

  109. vineet
    December 24, 2011 at 08:45

    thanks

  110. kamattian
    December 29, 2011 at 04:10

    …hey…i have a question…what will i do if i want to enable a button on a different activity by checking a check box on the main activity…hope anyone can help me…thnx!!!

  111. manjunath
    January 1, 2012 at 04:32

    hi i did all procedure wat all u said to execute this but while running its giving a dialog box saying tat ” application force to close”

    can u tell me y
    thanku

  112. Muhammad
    January 3, 2012 at 05:26

    Hi kamattian,

    By passing your checkbox checked information to all activities, where your buttons are placed, can achieve button enable / disable functionality.

    E.g.
    Intent nextActivity = new Intent(this,nextActivity.class);
    nextActivity .putExtra(”ischeck”, True); startActivityForResult(nextActivity , 0);

    next Activity
    Boolean blnCheckbox = (Boolean) getIntent().getSerializableExtra(”ischeck”).toString());

    Based on value, can set your button visibility.

  113. Pavan
    January 12, 2012 at 00:31

    I’m developing a game on android. Game contains 4 players and each player has 4 pawns, each player will get a chance to throw the dice and pawns are moved according to the count indicated by dice. My problem is I need to keep track of all the pawns of each player and also i need to switch from one player to another. so, whether it is better to use activity or is it possible to handle it using if else condition??

  114. Gaurav
    January 19, 2012 at 08:44

    Hi Boyan Tsolov,
    i am very beginner in java android programming i needed
    using intent in android (one page to another page) same like u have have broadcast Android: How to switch between Activities step by step taken screen shot so it is very useful to me i have followed one link (http://blogingtutorials.blogspot.com/2010/11/using-intent-in-android-one-page-to.html) but i am getting error in xml and java file may be some content missed please send me if possible thanks in advance

  115. Gaurav
    January 20, 2012 at 04:26

    Hi all,
    any one can help me please,……

  116. Matt Haynes
    January 24, 2012 at 16:43

    This tutorial is a god send. Thank you ever so much. I had the “application stopped unexpectedly” message and scratched my head over why it didn’t worked when I checked the manifest which was correct. Also watch out for the setContentView where at the end bit you change it to the relevant .xml you called it!

  117. Matt Haynes
    January 25, 2012 at 11:37

    Say I had two buttons on the home page, does this work on both of them?

  118. regine
    February 4, 2012 at 12:04

    Made my day =) Thanks a lot for this very useful example.

    I adapted this to open another view not with a button but with an options menu entry:
    (just scratchy code here)

    //main activity.java
    private View myViewForTheMainAction;

    // override onCreateOptionesMenu(Menu menu) as described in the dev docs / guides here: http://developer.android.com/guide/topics/ui/menus.html

    // Note: our menu-entry we added and want to switch the view in the menu.xml is called add_entry

    // overwrite onOptionsItemSelected(MenuItem item) to access the menu item for switching:

    @Overwrite
    public boolean onOptionsItemSelected(MenuItem item) {
    switch(item.getItemId()) {
    case R.id.add_entry:
    startActivity(new Intent(myViewForTheMainAction.getContext(), EditEntryActivity.class);

    where ‘EditEntryActivity’ is the second Activity we switch to via options menu entry.

    Maybe this is useful for someone else, too ;D

  119. Oleg
    February 4, 2012 at 23:14

    Thank you for this very helpful tutorial, greatly appreciated!

  120. AN Web Services
    February 12, 2012 at 10:02

    Thank you very much for sharing this post. This help me to build my firs multipage application. It works just fine :)

  121. Aravinth
    February 13, 2012 at 04:57

    Thanks for the post!!!!!!!!

  122. Donna
    February 14, 2012 at 21:37

    How do I make Activity1 get a msg that Activity2 has finished/existed?

  123. regine
    February 22, 2012 at 19:39

    Please don’t mind my question, but have you read this?

    http://developer.android.com/reference/android/app/Activity.html#StartingActivities

    Maybe this helps you for a first shot, otherwise you’d maybe need to concret your question a little bit ;)

  124. Tetedebug
    March 13, 2012 at 10:48

    Thanks you bring me all the light on android architecture for me.

    with a Main activity you can manage lot of sub activity in the onActivityResult.

    public class MainActivity extends Activity {
    /** Called when the activity is first created. */

    private static int staCAM = 1;
    private static int staUI = 2;
    private Intent myIntent;
    private Context context;
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    Button start = (Button) findViewById(R.id.Button00);
    start.setOnClickListener(new View.OnClickListener() {
    public void onClick(View view) {
    context = view.getContext();
    myIntent = new Intent(context,
    startActivityForResult(myIntent, staCAM);
    }

    });
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data){

    if (requestCode == staCAM){

    Intent myIntent = new Intent(context, UiActivity.class);
    startActivityForResult(myIntent, staUI);
    }

    if (requestCode == staUI){

    Intent myIntent = new Intent(context, CamActivity.class);
    startActivityForResult(myIntent, staCAM);
    }
    }

    }

  125. gfat
    March 29, 2012 at 08:11

    bhencho

  126. gfat
    March 29, 2012 at 08:11

    bhenchod

  127. soul_killer
    April 4, 2012 at 11:05

    Hi all,
    Can somebody tell me how can i pass my input field myText value to the second activity?

    public class SearchActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.main);

    EditText myText= (EditText) findViewById(R.id.text1);
    Button btnSubmit = (Button) findViewById(R.id.button1);
    btnSubmit.setOnClickListener(new View.OnClickListener() {
    public void onClick(View view) {
    Intent myIntent = new Intent(view.getContext(), Activity2.class);
    startActivityForResult(myIntent, 0);
    }

    });
    }

  128. indraja
    April 5, 2012 at 02:57

    Hi,
    anyone can please tell me
    how to launch an activity in one package from other activity in different package?

  129. jr
    April 13, 2012 at 14:18

    Thank u v m.

  130. Austin C
    April 15, 2012 at 10:36

    Thanks a million! I’m a beginner programmer learning java and believe it or not i’m only 12 years old. I’m actually not that bad at programming. I know how to make a simple app. I am working on one right now called App Box. For all you noobs that don’t know what that means, it means there are a bunch of simple things (LIKE A CLOCK)that are in it for you to look at. I was having trouble because i couldn’t get the button to take me back to the home activity but now I have got it working! Thanks.

    Austin

  131. Tony
    April 16, 2012 at 08:27

    Very helpful! Thanks!

  132. @bhishek
    April 18, 2012 at 14:27

    Thankx…………..its helpful

  133. Quicknol
    April 20, 2012 at 14:18

    Excellent tutorial, very easy to understand for beginners

  134. Khorshid
    May 18, 2012 at 02:53

    that was great,
    i love youuuuuuuuuu
    so helpful

  135. Ryan
    May 18, 2012 at 17:24

    Alright, so everything compiles correctly, its just when i try to click the button to change the layout, everything breaks and i dont know why. Any help?

  136. Carribean Cool
    May 31, 2012 at 14:43

    I am making an android app using android 2.2 and eclipse.
    Its a simple app which should change activities from “CoverPageApp.java” to “LoginActivity.java”
    and then to another activity.
    But as I click the “Start Button” in CoverPageApp.java, the app foce closes.

    **CoverPageApp.java**

    package com.trekeyes.android;

    import android.app.Activity;
    import android.os.Bundle;
    import android.content.Context;
    import android.content.Intent;
    import android.widget.Button;
    import android.view.View;
    import android.view.View.OnClickListener;
    //import android.widget.TextView;

    public class CoverPageApp extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.coverpage);
    addListenerOnButton();
    }

    public void addListenerOnButton() {

    final Context context1 = this;

    Button startbutton = (Button) findViewById(R.id.button1);

    startbutton.setOnClickListener(new OnClickListener() {

    @Override
    public void onClick(View arg0) {

    Intent intent1 = new Intent(context1, LoginActivity.class);
    startActivity(intent1);
    }

    });

    }

    }

    **LoginActivity.java**

    package com.trekeyes.android;

    import android.app.Activity;
    import android.content.Context;
    import android.content.Intent;
    import android.os.Bundle;
    import android.view.View;
    import android.view.View.OnClickListener;
    import android.widget.Button;
    import android.widget.TextView;

    public class LoginActivity extends Activity {

    Button btnLinkToRegistrScrn;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.login);
    addListenerOnButton();
    btnLinkToRegistrScrn = (Button) findViewById(R.id.LinkToRegisterScreen);

    }

    public void addListenerOnButton() {

    final Context context2 = this;

    Button loginbtn1 = (Button) findViewById(R.id.btnLogin);

    loginbtn1.setOnClickListener(new OnClickListener() {

    @Override
    public void onClick(View arg0) {

    Intent intent = new Intent(context2, DashboardActivity.class);
    context2.startActivity(intent);
    }

    });
    }

    {
    // Link to Register Screen
    btnLinkToRegistrScrn.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View view) {
    Intent i = new Intent(getApplicationContext(), TrekEyesAndroidActivity.class);
    startActivity(i);
    }
    });

    }

    }

    **AndroidManifest.xml**

    **LogCat**

    05-31 12:37:08.620: D/AndroidRuntime(629): Shutting down VM
    05-31 12:37:08.620: W/dalvikvm(629): threadid=1: thread exiting with uncaught exception (group=0×4001d800)
    05-31 12:37:08.630: E/AndroidRuntime(629): FATAL EXCEPTION: main
    05-31 12:37:08.630: E/AndroidRuntime(629): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.trekeyes.android/com.trekeyes.android.LoginActivity}; have you declared this activity in your AndroidManifest.xml?
    05-31 12:37:08.630: E/AndroidRuntime(629): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1404)
    05-31 12:37:08.630: E/AndroidRuntime(629): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
    05-31 12:37:08.630: E/AndroidRuntime(629): at android.app.Activity.startActivityForResult(Activity.java:2817)
    05-31 12:37:08.630: E/AndroidRuntime(629): at android.app.Activity.startActivity(Activity.java:2923)
    05-31 12:37:08.630: E/AndroidRuntime(629): at com.trekeyes.android.CoverPageApp$1.onClick(CoverPageApp.java:34)
    05-31 12:37:08.630: E/AndroidRuntime(629): at android.view.View.performClick(View.java:2408)
    05-31 12:37:08.630: E/AndroidRuntime(629): at android.view.View$PerformClick.run(View.java:8816)
    05-31 12:37:08.630: E/AndroidRuntime(629): at android.os.Handler.handleCallback(Handler.java:587)
    05-31 12:37:08.630: E/AndroidRuntime(629): at android.os.Handler.dispatchMessage(Handler.java:92)
    05-31 12:37:08.630: E/AndroidRuntime(629): at android.os.Looper.loop(Looper.java:123)
    05-31 12:37:08.630: E/AndroidRuntime(629): at android.app.ActivityThread.main(ActivityThread.java:4627)
    05-31 12:37:08.630: E/AndroidRuntime(629): at java.lang.reflect.Method.invokeNative(Native Method)
    05-31 12:37:08.630: E/AndroidRuntime(629): at java.lang.reflect.Method.invoke(Method.java:521)
    05-31 12:37:08.630: E/AndroidRuntime(629): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
    05-31 12:37:08.630: E/AndroidRuntime(629): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
    05-31 12:37:08.630: E/AndroidRuntime(629): at dalvik.system.NativeStart.main(Native Method)

  137. noob
    June 3, 2012 at 05:40

    everything works fine.
    But i have a problem while i have 2 tekxtboxes in each activity. While clicking button i change them and i go betwen activities . In first activity textbox is changed but in second is not(everythime is reset). Could you help me ?

  138. TourNote
    June 9, 2012 at 06:15

    Thank you

  139. david
    June 12, 2012 at 17:31

    tanks very mushhhhh

  140. John
    July 3, 2012 at 00:13

    I can only switch from activity1 to activity2 and back to activity1 once. Once I’m back at activity one nothing happens anymore once I click the button.

    Thanks

  141. lol
    July 13, 2012 at 20:06

    alert( ‘this form is not secure’ )

  142. lol
    July 13, 2012 at 20:07

    alert(’test’)

  143. Sean
    August 22, 2012 at 23:36

    thank you, very concise.

    googlers take note

  144. eml to outlook import
    August 28, 2012 at 03:34

    Asking questions are actually pleasant thing if you are not
    understanding something fully, but this piece of writing presents good understanding even.

  145. Download Android Apps Games Apk
    October 24, 2012 at 00:10

    Wow, marvelous blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is fantastic, let alone the content!. Thanks For Your article about Android: How to switch between Activities | Warrior Point - Latest News & Tutorials on SaaS, Android, Windows Phone 7 and On-demand Software .

  146. mhn-mri
    December 4, 2012 at 06:58

    hi,thank you for your service.

  147. Mahmoud Ezzat
    December 19, 2012 at 14:43

    in my app, I wanna destroy the first activity once I call the next one, then I wanna recreate the first activity through the same way I started the second activity.. this is not happening, the previous button never works in this case.

  148. Mahmoud Ezzat
    December 19, 2012 at 14:59

    Well I’m sorry, it was my mistake, please ignore the above question

  149. youtube.com
    December 30, 2012 at 20:18

    WOW just what I was looking for. Came here by searching for Android

  150. christian louboutin discount shoes
    January 3, 2013 at 00:02

    This is the perfect blog for anyone who hopes to find out about this topic.
    You know so much its almost hard to argue with you (not that I personally will need
    to…HaHa). You definitely put a new spin on a subject that
    has been discussed for ages. Great stuff, just excellent!

  151. michael kors tote bags
    January 3, 2013 at 10:07

    I would like to thank you for the efforts you’ve put in writing this site. I really hope to check out the same high-grade content by you in the future as well. In truth, your creative writing abilities has inspired me to get my own website now ;)

  152. fabfastcashloans.co.uk/
    January 18, 2013 at 13:28

    It’s usually better to go for a various financing web-site http://www.fabfastcashloans.co.uk/ Under specific instances there are there are cash issues in which we require meeting a good urgent instant expense beneath certain standards

  153. cool quick loans
    January 18, 2013 at 13:39

    Therefore sudden challenges such as the purchase of a new home, residence
    foreclosure, over due rental expenses that may
    result in foreclosure, continuing education fees and burial expenses (and others) would outline
    a trouble payday uk Exactly what are these things

  154. short term loans
    January 18, 2013 at 14:00

    Usually business segregates these kind of roots
    in separate departments which aid one-another
    using data and data and perform in-sync with each other shorttermloansrave
    Even negative creditors is certain to get the assistance without the hurdles

  155. ombetrækning af stole aalborg
    January 21, 2013 at 11:52

    I love your blog.. very nice colors & theme. Did you create this website yourself or did you hire
    someone to do it for you? Plz respond as I’m looking to construct my own blog and would like to know where u got this from. thank you

  156. sales coach
    January 21, 2013 at 18:53

    What’s up i am kavin, its my first occasion to commenting anywhere, when i read this piece of writing i thought i could also make comment due to this sensible article.

  157. Karen
    January 25, 2013 at 05:53

    Hello! My wife and I frequently publish guest articles for other blog owners to
    help gain exposure to our work, as well as provide excellent articles to site owners.
    It really is a win win situation! If you happen to be interested feel free to contact me at: karen.
    hildreth@gmail.com so we can discuss further. Thanks alot :
    )!

  158. here
    January 26, 2013 at 04:15

    This post is priceless. Where can I find out more?

  159. hotels near san diego sports arena
    January 30, 2013 at 07:37

    You might consequently acquire the actual product online
    for a reduced expense. As well as if perhaps you’re pondering the particular store could very well turn regarding together with deliver the discount coupons back towards the producer back to get their funds back. These sports hubs help all the up to date sports like football, athletics and basketball and other team sports.

  160. Jayesh
    February 6, 2013 at 22:53

    Check out this easy youtube video about the topic…
    Subscribe to channel for more tutorials :)

    http://youtu.be/DK4mkpD17LU

  161. henderson
    February 20, 2013 at 00:43

    Great beat ! I wish to apprentice while you amend your website,
    how can i subscribe for a blog website? The account helped me a
    acceptable deal. I had been tiny bit acquainted of this
    your broadcast offered bright clear concept

  162. zul
    February 22, 2013 at 05:16

    Hi all,

    I wish to create an application which have 3 button.for example 1st button is bank account number.When we pick 1st button,there is an empty box which we have to key in our bank acc no.after that it have 2 button/action,send and cancel.If we take send button,the bank acc no will be send to a default number/receiver.I manage to do all part only the send button i dunno how to do.
    So my main question is,how to link the button to an action(send data to a default number)??
    Thank you very much

  163. Nice post. I learn something new and challenging on blogs I stumbleupon
    every day. It’s always useful to read content from other authors and practice something from other web sites.

  164. psoriasis
    March 6, 2013 at 13:19

    Estoy con psoriasis por 5 años y probado multiples terapias sin mucho exito

  165. Jose
    March 8, 2013 at 13:35

    Great tutorial, just a question.
    If I have 3 activities, and I want to put a next button on the first two and a back-to-first-activity button on the last one, what do I need to do in:?

    Intent intent = new Intent();
    setResult(RESULT_OK, intent);
    finish();

    Thanks in advance
    Regards

  166. commercial Water filtration Systems
    March 14, 2013 at 14:53

    Hello, This is a Great post. I was checking this blog constantly and I’m impressed! Extremely helpful information particularly the last part) I appreciate such info a lot. I was looking for this particular info for a very long time. Thank you and best of luck to you. Wonderful Job, Chow!

  167. Melanie
    March 24, 2013 at 10:03

    I’ve got a site similar to this niche market and you have provided me a good idea for a brand-new article. Appreciate it. Saved and facebook liked!

  168. Birthday invitation wording kids
    March 24, 2013 at 17:31

    I will immediately grab your rss feed as I can’t to find your e-mail subscription hyperlink or newsletter service. Do you’ve any?
    Please allow me realize in order that I may subscribe.
    Thanks.

  169. MohanRaj
    April 10, 2013 at 11:19

    Hello i want to stop my activity1 when i press stop button in activity2. can you plz help me ! ! !

  170. MohanRaj
    April 10, 2013 at 11:25

    It’s work fine with
    finishActivity(Activity1.RESULT_OK);
    Great stuffed blog ! ! !

  171. krithi
    April 16, 2013 at 06:41

    Thanks. Good work

  172. reach overload
    April 17, 2013 at 03:31

    Pretty nice post. I just stumbled upon your weblog and wanted to say that I have truly
    loved surfing around your weblog posts. In any case I
    will be subscribing on your feed and I am
    hoping you write again soon!

  173. Abercrombie
    April 20, 2013 at 08:43

    I don’t even know how I ended up here, but I thought this post was good. I do not know who you are but definitely you’re going to
    a famous blogger if you aren’t already ;) Cheers!

  174. raspberry ketones 500mg
    April 26, 2013 at 04:09

    If you desire to grow your familiarity simply keep visiting this website and be updated with the most up-to-date news update posted here.

  175. Laurence
    May 1, 2013 at 05:17

    Good information. Actually useful and not a ton of fluff.
    It’d be impressive if more sites had this amount of content, then maybe google would loosen up on their stringent policies!

  176. Noah
    May 2, 2013 at 00:23

    Because all of Joe’s loyal followers trust his opinion and his judgment they’re
    also willing to trust yours. Buy a laptop - Don’t rely on being able to find an internet cafe to update your blog. Are you going to be able to write engaging content.

  177. secrets cold calling success
    May 3, 2013 at 00:03

    I’ve learn a few excellent stuff here. Certainly price bookmarking for revisiting. I wonder how so much effort you place to make such a fantastic informative web site.

  178. Nydia
    May 7, 2013 at 01:42

    Paris is rife with world class courses. It hosts visiting tourist as a result of all over your current world in extravagance hotels,
    apartments and as a result bungalows.

  179. You Tube Com
    May 7, 2013 at 04:58

    Fashion Games of Teen Girls Interested Are Fun These challenges are at times shared amongst buddies.
    Even Halloween parties with the very best Halloween costumes can get dry after everyone’s seen the costumes to be seen and passed out the candy to the beggars. You Divide everyone at the party into two groups, or tribes.

  180. Great Piano Covers
    May 8, 2013 at 17:33

    If you don’t think you know it should go and be very, very pleasurable activity, which I definitely am not. Lastly, even though Rick’s Cafe Americain, where much of the mechanism of
    the piano app keyboard and relate them to your schedule.
    Another reason to close the fall the cover for the keys would be if the
    room is extremely bright, select one that does not allow for a big setup or
    group of musicians.

  181. medical marijuana
    May 11, 2013 at 23:47

    This design is incredible! You most certainly know how to keep a reader entertained.
    Between your wit and your videos, I was almost moved
    to start my own blog (well, almost…HaHa!) Great job.
    I really loved what you had to say, and more than that, how you presented it.
    Too cool!

  182. how to make a piano bench cover
    May 16, 2013 at 21:04

    Hello! I merely desired to find out you ever possess difficulties with cyber-terrorist?
    Our previous weblog (wordpress) had been hacked and i also finished
    up losing a few months of effort on account of no
    backup. Do you have just about any answers to stop cyber criminals?

  183. Where can I use articles for my own website? Copy and paste it on my site lawfully?

  184. How to Use MegaOCR
    May 23, 2013 at 09:11

    I don’t want the CAPTCHA word verification on my emails when I send. At the moment I cannot see the code no & my emails are not being sent. Can you please take this off my emails>. Thanking you. Sharon Hunter.

  185. Best Catering In Dallas TX
    May 25, 2013 at 06:00

    Greetings I am so delighted I found your weblog, I really found
    you by accident, while I was looking on Yahoo for something else, Nonetheless I am here now and
    would just like to say thanks a lot for a remarkable post and a all round
    thrilling blog (I also love the theme/design), I don’t have time to look over it all at the minute but I have book-marked it and also added in your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the awesome job.

  186. thelatinoparty.com
    May 27, 2013 at 21:44

    It’s very effortless to find out any topic on web as compared to books, as I found this post at this website.

  187. Alfie
    May 31, 2013 at 03:16

    I love looking through a post that can make men and women think.
    Also, many thanks for allowing for me to comment!

  188. nokia 808 specification
    May 31, 2013 at 15:16

    Hello, just wanted to tell you, I enjoyed this post.
    It was funny. Keep on posting!

  189. Sergio
    May 31, 2013 at 19:28

    I’m not that much of a online reader to be honest but your
    sites really nice, keep it up! I’ll go ahead and bookmark your website to come back later on. All the best

  190. Georgia
    June 9, 2013 at 20:16

    My brother recommended I might like this web site.

    He was entirely right. This post actually made my
    day. You can not imagine just how much time I had spent for this information!
    Thanks! a *Georgia*

  191. Dorothea
    June 10, 2013 at 15:59

    It’s a shame you don’t have a donate button!

    I’d most certainly donate to this brilliant blog! I suppose for now i’ll settle for bookmarking and
    adding your RSS feed to my Google account. I look forward
    to fresh updates and will share this site with my Facebook
    group. Talk soon!

  192. Hollie
    June 16, 2013 at 04:28

    Hello! I just wanted to ask if you ever have any trouble with hackers?
    My last blog (wordpress) was hacked and I ended up losing many months of hard work due
    to no back up. Do you have any methods to stop hackers?

  193. Kelvin
    June 16, 2013 at 15:43

    There’s certainly a lot to know about this. I believe you created several good tips in Features as well. The info has been so very much appreciated!

  194. asp.tmoban.cn
    June 17, 2013 at 19:28

    I’m gone to tell my little brother, that he should also pay a visit this webpage on regular basis to take updated from most recent reports.

  195. Merle
    June 18, 2013 at 04:03

    It’s remarkable in support of me to have a web page, which is good designed for my knowledge. thanks admin

  196. iphone portable battery charger
    June 18, 2013 at 07:29

    Super-Duper website! I am loving this! Will return again - getting you feeds as well.

    Much appreciated info!

  197. Video Sharing as a Marketing Strategy
    June 18, 2013 at 16:12

    I require a brand-new YouTube template. Does anybody have a
    free of cost one i can make use of?.

Leave a comment

Standard Login

Options:

Colors

  • microsoft office xp service pack 3 download free
  • download verizon vz access manager software
  • free download ms office 2003 setup file
  • download game vo lam offline
  • download jogos para lg kp215
  • download crystal reports xi r2 service pack 2
  • sheila ki jawani mp3 free song download
  • download skype for e71 mobile
  • dmx x gonna give ya clean download
  • internet explorer 8 download windows xp
  • jab we met songs free download 123musiq
  • delta force 2 free download full game
  • can u download gamecube games wii
  • nero start smart 6 download gratis italiano
  • tum jo aaye zindagi mein mp3 song download
  • download adobe flash player free for android
  • quicktime player 4 free download
  • if die young band perry sam tsui mp3 free download
  • photo editor free download windows 7 full version
  • download susanu sa nu ma cauti fisierul meu
  • doodle jump c7 download
  • free download ost 3 hari untuk selamanya
  • free download rar extractor vista
  • download video from mail.ru
  • download windows 7 photo editor
  • download music lg quantum phone
  • sanu ek pal chain na aave remix mp3 download
  • download.com avast internet security
  • i'm yours planetshakers free mp3 download
  • free download songs of movie muqaddar ka sikandar
  • download gta san andreas pc completo online
  • download os hybrid blackberry storm 9530
  • netgear wireless g router wgr614v9 installation software download
  • download free age of empires 3 gioco completo
  • download n64 roms for android
  • download itunes para iphone 4 64 bits
  • microsoft server 2008 r2 download iso
  • ebooks free download in pdf format
  • evga e-leet tuning utility download
  • 8 simple rules season 2 free download
  • eu sou lenda download dublado avi gratis
  • windows 7 download ultimate
  • ei 304 driver download
  • trvs djam fix your face 2 download
  • download ubuntu 11.10 live cd
  • psx dragon ball z legends iso download
  • download driver canon pixma ip1980 xp
  • windows 7 service pack 1 download 64 bit iso
  • mp4 to mp3 converter for mac free download
  • ost dong yi download mp3
  • free online hidden object games no download
  • f1 2002 pc game download
  • free download cs 1.6 non steam
  • download imtoo 3gp video converter full version
  • kolaveri di punjabi mp3 song free download
  • download viber for nokia c3
  • download new year picture
  • yg family concert 2011 dvd download full
  • omarion o album free mp3 download
  • download ip man 2 avi legendado
  • warcraft 3 dota ai maps free download
  • pc download zombie games
  • how do u download music from itunes
  • download ar codes dsi
  • rang de basanti songs free download south mp3
  • download fast internet browser for mobile
  • 7532431594
  • 7th sense songs download telugu
  • usb sd card reader software download
  • youtube download mp3 online
  • download young jeezy 24 23 mp3
  • die siedler 7 demo mac download
  • download harry potter 7 r5
  • iphone 3gs fw 3.1 download
  • lil wayne tha carter iv album download mp3
  • download mysql 4.1.22 for windows
  • download mu ba vuong ve may tinh
  • kesha blah blah blah 3oh 3 free mp3 download
  • free download ost dong yi mp3
  • download os blackberry bold 9000 terbaru
  • free download ac97 sound driver windows xp
  • katy perry kanye west et free mp3 download
  • free download al wafi dictionary english to arabic
  • o auto da compadecida completo download avi
  • free download hr questions
  • how to download aqwacker lite v2.2
  • download counter strike xtreme v5 full and free
  • turbo c compiler download for windows 7 32 bit
  • u2 go home audio download
  • jab tak hai jaan mp3 songs free download songs.pk
  • ie 6.0 free download for xp sp2
  • realplayer downloader not working firefox
  • 1920 evil returns aye khuda song mp3 download
  • one direction up all night full album download free
  • ios 5 automatic downloads music missing
  • download revolucion wisin y yandel
  • revenge season 2 episode 4 download avi
  • 5897510456
  • jeezy ft. plies lose my mind free download
  • download samsung galaxy s3 toolkit v5.0
  • free download ebuddy software for nokia x2-01
  • microsoft windows 7 ultimate sp1 download
  • gundam 00 season 2 episode 1 english dub download
  • dragon ball z the game walkthrough part 1
  • download hard times rj berger 2x02
  • download youtube videos mp3 firefox add
  • adobe acrobat writer download chip
  • microsoft office 2003 vlk download
  • microsoft security essentials 64 bit update free download
  • step up 2 the streets final dance song download
  • download the sims 8 em 1 portugues
  • download pw cracker 2
  • tomtom xl iq routes edition software download
  • free mp3 download should've said no taylor swift
  • sonic adventure 2 hd download
  • download og nanba scooter vandi song
  • 6855211627
  • latest cv format free download pdf
  • baixar leitor de pdf para android
  • free download wallhack for cs 1.6 steam
  • lil wayne the carter 3 download zip
  • canon pixma mp530 software download
  • download pool em up game free
  • free download lee seung gi tonight album
  • igi 1 game download full version free pc
  • mobile mp3 music player free download
  • jay-z u don't know mp3 download
  • free pokemon xd download for pc
  • hp pavilion dv6000 ethernet drivers windows xp
  • dg foto art gold 6 free download
  • download sybase iq driver
  • 7467908001
  • linkin park shadow of the day download nl
  • 97 bonnie & clyde download mp3
  • fifa 2004 pc game free download full version
  • download opera mini 5 beta jar
  • free download driver realtek ac97 windows 7
  • download film indonesia perahu kertas
  • jay z forever young instrumental with hook free download
  • mavado come into my room mp3 download
  • free download cheat cs 1.6 fighter fx 7.2
  • plants vs zombies free download apple
  • .net framework 3.5 for 64 bit windows 7 download
  • 7g rainbow colony theme song download
  • free download vlc media player 2012 full version
  • download jay chou lu xiao yu
  • how to download youtube videos in wmv format online
  • how to download samsung galaxy s3 jelly bean update
  • loser like me glee cast free music download
  • download free apps blackberry curve
  • 18 wheels of steel haulin free download tpb
  • norton 360 v6 free trial download
  • final fantasy 1 2 download rom
  • autocad 2012 32 bit free download
  • how to download youtube videos mac os x mountain lion
  • download quake 3 arena
  • adobe reader 8 free download full version windows 7
  • downloads jogos celular lg gm205
  • internet explorer 8 free download for windows xp 64 bit
  • suche youtube downloader mac
  • iphone 4 desktop software free download
  • cod mw2 hacks ps3 download free
  • download free avast antivirus update file
  • dragon quest iv download
  • check my download history internet explorer
  • eminem ft. 50 cent you dont know download mp3
  • mp3 search and download free
  • how to download youtube videos on my blackberry phone
  • download 2 broke girls season 2
  • top free pc games download sites
  • sonic adventure dx download rom
  • download windows 7 themes for android
  • download games micromax q55
  • laung da lishkara mp3 song free download
  • youtube download helper google chrome free download
  • download google earth pro 6 crack
  • magic photo editor software free download windows 7
  • dragon ball gt mp4 latino
  • solange true ep download zip
  • tamil ma movie mp3 songs free download
  • download ck forms joomla 1.5
  • hp pavilion dv1000 video drivers windows 7
  • f5 virtual edition download
  • download leitor pdf celular java
  • who the f is that by t-pain free download
  • zindagi do pal ki song free download
  • download ebuddy htc touch pro
  • ban qing ge mp3 download
  • download lagu sudirman hj arshad
  • pro tools download free for windows 7
  • die sims 3 download kostenlos vollversion deutsch chip
  • but tonight im loving you enrique iglesias mp3 download
  • jdownloader español 2011 descargar
  • do u want me free mp3 download
  • download turbo c for windows xp from cnet
  • lost 6 temporada download legendado gratis
  • gta san andreas game for windows 7 free download
  • descargar cancion hoy ya me voy amor de kany garcia
  • vs 2012 ultimate download
  • directx 8.1 download free vista
  • o fortuna piano sheet music free download
  • taylor swift belong with me free mp3 download
  • download hack xu gunny mien phi
  • how do i download itunes to my iphone
  • can't download xbox live update october 2012
  • free download pokemon diamond and pearl game for pc
  • resident evil 6 ps3 dlc release date
  • download windows 7 home premium
  • mozilla firefox 6 bg download free
  • jeremih put it down on me download for free
  • download do windows 7 starter
  • lost season 6 episode 17 part 2 download
  • where can i download 3d movies for my evo 3d
  • can you download apps on blackberry curve
  • desmume 0.9.6 download zip
  • download xpadder windows 7 64 bits gratis
  • download 4 the cause stand by me
  • compaq presario f700 drivers windows 7 free download
  • video cd burner free download windows 7
  • microsoft word for mac product key free
  • gta iv police car mods download
  • free download mp3 songs aa ab laut chale
  • download mysql server for windows 7
  • free java script download for mobile phones
  • hp laserjet 1012 hb driver download
  • download yahoo messenger x6 nokia
  • nvidia geforce 9500 gt drivers download
  • avg antivirus free download #
  • download game dua xe need for speed ii special edition
  • download garena universal mh v2
  • elegance rad cu tine download girlshare
  • free download ac97 sound driver windows xp
  • jennifer lopez feat. ja rule - im real download
  • kingston dt 101 g2 usb device driver download
  • download iphone 4s 5.1.1 ipsw
  • free download cheat pb 2011
  • cd red hot chili peppers 2011 download gratis
  • free download canon canoscan lide 25 software
  • download redsnow for iphone 4s 6.0
  • yugioh online game free play no download
  • download smadav terbaru 8.7.2
  • mr vampire 3 subtitles download
  • wont ios 5 download my iphone
  • download dragon ball z budokai tenkaichi 3 for ps2 emulator
  • ice queen download mp3
  • once upon a time season 2 episode 1 direct download
  • free download 3gp mobile movies hindi dubbed
  • ye maya cave mp3 free download
  • download oh my god full movie in 3gp format
  • uquran pro jar free download
  • dragon ball z raging blast 2 downloadable content
  • download adobe photoshop cs5 free full version cracked
  • halo 1 xbox 360 compatible
  • skrillex bangarang ep download zip
  • download windows free movie maker
  • windows 2000 sp4 download iso
  • fighter fx 666 free download for cs 1.6
  • wipro lq dsi 5235 printer driver free download
  • free printable coupons groceries no download registration
  • free online no download virtual pet games
  • download uc browser 8.4 getjar
  • mozilla firefox free download for windows 7 ultimate
  • windows vista home premium 32 bit sp1 iso
  • quero baixar o vdownloader gratis
  • download software moto u9
  • combat arms eu vip hacks free download
  • garmin mobile xt download ppc
  • free download 10 band equalizer realplayer
  • train your dragon game nintendo ds download
  • baixar filme resident evil 1 dublado
  • why this kolaveri di video free download
  • daemon tools lite free download windows 7
  • vi client download vmware
  • posso baixar filme nosso lar gratis
  • download jiya re jiya jab tak hai jaan mp3
  • download game yu gi oh ps1 for pc
  • download aplikasi hp nokia x2-01
  • microsoft internet explorer 6 download for windows xp
  • free download shakira waka waka time africa
  • snes gundam w endless duel download
  • download java jdk 6 update 21
  • free download of tcs placement papers 2009
  • ms office home student 2007 free download full version
  • qt embedded 4.6 download
  • 3434319402
  • beete lamhe atif aslam mp3 free download
  • jogos para celular gm205 download gratis
  • my ip address changer software free download
  • love aaj kal mp3 songs free download songs.pk
  • just go with it soundtrack mashups download
  • ye reshmi zulfo song free download
  • gta vice city free download gamespot
  • download game motogp full version pc
  • download free mp3 songs of yaadon ki baraat
  • download iphone ringtone maker full version free
  • driver tp link tl-wn422g download free
  • xbox 360 emulator for pc windows 7 free download
  • new indian rupee symbol font free download
  • free mobile games for nokia c6-01
  • online tv player free download latest
  • wwe download games 2011
  • download green day 21 guns mp3 for free
  • call of duty world at war pc download free
  • chain ek pal nahi song download
  • k7 total security latest update file download
  • free download meri zindagi ke malik
  • no love eminem mp3 download bee
  • download fm transmitter nokia e75
  • photoshop free download full version windows 7 cs2
  • 8971444498
  • download l2 c4 client
  • get iphone 4.0 software update download
  • download vz navigator blackberry storm 2
  • download love themes for nokia c1-01
  • download free antivirus for window 7 home basic
  • if download new version itunes will lose my songs
  • woh chali woh chali original song free download
  • realtek ac97 audio driver xp sp2 free download
  • tema hp nokia e63 free download
  • free download music keyboard player
  • how to download new rs symbol
  • xilisoft video converter ultimate 6 free download with keygen
  • hp drivers 1018 laserjet free download windows 7
  • free download song of jaane tu ya jaane na
  • hoe download ik van youtube
  • i love you chris brown fortune download mp3
  • can u download books library kindle
  • htc touch hd windows mobile 6.5 update download
  • realtek ac 97 driver download for vista
  • baixar filmes dublados rmvb gratis
  • free mobile games download sony ericsson w8
  • platinum hide ip download free
  • darmowe gry xbox 360
  • jw flv media player download
  • download zelda 2 nes rom
  • victorious five fingers to the face mp3 download
  • thawte premium server ca root certificate download
  • baixaki com br download free youtube to mp3 converter htm
  • download jogos xbox 36 0
  • download jocuri ca la aparate crazy monkey gratis
  • nokia c3-01 touch and type themes free download
  • combat arms eu free download chip online
  • creative zen x-fi software download
  • directx 9 download
  • download xp 60 manual
  • free download uc browser 8.4 for android
  • microsoft security essentials download free for xp 32 bit
  • free download song jennifer lopez i'm into you
  • we found love mp3 download 320kbps
  • pajama sam download no need to hide full download free
  • free download bl theraja volume 1
  • download songs of heroine from songs pk
  • qr code reader for blackberry playbook
  • 1826468120
  • machine drawing by n. d. bhatt ebook free download
  • g dragon crayon download album
  • free online 3d avatar chat no download
  • download sinead mq trainer
  • windows xp pro x64 sp2 download
  • divx player latest version free download windows 7
  • download lagu gratis bondan prakoso ya sudahlah
  • dark ro force download full
  • download youtube videos safari windows 7
  • download cd paula fernandes – ao vivo 2011 mp3
  • 2173229049
  • corel draw x4 download full free
  • download kung fu panda ost
  • free download hp printer software windows 7
  • sms cocktail software mobile free download
  • free movies online to watch without downloading
  • how to download music to iphone from computer without itunes
  • free aol 9.0 software download
  • timberlake dead and gone mp3 free download
  • 9445282659
  • s5 malarey song download
  • download redsnow jailbreak 4.1 iphone 4
  • direct 9x download gezginler
  • rihanna we found love free mp3 download nl
  • caesar 4 download full version
  • where can i download mp3 music for free yahoo answers
  • acrobat reader 9 free download for winxp
  • download forever king 50 cent
  • fifa 98 free download game full version
  • download songs rab ne bana di jodi mp3
  • showstopper aj rafael free mp3 download
  • download software motorola e1
  • download hd mp3 from youtube online
  • o palan hare song from lagan mp3 download
  • gorgeous 4u free mp3 download
  • kmplayer latest version 2012 free download for windows xp
  • photoshop cs4 essential skills free download
  • nickelback how u remind me free mp3 download
  • 6248748011
  • download youtube videos 3gp format hd
  • download opera mini 5 nokia x6
  • g w basic free download