programa 2
TRANSCRIPT
![Page 1: Programa 2](https://reader035.vdocumento.com/reader035/viewer/2022062515/55c3dc85bb61eb3a348b484f/html5/thumbnails/1.jpg)
DELIA ABIGAIL CASTILLO GARAYDESARROLLA APLICACIONES MÓVILES4ºBM AULA:31PASOS PARA CREAR EL PROGRAMA 2º
![Page 2: Programa 2](https://reader035.vdocumento.com/reader035/viewer/2022062515/55c3dc85bb61eb3a348b484f/html5/thumbnails/2.jpg)
Ya que abrimos eclipse y nombramos el programa lo primero que haremos es eliminar el «hola mundo»
![Page 3: Programa 2](https://reader035.vdocumento.com/reader035/viewer/2022062515/55c3dc85bb61eb3a348b484f/html5/thumbnails/3.jpg)
Después agregamos un cuadro de texto mediano y modificamos el nombre en el campo texto de las propiedades y agregamos al id «@+id/textView1»
![Page 4: Programa 2](https://reader035.vdocumento.com/reader035/viewer/2022062515/55c3dc85bb61eb3a348b484f/html5/thumbnails/4.jpg)
Ahora agregamos un texto plano y modificamos las propiedades del id «@+id/num1»
![Page 5: Programa 2](https://reader035.vdocumento.com/reader035/viewer/2022062515/55c3dc85bb61eb3a348b484f/html5/thumbnails/5.jpg)
Agregamos otro texto mediano y modificamos en las propiedades el id «@+id/textView2» y también en el texto le cambiamos a «Segundo Número»
![Page 6: Programa 2](https://reader035.vdocumento.com/reader035/viewer/2022062515/55c3dc85bb61eb3a348b484f/html5/thumbnails/6.jpg)
También agregamos otro texto plano y cambiamos en propiedades el id «@+id/num2»:
![Page 7: Programa 2](https://reader035.vdocumento.com/reader035/viewer/2022062515/55c3dc85bb61eb3a348b484f/html5/thumbnails/7.jpg)
El siguiente paso es agregar un botón y cambiarle el nombre en propiedades:
![Page 8: Programa 2](https://reader035.vdocumento.com/reader035/viewer/2022062515/55c3dc85bb61eb3a348b484f/html5/thumbnails/8.jpg)
Y también en la propiedad de On clickle escribimos «sumar»
![Page 9: Programa 2](https://reader035.vdocumento.com/reader035/viewer/2022062515/55c3dc85bb61eb3a348b484f/html5/thumbnails/9.jpg)
Después agregamos otro texto mediano y modificamos el id «@+id/res» y en el campo Hint le agregamos «resultado»
![Page 10: Programa 2](https://reader035.vdocumento.com/reader035/viewer/2022062515/55c3dc85bb61eb3a348b484f/html5/thumbnails/10.jpg)
Después modificamos la codificación y agregamos nuevos códigos:
![Page 11: Programa 2](https://reader035.vdocumento.com/reader035/viewer/2022062515/55c3dc85bb61eb3a348b484f/html5/thumbnails/11.jpg)
Al final se ejecutara así: