SlideShare uma empresa Scribd logo
1 de 18
Centro de Estudio Tecnológicos Industrial
& Servicios 109.
Nombre: ADRIANA LIZBETH AVILA ORTIZ.
MARICARMEN AVILA ORTIZ
GRADO & GRUPO: 4° “BM”
PROFESORA: MARGARITA ROMERO
ALVARADO.
MATERIA:DESARROLLAR APLICACIONES
MOVIL.
AULA:31
CICLO ESCOLAR: FEB-JUN 2015.
Dar clic en FILE.
• package com.example.ejemlf_else;
• import android.os.Bundle;
• import android.app.Activity;
• import android.view.Menu;
• import android.widget.TextView;
• public class MainActivity extends Activity {
• @Override
• protected void onCreate(Bundle savedInstanceState) {
• super.onCreate(savedInstanceState);
• setContentView(R.layout.activity_main);
• }
• @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;
• }
•
• public void calcular(View v)
• EditText n=(EditText) findViewById (R.id.editText1);
• TextView r=(TextView) findViewById (R.id.textView3);
•
• double d=Double.parseDouble(n.getText().toString();
• if(d<0);
• {
• r.setAccessibilityDelegate(text("Negative");
• }
• else
•
• {
• r.setText("positive");
• }
•
• }
• 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.

Mais conteúdo relacionado

Destaque (6)

Myanmar jade
Myanmar jadeMyanmar jade
Myanmar jade
 
Java 2016-17 titles
Java 2016-17 titlesJava 2016-17 titles
Java 2016-17 titles
 
Pregunta 2 el mutuo descubrimiento entre los pueblos originarios y los espa...
Pregunta 2   el mutuo descubrimiento entre los pueblos originarios y los espa...Pregunta 2   el mutuo descubrimiento entre los pueblos originarios y los espa...
Pregunta 2 el mutuo descubrimiento entre los pueblos originarios y los espa...
 
Eesley research overview MS&E
Eesley research overview MS&EEesley research overview MS&E
Eesley research overview MS&E
 
Ancient Greek Theatre
Ancient Greek Theatre Ancient Greek Theatre
Ancient Greek Theatre
 
Pregnant Teens
Pregnant TeensPregnant Teens
Pregnant Teens
 

Mais de Azul AO (7)

Centro de estudio tecnológicos industrial
Centro  de estudio  tecnológicos industrialCentro  de estudio  tecnológicos industrial
Centro de estudio tecnológicos industrial
 
Presentación 14
Presentación 14Presentación 14
Presentación 14
 
Presentación 9
Presentación 9Presentación 9
Presentación 9
 
Presentación 12
Presentación 12Presentación 12
Presentación 12
 
Presentación11
Presentación11Presentación11
Presentación11
 
Adriana Presentación 9
Adriana Presentación 9Adriana Presentación 9
Adriana Presentación 9
 
Programa 7
Programa 7Programa 7
Programa 7
 

Presentación8

  • 1. Centro de Estudio Tecnológicos Industrial & Servicios 109. Nombre: ADRIANA LIZBETH AVILA ORTIZ. MARICARMEN AVILA ORTIZ GRADO & GRUPO: 4° “BM” PROFESORA: MARGARITA ROMERO ALVARADO. MATERIA:DESARROLLAR APLICACIONES MOVIL. AULA:31 CICLO ESCOLAR: FEB-JUN 2015.
  • 2.
  • 3. Dar clic en FILE.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13. • package com.example.ejemlf_else; • import android.os.Bundle; • import android.app.Activity; • import android.view.Menu; • import android.widget.TextView; • public class MainActivity extends Activity { • @Override • protected void onCreate(Bundle savedInstanceState) { • super.onCreate(savedInstanceState); • setContentView(R.layout.activity_main); • } • @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;
  • 14. • } • • public void calcular(View v) • EditText n=(EditText) findViewById (R.id.editText1); • TextView r=(TextView) findViewById (R.id.textView3); • • double d=Double.parseDouble(n.getText().toString(); • if(d<0); • { • r.setAccessibilityDelegate(text("Negative"); • } • else • • { • r.setText("positive"); • } • • }
  • 15.
  • 16.
  • 17.
  • 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.