1. Are you ready for the Galaxy S20? Here is everything we know so far!

moving from login page to the 2nd page of an application

Discussion in 'Android Development' started by currycrab, Sep 11, 2011.

  1. currycrab

    currycrab Newbie
    Thread Starter


    im doing a project without given proper lessons on android programming on eclipse. was told to selflearn from the webs. hence i meet with some problem in making an application.. search thru the web and cant find any solution that is workable.

    my question is how do i move on to the 2nd page of the application(home view page) given that my login details from the login page were correct. and also how to make a database that can be used to detect the correct username and password.

    thanks in advance

    1. Download the Forums for Android™ app!


  2. alostpacket

    alostpacket Over Macho Grande?

    Usually you would launch a new activity with startActivity or startActivityForResult

    Sorry for short msg, sent from my phone
    currycrab likes this.
  3. jonbonazza

    jonbonazza Android Expert

    You need to use an Intent. This can be done like so:

    Code (Text):
    2. Intent intent;
    3. intent = new Intent(this, ClassToMoveTo.class);
    4. startActivity(intent);
    5. finish(); //Only use this line if you don't want the user to be able to return to the current activity with the back button.
    currycrab and alostpacket like this.
  4. currycrab

    currycrab Newbie
    Thread Starter

    problem solved... =x

Share This Page