Simple Calculator Android App Development | Android Studio Tutorial | 2016 | HD

Simple Calculator Android App Development | Android Studio Tutorial | 2016 | HD - Hello friends Android tutorial and tips trik, The article you are reading this time with the title Simple Calculator Android App Development | Android Studio Tutorial | 2016 | HD, we have prepared this article for you to read and download the information therein. hopefully fill posts article |, article 2016, article android, article App, article Calculator, article development, article HD, article Simple, article Studio, article Tutorial, we can write this you understand. Well, happy reading.

Title : Simple Calculator Android App Development | Android Studio Tutorial | 2016 | HD
link : Simple Calculator Android App Development | Android Studio Tutorial | 2016 | HD

Baca juga


Simple Calculator Android App Development | Android Studio Tutorial | 2016 | HD

Please watch these videos to install java and Android Studio Give a name to your application and Company name Select Android VersionSelect lower android version.

So that it support all the devices.

Project loading Try running it on Android Emulator orAndroid Phone If you want to run on Android phone Connect with Usb cableand Enable USB Debugging on Developers Setting The device will be shown on this Click ok it automatically installs on phone and run it So this is App properly running Now start making calculator follow Go to Design Delete the HelloWorld cause we dont need that Now add TextView like this to show Something Writtten Now drag and drop Plain Text Field to take input from user.

change the id to num1 it will be needed later same do the process second time for second number Now add TextView for Result Add one more TextView where we will show the calculated result Now add Button for clicking to calculate Add four buttons and rename them as this Designing part is done now Java section Go to MyActivity.

Java And we create a Method onAdd() to add the numbers We are storing the text we get from the text field in EditText a1,a2 Now since the text is in string format we have to change it to float or double.

We should store the double in n1 and n2 create another variable to store the result or answer Textview to show the result in the app Write the id of Textview to the java file like this now set the textview to print the value of "ans" ans=n1+n2 (Sum of numbers input) Now again go to xml Text And on ADD button set onCLick method to onAdd Done now run the app to check Put some numbers Click on Add button There is result shown other buttons doesnt works since we have not created methods Go back to java file Copy onAdd() method and paste Just change onAdd() to onSub()and ans=n1-n2 Change the button id since id wereADD-"button"SUB-"button2" Same for MUL and DIV also Now on xml file write android onClick to respective methods Done,Now run it Enter numbers Click on buttons yeah,All are working Thank you for watchingif you have any doubts or queries please comment.

And Dont forget to subscribe.



Thus Article Simple Calculator Android App Development | Android Studio Tutorial | 2016 | HD

That article Simple Calculator Android App Development | Android Studio Tutorial | 2016 | HD This time, hopefully we can give you all of the benefits. Well, I'll see you in another article post.

You now read the article Simple Calculator Android App Development | Android Studio Tutorial | 2016 | HD the link address http://svedda79.blogspot.com/2016/06/simple-calculator-android-app.html

0 Response to "Simple Calculator Android App Development | Android Studio Tutorial | 2016 | HD"

Post a Comment