Calculadora Gigante Básica Apk

Calculadora Gigante Básica Apk

Latest version 2
04 Jul 2015

Older Versions

Apk Infos

Version2
Rating2.2/5, based on 6 votes
Size‎1 MB
Requires AndroidAndroid 4.0+ (Ice Cream Sandwich)
Author's NotesExample App Calculator used in class Pronatec Estacio de Sa

About Calculadora Gigante Básica APK

Calculadora Gigante Básica APK Download for Android
Calculadora Gigante Básica APK Download for Android

Description

Prof. Eduardo D'Avila
Material de aula da disciplina Android Mobile e Java POO
Curso Técnico Pronatec Estácio de Sá / Campus WestShopping Campo Grande RJ



/**
* Created by Eduardo on 26/06/2015.
*/
public class Calculadora {
public double operando;
private double operandoAnterior;
private String operadorAnterior = "";


public void realizarOperacao(String operadorAtual) {
realizarOperacaoAnterior();
operandoAnterior = operando;
operadorAnterior = operadorAtual;
}

public void realizarOperacaoAnterior() {
if (!operadorAnterior.equals("")) {
if (operadorAnterior.equals("+")) {
operando = operandoAnterior + operando;
} else if (operadorAnterior.equals("-")) {
operando = operandoAnterior - operando;
} else if (operadorAnterior.equals("÷")) {
if (operando != 0)
operando = operandoAnterior / operando;
} else if (operadorAnterior.equals("*")) {
operando = operandoAnterior * operando;
}
}
}




}


----------------------------------------------------------------------------------------------------------------------------------------


import android.app.Activity;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;


public class MainActivity extends Activity {
Typeface fonteDigital;
TextView txtVisor;
// Button bt0, bt1, bt2, bt3, bt4, bt5, bt6, bt7, bt8, bt9;
// int nbt0 = 0, nbt1 = 1, nbt2 = 2, nbt3 = 3, nbt4 = 4, nbt5 = 5, nbt6 = 6, nbt7 = 7, nbt8 = 8, nbt9 = 9;
boolean digitandoNovoNumero = true;
Button botaoTocado;
Calculadora calc = new Calculadora();


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
txtVisor = (TextView) findViewById(R.id.txtVisor);
fonteDigital = Typeface.createFromAsset(getAssets(), "digital.ttf");
txtVisor.setTypeface(fonteDigital);


}


public void digitarNumero(View view) {
botaoTocado = (Button) view;
if (digitandoNovoNumero) {
txtVisor.setText(botaoTocado.getText());
digitandoNovoNumero = false;
} else {
txtVisor.setText(txtVisor.getText() + botaoTocado.getText().toString());
}

}


public void digitarOperacao(View view) {
botaoTocado = (Button) view;
double operandoVisor = Double.parseDouble(txtVisor.getText().toString());
calc.operando = operandoVisor;
calc.realizarOperacao(botaoTocado.getText().toString());
txtVisor.setText(String.valueOf(calc.operando));

digitandoNovoNumero = true;

}


@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();

//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}

return super.onOptionsItemSelected(item);
}
}


-------------------------------------------------------------

Latest updates

What's new in version 2

Correção de Erros.

*Ajuste do visor numérico.
*Settings removido, para estabilidade do App.
*Desativado a orientação horizontal.
*Somente orientação vertical, Smartphone e Tablet.

How to install Calculadora Gigante Básica APK on Android phone or tablet?

Download Calculadora Gigante Básica APK file from ApkClean, then follow these steps:

Update Phone Settings

  • Go to your phone Settings page
  • Tap Security or Applications (varies with device)
  • Check the Unknown Sources box
  • Confirm with OK

Go to Downloads

  • Open Downloads on your device by going to My Files or Files
  • Tap the APK file you downloaded (novatecquerino2.eduardodavila.app.novatecquerino2-v2-ApkClean.apk)
  • Tap Install when prompted, the APK file you downloaded will be installed on your device.

Older Versions

2 (7)1 MB

Questions & Answers

Q: What is an APK File?

A: Just like Windows (PC) systems use an .exe file for installing software, Android does the same. An APK file is the file format used for installing software on the Android operating system.

Q: If I install an APK from this website, will I be able to update the app from the Play Store?

A: Yes, absolutely. The Play Store installs APKs it downloads from Google's servers, and sideloading from a site like ApkClean.net goes through a very similar process, except you're the one performing the downloading and initiating the installation (sideloading).
As soon as the Play Store finds a version of the app newer than the one you've sideloaded, it will commence an update.

Q: Why ApkClean.net can guarantee APK 100% safe?

A: Whenever someone wants to download an APK file from ApkClean.net, we'll check the corresponding APK file on Google Play and allow user download it directly (of course, we'll cache it on our server). If the APK file does not exist on Google Play, we'll search it in our cache.

Q: What are Android App permissions?

A: Apps require access to certain systems within your device. When you install an application, you are notified of all of the permissions required to run that application.

Don't hesitate to contact us if you have any questions or concerns.

(*) is required