ad

Create a Basic Calculator on Andorid Studio




Hello Guys in this tutorial you will learn , how to create a basic calculator on Android Studio?

So First create a new project on Android Studio , select empty Activity click next then Finish.

Go to activity_main.xml and create Buttons and two editTexts as shown below

activity_main.xml



Then go to MainActivity.java then copy below code then paste in your MainActivity.java (Please delete all the code in the file except package name then paste the code given below)

MainActivity.java



Still getting problem? (Watch the tutorial)



No comments:

Post a Comment

Recently added

Create a Basic Calculator on Andorid Studio

Hello Guys in this tutorial you will learn , how to create a basic calculator on Android Studio? So First create a new project on An...