SlideShare a Scribd company logo
1 of 21
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.
PASO 1 HABRE EL PROGRAMA.
PASO 2
Dar clic en FILE.
PASO 3 DAR CLIC EN NEW Y ANDROID
APLICATION PROJECT.
PASO 4 PONER NOMBRE DEL PROJECTO Y DAR CLIC
FINISH
PASO 5 DAR CLIC EN NEXT Y EN LA ULTAMA TABLA DAR
CLIC EN FINISH.
PASO 6 ELIMINAR HOLA MUNDO Y ARASTRAR UN4 BUTTON QUE
DIGAN OFF DE FORM WIDGETS
PASO 7 PONIENDO UN MEDIUM Y TEXT:NUMERO BNARIO
PASO 8 PONIENDO TEXTVIEW Y EN ID: @+ID/RES
HINT:RESULTADO
PASO 9 PONER UN MEDIUM Y EN TEXT:NUMERO DECIMAL.
PASO 10 PONER UN BUTTON EN
TEXT:PROCESAR Y EN ONCLICK:PROCESAR.
PASO 11 DAR CLIC EN SCR, DAR CLIC EN, DAR CLIC EN MAINACTIVITY.JAVA
LUEGO TE APARESERA UNA CODIFICACION TENDRAS QUE PONER LO QUE
FALTE ACONTINUACION TE DEJAREMOS LOS DATOS QUE FALTEN.
CODIFICACION.
• package com.example.buttontoggle;
• import android.os.Bundle;
• import android.app.Activity;
• import android.view.Menu;
• import android.view.View;
• import android.widget.TextView;
• import android.widget.ToggleButton;
• 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 procesar (View view){
• ToggleButton t1=(ToggleButton) findViewById(R.id.toggleButton1);
• ToggleButton t2=(ToggleButton) findViewById(R.id.toggleButton2);
• ToggleButton t3=(ToggleButton) findViewById(R.id.toggleButton3);
• ToggleButton t4=(ToggleButton) findViewById(R.id.toggleButton4);
• TextView rb=(TextView) findViewById(R.id.textView2);
• TextView rd=(TextView) findViewById(R.id.textView4);
•
• String sol="";
• int op=0,po=0;
•
• if (t1.isChecked()==true)
• sol+='1';
• else
• sol+='1';
• if (t2.isChecked()==true)
• sol+='1';
• else
• sol+='1';
• if (t3.isChecked()==true)
• sol+='1';
• else
• sol+='1';
• if (t4.isChecked()==true)
• sol+='1';
• else
• sol+='0';
• rb.setText(sol);
•
• for(int poan=sol.length()-1;poan>=0;poan--){
• if(sol.charAt(poan)=='1'){
• op+=1*Math.pow(2, po);
•
• }
• po++;
•
• }
• rd.setText(String.valueOf(op));
• }
• }
PASO 12 DAR CLIC DERECHO EN RUN, DANDO CLIC
EN RUN AS, LUEGO DANDO CLIC EN ANDROID
APPLICACUION.
Y ESPERAREMOS UNOS SEGUNDOS Y APARECERÁ ESTA
PANTALLA Y DESPUÉS LO CORREREMOS
PASO 13 EL RESULTADO DEL PROGRAMA:
COMENTARIO PEROSNAL:
• En este programa es facil ya que solo
es de seguir paso por pasos indicados
para lograr el resultado.

More Related Content

Viewers also liked

Programlanabilir DDRx Denetleyicileri
Programlanabilir DDRx DenetleyicileriProgramlanabilir DDRx Denetleyicileri
Programlanabilir DDRx DenetleyicileriTalha Kabakus
 
Mobile and Web App Testing for Visual Studio Teams
Mobile and Web App Testing for Visual Studio TeamsMobile and Web App Testing for Visual Studio Teams
Mobile and Web App Testing for Visual Studio TeamsPerfecto by Perforce
 
TFS Agile Presenation v1.1
TFS Agile Presenation v1.1TFS Agile Presenation v1.1
TFS Agile Presenation v1.1Amitabh Barua
 
Thread-safe .NET durch Immutables
Thread-safe .NET durch ImmutablesThread-safe .NET durch Immutables
Thread-safe .NET durch ImmutablesRobin Sedlaczek
 
TPC Corporate Profile --Finalize (1)
TPC Corporate Profile --Finalize (1)TPC Corporate Profile --Finalize (1)
TPC Corporate Profile --Finalize (1)Danish Mahanga
 
Hands on Windows Azure
Hands on Windows AzureHands on Windows Azure
Hands on Windows AzureVitor Tomaz
 
Looper case study
Looper case studyLooper case study
Looper case studynBrownie
 
Team Foundation Server 2012 Reporting
Team Foundation Server 2012 ReportingTeam Foundation Server 2012 Reporting
Team Foundation Server 2012 ReportingSteve Lange
 
Team Foundation Server - Tracking & Reporting
Team Foundation Server - Tracking & ReportingTeam Foundation Server - Tracking & Reporting
Team Foundation Server - Tracking & ReportingSteve Lange
 

Viewers also liked (11)

Programlanabilir DDRx Denetleyicileri
Programlanabilir DDRx DenetleyicileriProgramlanabilir DDRx Denetleyicileri
Programlanabilir DDRx Denetleyicileri
 
Mobile and Web App Testing for Visual Studio Teams
Mobile and Web App Testing for Visual Studio TeamsMobile and Web App Testing for Visual Studio Teams
Mobile and Web App Testing for Visual Studio Teams
 
TFS Agile Presenation v1.1
TFS Agile Presenation v1.1TFS Agile Presenation v1.1
TFS Agile Presenation v1.1
 
Thread-safe .NET durch Immutables
Thread-safe .NET durch ImmutablesThread-safe .NET durch Immutables
Thread-safe .NET durch Immutables
 
Jyotish Shastri
Jyotish ShastriJyotish Shastri
Jyotish Shastri
 
TPC Corporate Profile --Finalize (1)
TPC Corporate Profile --Finalize (1)TPC Corporate Profile --Finalize (1)
TPC Corporate Profile --Finalize (1)
 
Hands on Windows Azure
Hands on Windows AzureHands on Windows Azure
Hands on Windows Azure
 
Candiani poster sif_
Candiani poster sif_Candiani poster sif_
Candiani poster sif_
 
Looper case study
Looper case studyLooper case study
Looper case study
 
Team Foundation Server 2012 Reporting
Team Foundation Server 2012 ReportingTeam Foundation Server 2012 Reporting
Team Foundation Server 2012 Reporting
 
Team Foundation Server - Tracking & Reporting
Team Foundation Server - Tracking & ReportingTeam Foundation Server - Tracking & Reporting
Team Foundation Server - Tracking & Reporting
 

More from Azul AO

Centro de estudio tecnológicos industrial
Centro  de estudio  tecnológicos industrialCentro  de estudio  tecnológicos industrial
Centro de estudio tecnológicos industrialAzul AO
 
Presentación 13
Presentación 13Presentación 13
Presentación 13Azul AO
 
Presentación 9
Presentación 9Presentación 9
Presentación 9Azul AO
 
Presentación 12
Presentación 12Presentación 12
Presentación 12Azul AO
 
Presentación11
Presentación11Presentación11
Presentación11Azul AO
 
Adriana Presentación 9
Adriana Presentación 9Adriana Presentación 9
Adriana Presentación 9Azul AO
 
Presentación8
Presentación8Presentación8
Presentación8Azul AO
 
Programa 7
Programa 7Programa 7
Programa 7Azul AO
 

More from Azul AO (8)

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 13
Presentación 13Presentación 13
Presentación 13
 
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
 
Presentación8
Presentación8Presentación8
Presentación8
 
Programa 7
Programa 7Programa 7
Programa 7
 

Presentación 14

  • 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. PASO 1 HABRE EL PROGRAMA.
  • 3. PASO 2 Dar clic en FILE.
  • 4. PASO 3 DAR CLIC EN NEW Y ANDROID APLICATION PROJECT.
  • 5. PASO 4 PONER NOMBRE DEL PROJECTO Y DAR CLIC FINISH
  • 6. PASO 5 DAR CLIC EN NEXT Y EN LA ULTAMA TABLA DAR CLIC EN FINISH.
  • 7. PASO 6 ELIMINAR HOLA MUNDO Y ARASTRAR UN4 BUTTON QUE DIGAN OFF DE FORM WIDGETS
  • 8. PASO 7 PONIENDO UN MEDIUM Y TEXT:NUMERO BNARIO
  • 9. PASO 8 PONIENDO TEXTVIEW Y EN ID: @+ID/RES HINT:RESULTADO
  • 10. PASO 9 PONER UN MEDIUM Y EN TEXT:NUMERO DECIMAL.
  • 11. PASO 10 PONER UN BUTTON EN TEXT:PROCESAR Y EN ONCLICK:PROCESAR.
  • 12. PASO 11 DAR CLIC EN SCR, DAR CLIC EN, DAR CLIC EN MAINACTIVITY.JAVA LUEGO TE APARESERA UNA CODIFICACION TENDRAS QUE PONER LO QUE FALTE ACONTINUACION TE DEJAREMOS LOS DATOS QUE FALTEN.
  • 13. CODIFICACION. • package com.example.buttontoggle; • import android.os.Bundle; • import android.app.Activity; • import android.view.Menu; • import android.view.View; • import android.widget.TextView; • import android.widget.ToggleButton; • public class MainActivity extends Activity { • @Override • protected void onCreate(Bundle savedInstanceState) { • super.onCreate(savedInstanceState); • setContentView(R.layout.activity_main); • }
  • 14. • @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 procesar (View view){ • ToggleButton t1=(ToggleButton) findViewById(R.id.toggleButton1); • ToggleButton t2=(ToggleButton) findViewById(R.id.toggleButton2); • ToggleButton t3=(ToggleButton) findViewById(R.id.toggleButton3); • ToggleButton t4=(ToggleButton) findViewById(R.id.toggleButton4);
  • 15. • TextView rb=(TextView) findViewById(R.id.textView2); • TextView rd=(TextView) findViewById(R.id.textView4); • • String sol=""; • int op=0,po=0; • • if (t1.isChecked()==true) • sol+='1'; • else • sol+='1'; • if (t2.isChecked()==true) • sol+='1';
  • 16. • else • sol+='1'; • if (t3.isChecked()==true) • sol+='1'; • else • sol+='1'; • if (t4.isChecked()==true) • sol+='1'; • else • sol+='0';
  • 17. • rb.setText(sol); • • for(int poan=sol.length()-1;poan>=0;poan--){ • if(sol.charAt(poan)=='1'){ • op+=1*Math.pow(2, po); • • } • po++; • • } • rd.setText(String.valueOf(op)); • } • }
  • 18. PASO 12 DAR CLIC DERECHO EN RUN, DANDO CLIC EN RUN AS, LUEGO DANDO CLIC EN ANDROID APPLICACUION.
  • 19. Y ESPERAREMOS UNOS SEGUNDOS Y APARECERÁ ESTA PANTALLA Y DESPUÉS LO CORREREMOS
  • 20. PASO 13 EL RESULTADO DEL PROGRAMA:
  • 21. COMENTARIO PEROSNAL: • En este programa es facil ya que solo es de seguir paso por pasos indicados para lograr el resultado.