Skip to content Skip to sidebar Skip to footer

Sending Bundle With Explicit Intents

I want to send and Intent from my library project to my working project (that has that library attached with it.). Here I am calling my activity from my library project like this:

Solution 1:

As its is singleInstance I just see you edit the answer.

Override this method

@Override
protected void onNewIntent(Intent intent) {
    super.onNewIntent(intent);
    setIntent(intent);
    //now getIntent() should always return the last received intent
}

Solution 2:

Getting data with:

String mBookId = getIntent().getStringExtra("selectedbook_id");

Post a Comment for "Sending Bundle With Explicit Intents"