1

In android, if you want to write to a database in Activity A so that Activity B can read it, should you write to the database in onPause, onStop, or either method?

1
  • As long as it's written before Activity B starts, it really doesn't matter. Commented Feb 26, 2013 at 20:20

1 Answer 1

2

The better idea is to store that data just before firing Intent which starts Activity B.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.