Android Studio How to start a new activity with a button

preview_player
Показать описание
Today we are:
====================================
Next video:
Previous video:
====================================
Link to corresponding Android Developers web page:
====================================
Link to Code on GitHub
====================================
ABOUT:
Ever wanted to make apps? Nows your chance to learn from these videos. I started this channel of pure android studios related videos and its going good so far. You can learn a lot from these videos, even how to make your own apps. I'm shocked at the sudden rise in subscribers but I ain't even mad. I'm going to see just how many subscribers I can get. From now starting May 17th, 2015 at 0 subscribers I'm shooting for 20 subscribers at the end of July 2015. So subscribe for more of the latest videos from John's Android Studios Tutorials.
====================================
Download Android Studio
====================================
INTERACTION:
Also Any Suggestions are helpful!
Send me ideas for videos and whatever else you want

Here are the items you should import

Рекомендации по теме
Комментарии
Автор

Thanks for the tutorial, very straight forward and easy to understand.
Keep up the good work

imariotmaker
Автор

Make sure to tell people to import the right things in the beginning of the file. Other than that, it's great! I love these short, straight to the point videos. Thanks!

EdwardFinance
Автор

Dude, you are the best! I've made my first app with button thanks to you. Of course, I had to do additional research as well but your video was very helpful. thanks!

mathewman
Автор

Here are the items you should import

import android.content.Intent;
import
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;

johnsandroidstudiotutorials
Автор

This worked great for me, you should state somewhere that people need to import a few of the things above for it to work. Thank you :)

williamburbidge
Автор

There is something inherent about being Awesome at Programming which tends to make people terrible at teaching. I see this with all these videos and online tutorials, the android studio main page and even my friends that know programming.
I appreciate the work you put into this video, it gives me something to work with. But I wish you wouldn't constantly assume that I understand what we're all looking at on your screen.
I have no idea what the difference between "Button" and "(Button)" is or what advancetoquestiontwo does, or what part of your code are names that you make up and what part is inherent within Java.

"We're gonna set a on click function...." "....here we do some method...."
Clearly stating the intentions with each move would help and communicating what all these details do and then presenting your code in the end to copy.
It's very safe to say that the vast majority of your viewers are complete and total incompoots in terms of programming.

Broockle
Автор

Thank you for amazing videos!!! I've learned a lot. Thank you for the knowledge.
-2018 Subscriber.

boredstudent
Автор

I have followed tutorial and checked my code Stops Working as soon as you click on the button manifest file looks good any help would be appreciated

martynas
Автор

I've tried doing this for multiple buttons and most of them work apart from one because when I name the button it says something like this field has never appeared. I don't suppose you could offer any advice? Thanks in advance :)

GandhiTheGunslinger
Автор

it doesn't work for me, the app does compile but when i click it crashes "unfortunally app has stop"

leonmatt
Автор

My program won't work with two intents or i don't know. Only one button will go to new activity, the others won't work. Can you help me?

rekersXXIX
Автор

my code is almost identical to yours, but i get the message, "Class 'Anonymous class derived from OnClickListener' must either be declared abstract or implement abstract method 'onClick(View)' in 'onClickListener'." how can i fix this?

Gregouaa
Автор

sir, for the 3rd activity where can i put the java.code for Questionthreeactivity?

ahmadnazimyahya
Автор

Is a module an activity? Thanks for the video though.

marxt
Автор

I don't know why but this method and the other method also, are not working to me...

francescoderuvo
Автор

But what happens, if you make on the new site(activity) a button with go back. I can't even use the function on the Site than :/

fabiangries
Автор

Please Make a video to launch​ Button click activity open new activity only once when app is opened for first time If app is opened second time should not open button click activity should open new activity directly How to disable Button Click Activity PLEASE MAKE A

redminotekalilinux
Автор

will this work on android studio 2.2 on basic activity as my main activity.java

dogthatlooksattaxevaders
Автор

I still cant make mine work . Do you have a solution for me ?

h.r.hbrandont
Автор

Hi, I have done everything you have said. The app does compile but when I click on the button, it says unfortunately app has stopped. Please Help!

RockyPictures