How To Create Your First Android Application with Java

preview_player
Показать описание
Create Your First Android Application with Java in Android Studio Integrated Development Environment (I.D.E).The App that I will be making in this video is the simplest one and perfect for beginners. Watch this video till the end to be able to understand it completely. You need some basic knowledge about Java to make an Android App.

Hey Guys!
Its Teja here!
In this video, I will be teaching you how to create your first Android App in Java.
In this video, I will be teaching you to make a simple clicker application for Android. This App is simple and it just shows us on what Button we clicked. Its perfect for beginners to get started with this simple application.

DESIGN

Coding
Then we need to link all these four elements to our Main Activity class. The MainActivity class is the first thing that is going to be executed when our Android App is executed.
In the MainActivity class, we need to import the widget java package to be able to use the three buttons and one TextView that we used in the xml file(our Application Layout)

To import the button class from the Widget library, use the code :

To import the TextView class from the widget Library, use the code :

After importing these, you have to declare these in your Main Activity class. You can do that by simply saying :
Button buttonA;
Button buttonB;
Button buttonC;
TextView txtView;

The next thing is to set OnClick Listener to the three buttons. You can do so by typing :
buttonA.setOnClickListener(this);
buttonB.setOnClickListener(this);
buttonC.setOnClickListener(this);

Make sure that you implement OnClickListener to your MainActivity class.

Now we can programatically know whenever the user clicks on any of the three buttons since we are listening to the clicks using OnClickListener.
Next thing is, perform some activity whenever the user clicks on a Button in our Applciation.

So, start a OnCreate method. This OnCreate method is going to be executed whenever the user clicks on any of the three buttons.
And then, we are going to change the text of the textView basing on what button the user clicked using the setText() method. You can simply say :

Thats it!

Thanks For Watching!
Cheers!

-~-~~-~~~-~~-~-
Please watch: "How the INTERNET actually works? "
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

the background music is like a heroine is kidnapped and hero is entering in fight scene.. nice video bro

joshrak
Автор

You just saved a brother the stress of downloading too many videos on here. Thank you so much bro

binarynation
Автор

This guy is the definition of the indian teacher guy

novastar
Автор

Thank you so much! You don't even know that you bury a seed of entrepreneurship. Inspired 🙏🙏

shubhammishra
Автор

After a long search in Internet this was basically the best tutorial on basics of using Android Studio with simple measures.
Keep it up 👍

ItsMe-jbch
Автор

Really useful. this software is actually pretty fun!
Today I made a calculator for practice, within a couple of hours.

KendrixTermina
Автор

I hate that in every 20 to 30 second you are saying "you know", but I dont know

jackDash
Автор

Your video is really a good one and can be extended by teaching many more features. But to be honest please reduce the background music bruh! Thanks for the video.

riddhi
Автор

Great and glad to see you here! and i appreciate your telent that can do with Java programming for Android applications

othoymarma
Автор

Thank you for this. It was a good introduction.

sjankarcher
Автор

Thanks for the quick and to the point tutorial!

redeem
Автор

Thank Brother for give me knowledge about Android Studio

geetmpmusicaudio
Автор

Loved it!!!! I hope I'll come across few more tutorials in future

tanyasrivastava
Автор

Nice work bruh! I was trying to learn java and i just learn "if else"and many subjects... Its really helpful to see how to use it...

thedavissingh
Автор

Very good working example! The buttons overlapped on run time and I need to configure target device emulator to run. For button overlapping constraints issue in Android Studio on Design tab select controls one by one and on top find 'Infer Constraints' icon and click. It will be resolved. Thanks!

nandakumar
Автор

Do you have other videos about Android development? If yes, put them all into a playlist please, it will be easier to find them. Thank you:)))

vladislavamusin
Автор

Wow man thanks so much really help full. I subed man. Keep it up.

josij
Автор

Hi Teja, Very nice video, i have seen the news article about you in Eenadu and visited your youtube channel. All the best

kaleshashaik
Автор

Video was very clear & understandable...Great tutorial...

cosmicdarkmatter
Автор

Thank you so much brother ❤for providing this beautiful information

Irred