android - pass values from one screen to another? -
I have to pass the data (string) from one screen to another on the screen when I click on the button from the first screen to the next screen Must give value.
You can pass additional data in the intention of starting another activity:
myIntent = new intent (view.getContext (), NextActivity.class); MyIntent.putExtra ("Additional", ID); StartActivityForResult (myIntent, 0);
You can use additional in the open system of your profile activity:
int id = getIntent (). GetStringExtra ("Extra");
If you are new to Android, this can help you read examples in Developer Docs, like
Comments
Post a Comment