Want To Become An Android Developer?

Saumya Singh
4 min readNov 28, 2019

Want to be a successful Android Developer? Welcome !! You are at the right place. This is a very simple guide to get started to your journey of Android Developer 👨‍💻

Android Development

This article is for all those people who fit in any of the categories below :

Category 1: Completely new to Android Development and don’t know how to get started.

Category 2: For all those who have already started Android Development but want to learn it in a better and efficient way and go through the advanced topics.

Android Development is a very vast and interesting course. In the span of just 9 years, Android has climbed the stairs of success and has reached the position that seems to be a visionary dream to other smartphone operating systems. The scope of this field is never ending 🎉

Get started to Android Development

  1. First of all, you must know a programming language like Java or Ko

2. Set Up Android Studio on your PC or Laptop. After setting up android studio you’ve taken your first, bold step toward becoming a developer 🎉

Before starting Android Development, it’s very important to understand the A ndroid activity lifecycle.

Let’s understand Android development with help of this simple project.

Step 1 : Launch Android Studio and start a new project(File -> New -> New Project).

Step 2 : Write name of your new Project and then click finish.

Step 3: After some processing, Android Studio opens the IDE.

Step 4: First be sure the Project window is open (select View > Tool Windows > Project) and the Android view is selected from the drop-down list at the top of that window. You can then see the following files:

app > java > com.example.myfirstapp > MainActivity This is the main activity (the entry point for your app). When you build and run the app, the system launches an instance of this Activity and loads its layout.

app > res > layout > activity_main.xml This XML file defines the layout for the activity’s UI. It contains a Textview element with the text “Hello world!”.

Step 5 : We will make a simple application in which “ On clicking on a button, you will see your name with a star image “ 🎉.

3,2,1….Go !

Open up your XML and write the following code to create a button, an ImageView and a TextView or you can also choose drag and drop method (from the design tab at bottom of XML file).

Second method is more efficient and exciting, Drag an imageView to the layout, choose the Star_Image image for it, and constrain it to the top of TextView. Similarly drag a TextView and then a Button. Constraint all the views.

It should look like this :

Step 6 : Now change the following attributes in TextView and ImageView.

Hurray 🎉🏆, you are done with the basic Front-End Part for the project.

Yess :D

Step 7 : Moving ahead you have to do some coding in MainActivity.java 👨‍💻 Define and initialize the button, TextView and ImageView.

Step 8 : Write this piece of code inside OnCreate Method :

nameTextView.setVisibility(View.INVISIBLE);
imageView.setVisibility(View.INVISIBLE);

button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {

nameTextView.setVisibility(View.VISIBLE);
imageView.setVisibility(View.VISIBLE);
}
});

You can check out the code for above project at First Timer Android Project.

For more information on Android , visit official Android Developer website

Understand Material Design from here.

Want to become an Expert Android Developer ? Visit Here

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Saumya Singh
Saumya Singh

Written by Saumya Singh

GHCI Scholar | International Open Source Award Finalist👩‍🎓 ️| SIH Winner

No responses yet

Write a response