After installing Android Studio successfully (How to Download and Set Up Android Studio, Start Android App Development with an Android Phone).
Today we will develop and run our First Android App.
Launch Your Android Studio and a Screen like this should show up or if you have and active project close it.
Click Start A new Android Studio Project
Enter Your Application name and your company domain.
Select Your Minimum SDK, This is the lowest version of Android you want your App to Support
Choose A Empty Activity and click Next
Click Finish to Create You Project.
Android Studio is Building the project.
This is the basic activity code of an Android App the Above is the Activity Java file its will contain all functions of your app
Click res > layout > activity_main.xml
This is a layout xml file its the file you use in designing your App interface for Example adding Texts, Buttons, Images, Layouts and more this a designer page you can just use an item from Pilate to add Object to you layout..
Select Text to See The Source code
Lets Change the "Hello World" to Your Name.
Go back to design and use the Pilate to Add some objects on your interface
Click Run (The green play button at the Top). The are two ways to run your App either creating a virtual device or connecting your Android device and enabling mode on the device.
I run mine on a virtual device on my machine
Here is the output.
As you all see nothing happen wen any object is click, that's because we haven't declared any function to any of the objects.
Conclusion
This is just an example you will get to know more if you follow me.
Any question should be commented below.
[Beginners] Creating Your First Android App Project
Reviewed by Mr. SAM
on
December 30, 2017
Rating:
No comments: