Android Studio : How to Switch Between Activities

  Рет қаралды 62,071

Adobe in a Minute

Adobe in a Minute

Күн бұрын

Switching between activities in Android Studio.
Check out my Channel for more Android Tutorials!

Пікірлер: 50
@johnydeel289
@johnydeel289 7 жыл бұрын
too short too useful
@sunlotfi4079
@sunlotfi4079 6 жыл бұрын
the text is so small hope you can zoom on the screen more
@johnlight-knight8060
@johnlight-knight8060 7 жыл бұрын
This is actually one of the best tutorials that one can find! Well done! I am just surprised that no one else have commented! :O
@benjaminkern8076
@benjaminkern8076 7 жыл бұрын
Thank you for this tutorial, struggled to find a short and comprehensive explanation!
@andyabq8859
@andyabq8859 6 жыл бұрын
I wish you could increase the size of text. Even on 1080P fullscreen it's pretty hard to read.
@alimuhammed1728
@alimuhammed1728 4 жыл бұрын
Thank you, goosh other videos are so freaking annoying and they dont get to the point... thank you habibi
@srinivasperambuduri
@srinivasperambuduri 6 жыл бұрын
screen letters are too small
@gustavomuller7190
@gustavomuller7190 5 жыл бұрын
Thanks. One of the few good tutorials on KZbin.
@fredysoto8547
@fredysoto8547 7 жыл бұрын
Thanks a Lot, You are GREAT!!
@CoryMcaboy
@CoryMcaboy 4 жыл бұрын
The second activity gets unmounted when finished is called. How do we switch between activities without unmounting an activity?
@John_X_GR
@John_X_GR 5 жыл бұрын
one java file can be only associated with One particular layout? For ex. MainActivity.java for the activity_main.xml and SecondActivity.java for activity_second.xml? or for multiple layouts?
@joesarchive
@joesarchive 2 жыл бұрын
exactly what I was looking for thank you!
@magamboisaac7602
@magamboisaac7602 9 ай бұрын
great tutorial
@04_durgeshbangude88
@04_durgeshbangude88 4 жыл бұрын
thanks bro :)
@johnchugh1581
@johnchugh1581 6 жыл бұрын
Hi there. I am new to android and java. I am using video tutorials like this video to do not so complex programming to develop engineering tools. I need to use multiple screens with depth of 2 or 3 i.e. a screen will have multiple child screens and each of these multiple child screens will have further child screens and so forth I tried your code to move between parent screen and child screen and it works well. Then using same code, I tried to go from child screen to its next level child screen. It does not work and I am sure I doing something wrong. Could you please advise on the error in the below listed code. Thanks in advance - John Chugh public class GenericTools extends AppCompatActivity { private static final String TAG = "GenericTools"; // This code is meant to go to a previous activity by way of closing the current activity which is 'general_tools' @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.general_tools); Log.d(TAG, "onCreate: Starting."); Button Button_MainScreen = (Button) findViewById(R.id.Button_MainScreen_Screen); Button_MainScreen.setOnClickListener(new OnClickListener() { @Override public void onClick(View view) { finish(); } }); } // This code is meant to go to a next activity 'FindVersine' from current activity which is 'general_tools' @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.general_tools); Log.d(TAG, "onCreate: Starting."); Button Button_FindVersine = (Button) findViewById(R.id.Button_FindVersine_Screen); Button_FindVersine.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Log.d(TAG, "onClick: Clicked Button_FindVersine."); Intent intent = new Intent(GenericTools.this, FindVersine.class); startActivity(intent); } }); }
@Gh0St007MW
@Gh0St007MW 3 жыл бұрын
Thank you!
@Dra60oN
@Dra60oN 6 жыл бұрын
Thanks for turtorial, and one question, in the LoginActivity.onStart() method, why do you send user back to the MainActivity, when he is not null, shouldn't it be opposite way around? Because if I leave it as you do, application will jump between MainActivity and LoginActivity onStart methods.
@keithharris5940
@keithharris5940 6 жыл бұрын
Just watched and subscribed. I have been messing about with btns for last two days. Thank you talented stranger. Explained so well. Looking forward to more vids.
@nickeastham4478
@nickeastham4478 3 жыл бұрын
You my friend, are a god-send. I'm in an android programming class right now, and the book we're required to use uses an old version of Android Studio. Not compatible with the lessons at all. You explained everything so well, I appreciate it so much!
@ΑντώνηςΠαρασκευής
@ΑντώνηςΠαρασκευής 2 жыл бұрын
Exactly what I was looking for. Thank you!
@StigiXD
@StigiXD 5 жыл бұрын
I assume you can nest activities this way too right? Thank you for the vid btw, very useful! :)
@coffeedude
@coffeedude 2 жыл бұрын
Bro I can't get over your pronunciation of button
@coffeedude
@coffeedude 2 жыл бұрын
Good video tho!
@jebs6536
@jebs6536 5 жыл бұрын
doesn´t work , the app closes when you tap the button
@niphomahlangu2733
@niphomahlangu2733 2 жыл бұрын
Great tutorial. Simple and straight to the point. 👌
@illuminatyjacob2087
@illuminatyjacob2087 6 жыл бұрын
plz make some more video tutorials on android studio
@williambaker4915
@williambaker4915 4 жыл бұрын
Good job. This is the best thing I have ever seen in my life of 22 years
@ClementsProjects
@ClementsProjects 6 жыл бұрын
Thanks dude ! Works like a charm !
@dontsa2626
@dontsa2626 6 жыл бұрын
Thanks a Lot this is very useful. Again Thank you
@annsr3791
@annsr3791 4 жыл бұрын
hype channel. mega underrated.
@vonradvevasty3386
@vonradvevasty3386 5 жыл бұрын
can i switch in other modules activity? i'm new in android studio
@arthborg
@arthborg 6 жыл бұрын
Thank you for the very good explanation
@deadlypandaghost
@deadlypandaghost 7 жыл бұрын
Thank you so much
@DanelonNicolas
@DanelonNicolas 6 жыл бұрын
what about information or context handling?
@Brghtestknght
@Brghtestknght 6 жыл бұрын
Thank you!!!
@ProfeccorxD
@ProfeccorxD 6 жыл бұрын
short yet useful,thnx man
@mrfix369
@mrfix369 5 жыл бұрын
thanks
@BenjaminHeap
@BenjaminHeap 5 жыл бұрын
Very useful - thanks!
@RDCST
@RDCST 6 жыл бұрын
That's actually the simulator speed? I never can't get even the virtual OS running. So I always debug on my own cellphone. Any tip about?
@bashirkhadra6040
@bashirkhadra6040 6 жыл бұрын
maybe your device(laptop/desktop) isnt powerful enough to debug applications from the virtual os
@RDCST
@RDCST 6 жыл бұрын
I have an FX8350 with 16GB of RAM and a 480GB SSD. I think is enough to simulate an ARM core.
@nathanr6479
@nathanr6479 6 жыл бұрын
Tks bro!
@mimnimpetite8681
@mimnimpetite8681 6 жыл бұрын
Thank you so much for making this, it's super useful!
@henrybs14
@henrybs14 4 жыл бұрын
Just what I needed, simple smart, and fast!
@linhdatang
@linhdatang 6 жыл бұрын
thank you so much for this tutorial
@imusingbounce393
@imusingbounce393 6 жыл бұрын
thank now i can finish my app
@sagarmeena0210
@sagarmeena0210 5 жыл бұрын
smartly explained
@Thinna
@Thinna 6 жыл бұрын
Thanks a lot....
@isurugunatileka9850
@isurugunatileka9850 6 жыл бұрын
thank you bro!🤙
FRAGMENTS - Android Fundamentals
17:29
Philipp Lackner
Рет қаралды 331 М.
Как подписать? 😂 #shorts
00:10
Денис Кукояка
Рет қаралды 8 МЛН
Остановили аттракцион из-за дочки!
00:42
Victoria Portfolio
Рет қаралды 3,8 МЛН
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 25 МЛН
How to pass Variable between two activities | Android Studio | Java
7:14
Activities & the Activity Lifecycle - Android Basics 2023
12:47
Philipp Lackner
Рет қаралды 140 М.
Switching Activities in Android Studio: Android Programming
18:15
Brian Fraser
Рет қаралды 28 М.
Improving Android Studio performance on memory-constrained machines
4:33
Android Developers
Рет қаралды 99 М.
Android Studio For Beginners Part 1
37:21
Bill Butterfield
Рет қаралды 2 МЛН
Save Settings in Shared Preferences Android Studio Tutorial
6:05
Code With Cal
Рет қаралды 16 М.
LAYOUT BASICS AND LINEAR LAYOUT - Android Fundamentals
16:45
Philipp Lackner
Рет қаралды 119 М.