@Override
    public void onCreate(Bundle savedInstanceState) {
        Log.d(TAG, "Creating NotificationClickActivity");
        super.onCreate(savedInstanceState);

        int notificationId = getIntent().getExtras().getInt(Notification.EXTRA_ID);
        Log.d(TAG, "notification clicked, id=" + notificationId);

        Notification notification = Notification.getFromSharedPreferences(getApplicationContext(), notificationId);

        // This should never happen. A notification always be available in the SharedPreferences
        // when the user clicks on it.
        // If the notification is not stored anymore in the SharedPreferences, just open the app
        if (notification == null) {
            LocalNotification.launchApp(getApplicationContext());
            finish();
            return;
        }

        // Gets input from action and sets it in data
        String action = getIntent().getExtras().getString(Action.EXTRA_ID, Action.CLICK_ACTION_ID);
        JSONObject data = new JSONObject();
        setTextInput(action, data);
            
        if (getIntent().getBooleanExtra(Options.EXTRA_LAUNCH, true)) LocalNotification.launchApp(getApplicationContext());

        LocalNotification.fireEvent(action, notification, data);

        Options options = notification.getOptions();

        if (options.isAndroidOngoing()) return;

        // Will remove the notification from SharedPreferences if it is the last one
        notification.clear();

        // Finish this activity, so the unterlying app activity is shown
        finish();
    }
Activity started when local notification was clicked by the user.
@param notification Wrapper around the local notification.
@param bundle The bundled extras.
src/android/NotificationClickActivity.java