Android Tutorial & Lessons 10: Introduction to the BUTTON!!

Android

Video is ready, Click Here to View ×


Android Tutorial & Lessons 10: Introduction to the BUTTON!!:

Here is the link for learning more about android Activity: http://developer.android.com/reference/android/app/Activity.html

Whats up CornFanz, thanks for watching my videos, I would love it if you subscribe and give me some feedback.

In this lesson you will:
-Create a new layout called tutorial1.xml
-Create a new class called tutorialOne.java
-Introduction to the defining and using the button to start a new activity
-Maybe…

24 thoughts on “Android Tutorial & Lessons 10: Introduction to the BUTTON!!

  1. can someone please help me?

    i cant seem to find where i am going wrong. i followed the tutorial, however when i click my button, it does not redirect me to anywhere… if you could please help it would be massively appreciated.

    thank you

  2. The error is this:
    Button bTutorial1 = (Button) findViewById(R.layout.tutorial1);

    should be

    Button bTutorial1 = (Button) findViewById(R.id.tutorial1);

    Because your Button in xml is defined as

    <Button
    android:id="@+id/tutorial1"
    android:layout_width="match_parent"

    Which will be defined in R.id, therefore, you retrieve it as R.id.tutorial1

Leave a Reply

Your email address will not be published. Required fields are marked *