I think you're confusing the state which is saved when an Activity
is paused and the data delivered to the Activity
via an Intent
.
You want to have something like:
Bundle extras = getIntent().getExtras();
id = extras.getLong(TasksDBAdapter.KEY_ID);
The Bundle
passed to onCreate()
is the Bundle
you saved with the onSaveInstanceState()
method and is not the extras Bundle
you added to your Intent
.