Moving from one activity to another activity in android studio -
this question has answer here:
i'm writing application in android studio ide shows models,brands ,prices , etc of cars , want move 1 activity one.can use putextra?if yes wonder if tell me how can use it.
you can pass data between activities in easiest way this.
in first activity use out send data
intent intent = new intent(getbasecontext(), signoutactivity.class); intent.putextra("your_data_key", data); startactivity(intent);
access intent on next activity this
string s = getintent().getstringextra("your_data_key");
Comments
Post a Comment