I'm developing an Android application that use the Alarm Manager.
The application consists of more than one Activity. Anytime the alarm goes off a new Activity is shown. This new activity receives some input from user and then I need to return this data. In more details: I structured my application in the following manner
the onCreate() of the MainActivity instantiate a class named ReminderManager and then calls a public method (in this class) that set an Alert (using Alarm Manager). Another class named AlarmReceiver extends BroadcastRecevier and its onResult() method calls a new Activity.
Now I want that this activity retunrs the data inserted from user.
Schematically:
MainActivity [onCreate] ---> ReminderManager [setAlarm] ---> onResult() ---> NewActivity
NewActivity, is the activity from which I want receive data inserted from user.
I know, I can't call startActivityForResult() from onResult() of BraodcastReceiver class, so, what can be the best way for passing data to RemiderManager?