I have an AlarmActivity with main.xml layout. And an alarm class that extends BroadcastReceive and a method onReceive. I want to get the value from EditText in main.xml into my onReceive method in the alarm class.
I have an AlarmActivity with main.xml layout. And an alarm class that extends BroadcastReceive
Share
Why don’t keep that value in SharedPreference and fetch it in Receiver… A reliable way to do… The current approach fails since you never know whether the Activity holding EditText lives or not..