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

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -