-2

I want to transfer text from one activity to another and also need to save that text in local database. But it should ask to insert text for first time only. Please assist.

Markus Kauppinen
  • 3,025
  • 4
  • 20
  • 30
Coder Me
  • 11
  • 2

1 Answers1

0

One Activity

Intent intent = new Intent(OneActivity.this, SeconActivity.class);
intent.putExtra("key","value");
startActivity(intent);

Second Activity

String sessionId = getIntent().getStringExtra("key");