This document contains details about students Adriana Lizbeth Avila Ortiz and Maricarmen Avila Ortiz of the 4th grade BM group. It provides their teacher's name, subject of mobile application development, classroom number, and school year. The document also includes the code for an Android application that calculates and displays the numbers from 1 to 10 in a text view when a button is clicked.
12. @Override
public boolean onCreateOptionsMenu(Menu
menu) {
// Inflate the menu; this adds items to the
action bar if it is present.
getMenuInflater().inflate(R.menu.main,
menu);
return true;
}
@Override
public boolean
onOptionsItemSelected(MenuItem item) {
13. // 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();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
public void calcular (View view){
TextView r=(TextView) findViewById (R.id.textView2);
String sol="";
int num=1;
do{
18. ESTE PROGRAMA NO ES NADA DIFICIL SOLO
SIGUE LOS PASOS Y ENTENDERAS RAPIDAMENTE
YA QUE PUES SI SIGUES LOS PASO NOSE TE ARA
TAN DIFICIL ESTE ESPERO Y TE HAYA GUSTADO
ESTE PROGRAMA.