Android in a simple activity (Edittext, image) data is not displayed

I am very new to Android and with this name is a very basic error. From the start menu a very basic activity, get the name and the image of the user. The data is saved in the room without problem, when we call again the activity appears empty. When running in Debug mode I can see that the data is read from the database and when I get to the key that closes inCreate the data are loaded into the variables, but pressing F7 again the design appears empty. If I execute it step by step, sometimes the name and the image appear before I finish arriving at the end. The data is but is not made as it appears. I already appreciate any help you can give me.

Design


android: id = "@ + id / edtcontrol"
Android: layout_width = "match_parent"
Android: layout_height = "match_parent"
tools: context = ". activity.mysetting">







Code.java

                @Cancel
public void onCreate (@Nullable Bundle savedInstanceState) {
super.onCreate (savedInstanceState);
setContentView (R.layout.mysetting);

submit = (Button) findViewById (R.id.submit);
edttextname = (EditText) findViewById (R.id.edittext_name);

img_user = (RoundRectCornerImageView) findViewById (R.id.imguser);

setVdata ();

submit.setOnClickListener (new View.OnClickListener () {
@Cancel
public vacuum onClick (see v) {
addvnow ();
Toast.makeText (mysetting.this, "Saved", Toast.LENGTH_SHORT) .show ();
}
});

img_user.setOnClickListener (new View.OnClickListener () {
@Cancel
public vacuum onClick (see v) {

selectimguser = true;
EasyImage.openChooserWithDocuments (mysetting.this,
"Choose your image", 0);
}
});

}


@Cancel
public void onActivityResult (int requestCode, int resultCode, Intent data) {
super.onActivityResult (requestCode, resultCode, data);

EasyImage.handleActivityResult (requestCode, resultCode, data, mysetting.this, new DefaultCallback () {

@Cancel
Public void onImagesPicked (List imagesFiles, source EasyImage.ImageSource, int type) {
// Handle images
if (selectimgvet) {
imguser = imagesFiles.get (0);
displaySelectedImage2 (false);

img_user.setFocusable (true);
}
}

@Cancel
public void onImagePickerError (Exception e, source EasyImage.ImageSource, int type) {
// Some error handling
}
});
}

private void displaySelectedImage2 (Boolean compression) {
try {

Bitmap myBitmap = BitmapFactory.decodeFile (imgvet.getAbsolutePath ());
if (compress) {
myBitmap = CompressAndSaveImage.ScaledPhotoBitmapToFile (myBitmap, new ByteArrayOutputStream ());
}
if (myBitmap == null) {
img_user.setImageResource (R.drawable.placeholder);

} else {
img_user.setImageBitmap (myBitmap);
}

} catch (exception e) {
img_user.setImageResource (R.drawable.placeholder);

}

}


public void setVdata () {
new AsyncTask <Void, Void, List> () {
@Cancel
Protected list doInBackground (Void ... voids) {
try {
vetdataModel = AppDatabase.getInstance (mysetting.this) .vetdataDao (). loadset ();


} catch (exception e) {
}
zero return

}
}.run();

if (vetdataModel == null) {
// mysetting.this.finish ();
he came back;
}

edttextname.setText (vetdataModel.getname ());

try {
System.out.println ("IMAGE2ES:" + vetdataModel.getImguser (). Length);
if (vetdataModel.getImguser (). length> 0) {
imguser = Methods.byteArrayToFile (mysetting.this, vetdataModel.getImguser (), "2");

} else {
imguser = null;
}
System.out.println ("IMAGE2ES @:" + imguser);
} catch (exception e) {
}
displaySelectedImage2 (false);

}

Android Send text to EditText of another Application for the package and id

I have difficulties, I search the internet for something that will help me send a text from my application to another application.
Let's say I'm going to use facebook as an example:

1 Send Email to EditText on facebook where is this E-mail
2 Send Password to EditText of facebook where is the Password
3 Click on the registration button.

Help please