Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7520085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:00:23+00:00 2026-05-30T02:00:23+00:00

I just compiled and ran the hello world app and it worked. And I

  • 0

I just compiled and ran the hello world app and it worked. And I read through a bunch of stuff on the android documentation about the diff components of android and how it all works together. Now I want to make a few buttons which link to various actions.

For example, I want to make a button that goes to a new screen. Is there a tutorial for this sort of a thing? Or maybe someone could explain to me how to do that?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T02:00:24+00:00Added an answer on May 30, 2026 at 2:00 am

    This is really simple. To make a button that goes to a new screen you should put a new button on your XML layout, and assign it an id. After you’ve done this, in your code, you need to do something like the following:

    Button mButton = (Button) findViewById(R.id.mybutton);
    mButton.setOnClickListener(new Button.OnClickListener() {  
        public void onClick(View v) {
          Intent myIntent = new Intent(CurrentActivity.this, NextActivity.class);
          CurrentActivity.this.startActivity(myIntent);
        }
    });
    

    Hope this helps you.

    Also, be sure that the activity that you’re trying to start A) Exists, and B) is in your manifest.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just wondering if a .NET app can be compiled down to native machine code
When I started learning Java I too started with the ubiqutous Hello world app.
I just compiled and viewed a CHM file used in my project. I noticed
I just finished a small project where changes were required to a pre-compiled, but
I've just finished a library in Objective-C that I compiled as a Static Library
I just upgraded to Snow Leopard, including installing the new XCode, re-compiled Ruby 1.8
I'm new to Mono and just started recently. Is mono program are compiled from
So I made a program using Qt Creator (Windows) and I compiled and ran
Though I'm of course familiar with auto-properties, I just ran across this at work,
I just recently started learning and using the ADO.NET Entity Framework and ran into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.