How to Make Calculator In Android Studio Part-2 | Easy Method to Build Apk

HOW TO MAKE CALCULATOR IN ANDROID STUDIO PART -2 | SIMPLE CALCULATOR IN ANDROID STUDIO | PLZ LIKE SHARE TO SUPPORT 🙂

CODE :
package com.example.lenovo.calculator;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {
EditText e1,e2;
TextView t1;
Button b1,b2,b3,b4,b5;
String s1,s2,s3;
Float f1,f2,f3;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
e1=(EditText)findViewById(R.id.editText1);
e2=(EditText)findViewById(R.id.editText2);
b1=(Button)findViewById(R.id.button1);
b2=(Button)findViewById(R.id.button2);
b3=(Button)findViewById(R.id.button3);
b4=(Button)findViewById(R.id.button4);
b5=(Button)findViewById(R.id.button5);
t1=(TextView)findViewById(R.id.textView);
b1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
s1=e1.getText().toString();
s2=e2.getText().toString();
f1=Float.parseFloat(s1);
f2=Float.parseFloat(s2);
f3=f1+f2;
s3=Float.toString(f3);
t1.setText(s3);
Toast.makeText(MainActivity.this, “The answer is”+s3, Toast.LENGTH_SHORT).show();
}
});

b2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
s1=e1.getText().toString();
s2=e2.getText().toString();
f1=Float.parseFloat(s1);
f2=Float.parseFloat(s2);
f3=f1-f2;
s3=Float.toString(f3);
t1.setText(s3);
Toast.makeText(MainActivity.this, “The answer is”+s3, Toast.LENGTH_SHORT).show();

}
});

b3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
s1=e1.getText().toString();
s2=e2.getText().toString();
f1=Float.parseFloat(s1);
f2=Float.parseFloat(s2);
f3=f1*f2;
s3=Float.toString(f3);
t1.setText(s3);
Toast.makeText(MainActivity.this, “The answer is”+s3, Toast.LENGTH_SHORT).show();
}
});

b4.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
s1=e1.getText().toString();
s2=e2.getText().toString();
f1=Float.parseFloat(s1);
f2=Float.parseFloat(s2);
f3=f1/f2;
s3=Float.toString(f3);
t1.setText(s3);
Toast.makeText(MainActivity.this, “The answer is”+s3, Toast.LENGTH_SHORT).show();
}
});

b5.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
e1.setText(“”);
e2.setText(“”);
t1.setText(“”);
}
});
}
}

Faster than a calculator | Arthur Benjamin | TEDxOxford

Never miss a talk! SUBSCRIBE to the TEDx channel: http://bit.ly/1FAg8hB

Benjamin makes numbers dance. In his day job, he’s a professor of mathematics at Harvey Mudd College; in his other day job, he’s a “Mathemagician,” taking the stage to perform high-speed mental calculations, memorisations and other astounding mathematic stunts. It’s part of his drive to teach math and mental agility in interesting ways, following in the footsteps of such heroes as Martin Gardner.

TEDxOxford is organised by University of Oxford students, aiming to bring together the young minds of tomorrow’s world with the movers and shakers of today. TEDxOxford is kindly sponsored by Neptune Investment Management – http://www.neptunefunds.com

In the spirit of ideas worth spreading, TEDx is a program of local, self-organized events that bring people together to share a TED-like experience. At a TEDx event, TEDTalks video and live speakers combine to spark deep discussion and connection in a small group. These local, self-organized events are branded TEDx, where x = independently organized TED event. The TED Conference provides general guidance for the TEDx program, but individual TEDx events are self-organized.* (*Subject to certain rules and regulations)

Channel: TEDx Talks
Published: 2013-04-08 15:54:49
Duration: 15M4S
Views: 12817997
Likes: 189369
Favorites: 0

Simple Login App Tutorial Using Android Studio 2.3.3 (NEW)

A Simple Login App which takes the user input and compares it with a string and on correct login it lets the user enter the app else it displays the number of attempts remaining and after 5 incorrect attempts the login button gets disabled!

Github Code Link: https://github.com/Dheeraj22/Professor_DK/tree/master/Simple%20Login%20Screen%20App

If you liked the video, make sure you hit the thumbs up and also don’t forget to hit the subscribe button! 🙂

Follow me on:
Twitter: www.twitter.com/dheerajkmth
Instagram: www.instagram.com/dheeraj_kamath

***** Other Tutorial Videos *******
1) How to make a splash screen app – https://youtu.be/w4FDTAHRaUY
2) How to make a simple login app – https://youtu.be/lF5m4o_CuNg
3) How to make a simple timetable app – https://youtu.be/McXZPyiC96I
4) How to install/upgrade to android studio 3.0 – https://youtu.be/_iORTFIDAA8
5) Understanding JSON – https://youtu.be/Au627bpcBlo
6) Cloud Computing – https://youtu.be/021oUGAHVdA
7) How to make a Simple Calculator App – https://youtu.be/3GD-37GQp6c
8) Simple Login App Using Database – https://youtu.be/pFc59hCnbPQ

Keywords:
How to do a simple login app
simple login app tutorial using Android Studio 3.0
User login
Login app using Android Studio 3.0
Simple Login app using Database
Android Studio 3.0
Android Studio 2.3.3
Simple Login App
Professor DK
Simple Timetable App
Tutorials
Android Tutorials for Beginners

Channel: Professor DK
Published: 2017-07-24 05:46:49
Duration: 19M48S
Views: 260621
Likes: 2661
Favorites: 0

How to import existing Android Studio Project In to Android Studio with New Package Name

In this video i am going to show you How to import existing Android Studio Project In to Android Studio with New Package Name with out any errors.

Method i used here is a simple copy paste one, you can easily follow.

Convert your website or blog to android app : https://youtu.be/D_zISsB7LR0

Setup Android Studio:
https://www.youtube.com/watch?v=8jxLTfQs4OI

Generate signed APK in Android Studio:
https://youtu.be/uF6oAI9ugMg

Channel: Karthik M
Published: 2015-12-02 09:52:48
Duration: 13M12S
Views: 114977
Likes: 401
Favorites: 0

Episode 1 – Android Calculator

In this video I have programmed an Android Calculator App from scratch. I have used Android Studio v1.5.1 as platform.

You can also download the finished project here: https://github.com/victorgrego/MyCalculator

Channel: WatchMe2Code
Published: 2016-03-11 06:00:50
Duration: 26M50S
Views: 190863
Likes: 675
Favorites: 0

Building a Simple Calculator using Android Studio

Basic Calculator to add, subtract, multiply and divide numbers in android
Check out the source code on: http://www.techobbyist.com
Download source code from github: https://github.com/mistermayne/basic-calculator
Channel: techobbyist
Published: 2015-04-18 17:34:12
Duration: 19M48S
Views: 250735
Likes: 727
Favorites: 0

Leave a Reply

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