I am trying to do something like, when I click on "Button_Set" Button on Activity 1, it should set the Edit Box of Activity 2. I know the below code gives the Null pointer exception and is expected to not work.
Any Idea how do I do this?
order.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
startActivity(new Intent(Activity1.this,Activity2.class));
setorder.setText("Welcome User");
}
});