Create your first android app step by step in android studio in less than 3 minutes

Introduction

In this small tutorial, we will how to use toast notification in android and build an android app.

Follow all steps to create a new android project as shown in above video. After creation of project go to the Java file and look for onCreate function, in that you need write just one line of code to display toast notification.
Toast.makeToast(Context context,int resId,int duration).show();

The first parameter is the context, the second one is the message you want to show, the third one is time or duration of toast.
Now you are all set to run your first Android app.

Leave a Reply

Your email address will not be published. Required fields are marked *