1. Download our Official Android App: Forums for Android!

Apps adding in button

Discussion in 'Android Development' started by james.reeves, Jul 21, 2011.

  1. james.reeves

    james.reeves Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Jun 24, 2011

    Jun 24, 2011
    2
    0
    5
    Hi,
    i am beginner in android application but crazy about this . i am designing a simple android application . simply i want that when i click on next button , it send me on next text page which i had designed .. i don't know the codes :( .... Can anyone help me ?

    Thanks ,
    James
     

    Advertisement

  2. JiMMaR

    JiMMaR Android Enthusiast
    Rank:
    None
    Points:
    53
    Posts:
    363
    Joined:
    Jun 12, 2010

    Jun 12, 2010
    363
    57
    53
    well .. I gotta see what you started doing so I can help .. but here's a code to navigate, you place this in the onClickListener for the button
    Code (Text):
    1.  
    2. {
    3. Intent intent = new Intent(page.this, next.class);
    4. startActivity(intent);
    5. }
    6.  
    page is the current page, and next is the other page
    you also have to add the next page inside the manifest
     
    james.reeves likes this.
  3. james.reeves

    james.reeves Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Jun 24, 2011

    Jun 24, 2011
    2
    0
    5
    Thanks for the code mate .. it works :)
     
  4. JiMMaR

    JiMMaR Android Enthusiast
    Rank:
    None
    Points:
    53
    Posts:
    363
    Joined:
    Jun 12, 2010

    Jun 12, 2010
    363
    57
    53
    glad I could help :D
     

Share This Page

Loading...