I know how to get the input from EditText
and send it to the next activity using:
btn_blob.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(getApplicationContext(), NextActivity.class);
intent.putExtra((EXTRA_PRIZE), prize_detail);
startActivity(intent);
}
});
But, I only get the EditText input in this NextActivity.java
. How can I get and display the EditText input with a textView in more than one activity? Also, in the header of the DrawerLayout
, there should be a TextView with this content.
答案 0 :(得分:0)
So, you want to share text written in edittext of your activity across multiple activity.
now, main things to know is how to pass data (text written in your edittext of your activity) across multiple activity.
there can be many ways to do it. Use based on your project structure and requirement.