Hi, first of all I'm starting with this android programming. The point is the following. I am trying to create an application based on my basic knowledge for the registration of a telephone number which, once registered, can send pre-defined messages. The point is as follows, I created an activity for the record and one for the "Panel" . Well, my problem is that when I register the number of my activity, when I want the values to pass to the textView of the panel, it is not shown to me.
Registration activity
SharedPreferences dregTele = getPreferences(context.MODE_PRIVATE);
SharedPreferences.Editor editor = dregTele.edit();
editor.putString("DNumero", nTelefono.getText().toString()); //REGISTRO NUMERO TELEFONICO
SharedPreferences dregName = getPreferences(context.MODE_PRIVATE);
SharedPreferences.Editor editor2 = dregName.edit();
editor2.putString("DName", nTransmisor.getText().toString()); //REGISTRO DEL NOMBRE DEL TRANSMISOR
editor.commit();
editor2.commit();
Intent i = new Intent(Registro.this, Seleccion.class);
Bundle bundle = new Bundle();
bundle.putString("DNumero","");
bundle.putString("DName","");
i.putExtras(bundle);
startActivity(i);
Use the Shared, because as I have seen, it is used for the storage of internal data of the telephone. Now, when I make the transition to the activity two that would be the panel it only shows me what is put in the key value of the bundle.putString
bundle.putString("DNumero","");
bundle.putString("DName","");
and it does not show what I put in the editText. The point is, that something must be entered through the editText. Store it through the SharpedPreferences and send it to the panel activity, and use them in that activity. Thank you!