I\'m trying to open a specific activity when the user clicks the notification, when the app is in the background, with some extra parameters. I\'m using the click_acti
Add addition information to Intent that you use to start Activity, and in activity in method onCreate use getIntent().getExtras() to use them. For example:
Starting activity:
Intent intent = new Intent(context, TargetActivity.class);
Bundle bundle = new Bundle();
bundle.putString("extraName", "extraValue");
intent.putExtras(bundle);
startActivity(intent);
In activity
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle bundle = getIntent().getExtras();
String value = bundle.getString("extraName");
....
}