Documentos de Académico
Documentos de Profesional
Documentos de Cultura
APLICACIONES MÓVILES
Integrantes: Michelle Troncoso, Jorge Luis Cujano NRC: 4295
Docente: Ing. Doris Chicaiza.
CÓDIGO
public class MainActivity extends AppCompatActivity {
//declaración de variables
Button btncalcular;
EditText txtnum1, txtnum2, txtnum3,txtnum4, txtHost, txtClase,
txtMascara,txtHostResultado;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//mapeo de objetos
txtnum1=findViewById(R.id.et_num1);
txtnum2=findViewById(R.id.et_num2);
txtnum3=findViewById(R.id.et_num3);
txtnum4=findViewById(R.id.et_num4);
txtHost=findViewById(R.id.et_host);
btncalcular=findViewById(R.id.bt_calcular);
txtClase=findViewById(R.id.et_clase);
txtHostResultado=findViewById(R.id.et_host_res);
txtMascara=findViewById(R.id.et_mascara);
}
//crear metodo calcular mascara.
public void calcular(View view){
String rangoIP= txtnum1.getText().toString();
UNIVERSIDAD DE LAS FUERZAS ARMADAS ESPE
CARRERA DE REDES Y TELECOMUNICACIONES
PROGRAMA EMULADO
UNIVERSIDAD DE LAS FUERZAS ARMADAS ESPE
CARRERA DE REDES Y TELECOMUNICACIONES