Moving from one activity to another activity in android studio -


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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -