Proyeto aplicación
-
Upload
yarker-castillo-del-rosario -
Category
Education
-
view
55 -
download
0
Transcript of Proyeto aplicación
![Page 1: Proyeto aplicación](https://reader037.fdocuments.ec/reader037/viewer/2022092700/586f87ff1a28ab54768b5a77/html5/thumbnails/1.jpg)
CETis 109«Rodríguez Martínez Aixa E.«Castillo del Rosario Yarker F.
4°Am Programación
M.C.A. Margarita Romero Alvarado
Avance del proyecto
![Page 2: Proyeto aplicación](https://reader037.fdocuments.ec/reader037/viewer/2022092700/586f87ff1a28ab54768b5a77/html5/thumbnails/2.jpg)
AppYA
Crear una aplicación con android Eclipse
![Page 3: Proyeto aplicación](https://reader037.fdocuments.ec/reader037/viewer/2022092700/586f87ff1a28ab54768b5a77/html5/thumbnails/3.jpg)
AppYA
“ Tu tecnología siempre contigo “
![Page 4: Proyeto aplicación](https://reader037.fdocuments.ec/reader037/viewer/2022092700/586f87ff1a28ab54768b5a77/html5/thumbnails/4.jpg)
AppYA
La idea principal era crear un juego, por diferentes razones decidimos hacer una aplicación diferente a lo pensado.
La aplicación se llama EditTextTest la estructura es muy sencilla pero funciona bien .
En si la idea oficial es que facilite la búsqueda de datos.
Idea:
![Page 5: Proyeto aplicación](https://reader037.fdocuments.ec/reader037/viewer/2022092700/586f87ff1a28ab54768b5a77/html5/thumbnails/5.jpg)
AppYA
El problema que solucionaría seria que te ayuda a agendar números importantes para no olvidarlos, al igual que contraseñas, en dado caso que se necesiten EditTextTest te las facilitara rápidamente.
Que soluciona tu problema:
![Page 6: Proyeto aplicación](https://reader037.fdocuments.ec/reader037/viewer/2022092700/586f87ff1a28ab54768b5a77/html5/thumbnails/6.jpg)
AppYA
EditTextTest en si es una tipo agenda, guarda números y contraseñas de varios usuarios
Herramienta útil en caso de necesitar alguna contraseña o el numero telefónico de alguien
¿Qué es?
![Page 7: Proyeto aplicación](https://reader037.fdocuments.ec/reader037/viewer/2022092700/586f87ff1a28ab54768b5a77/html5/thumbnails/7.jpg)
AppYA
La forma de manejarlo es muy especifica, ya que no te permite ingresar mas de los dígitos que se requieren
Se ingresan los datos en las casillas que lo indican
Manejo de EditTextTest:
![Page 8: Proyeto aplicación](https://reader037.fdocuments.ec/reader037/viewer/2022092700/586f87ff1a28ab54768b5a77/html5/thumbnails/8.jpg)
AppYA
Si se presiona Display el usuario puede ver los valores que él / ella ha llenado con texto y dígitos
Por otro lado si se presiona Next una nueva acción será invocado y los valores de contraseña y teléfonos EditTexts se muestran en la pantalla.
Manejo de EditTextTest:
![Page 9: Proyeto aplicación](https://reader037.fdocuments.ec/reader037/viewer/2022092700/586f87ff1a28ab54768b5a77/html5/thumbnails/9.jpg)
AppYA
package com.javacodegeeks.android.edittexttest;
import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.Color;
CÓDIGO:
![Page 10: Proyeto aplicación](https://reader037.fdocuments.ec/reader037/viewer/2022092700/586f87ff1a28ab54768b5a77/html5/thumbnails/10.jpg)
AppYA
public class MainActivity extends Activity { private EditText input, digits, pass, phone; private Button next, display; private Context context; @Override protected void onCreate(Bundle
savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);
context = this.getApplicationContext();
![Page 11: Proyeto aplicación](https://reader037.fdocuments.ec/reader037/viewer/2022092700/586f87ff1a28ab54768b5a77/html5/thumbnails/11.jpg)
AppYA
input = (EditText) findViewById(R.id.editInp); digits = (EditText) findViewById(R.id.editDig); pass = (EditText) findViewById(R.id.editPass); phone = (EditText) findViewById(R.id.editPhone);
phone.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Toast msg = Toast.makeText(getBaseContext(), "Only
10 numbers", Toast.LENGTH_LONG); msg.show();
![Page 12: Proyeto aplicación](https://reader037.fdocuments.ec/reader037/viewer/2022092700/586f87ff1a28ab54768b5a77/html5/thumbnails/12.jpg)
AppYA
} }); next = (Button) findViewById(R.id.nextBtn); next.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent myIntent = new Intent(context,
NextScreen.class); myIntent.putExtra("pass", pass.getText().toString()); myIntent.putExtra("phone", phone.getText().toString()); startActivity(myIntent);
} });
![Page 13: Proyeto aplicación](https://reader037.fdocuments.ec/reader037/viewer/2022092700/586f87ff1a28ab54768b5a77/html5/thumbnails/13.jpg)
AppYA
display = (Button) findViewById(R.id.displayBtn);
display.setOnClickListener(new OnClickListener() {
@Override public void onClick(View v) { input.setTextColor(Color.RED); String displayString = "You typed '" +
input.getText().toString() + "' as input text and '" + digits.getText().toString() + "' as digits";
Toast msg = Toast.makeText(getBaseContext(), displayString, Toast.LENGTH_LONG);
msg.show(); } }); } }