How can I send data from one activity (intent) to another?
I use this code to send data:
Intent i=new Intent(context,SendMessage.class);
i.putExtra("id", user.getUserAccountId()+"");
i.putExtra("name", user.getUserFullName());
context.startActivity(i);
转载于:https://stackoverflow.com/questions/4233873/how-do-i-get-extra-data-from-intent-on-android