Well, i am an Android newbie. I am trying to write an application which has one activity which starts another activity (Preference Activity), and one BoradcastReceiver. They are all in three different files. My question is: How to share Preferences betweens these components, e.g. how to read preferences that are set in Preference Activity from Broadcast Receiver?
Share
I have asked this same exact question before and here is the code I used:
The service that I start does nothing I just initiate one because I think it just helps the broadcast receiver work. Also this broadcast receiver is registered in my manifest like so:
Which starts on bootup requiring the permission
android.permission.RECEIVE_BOOT_COMPLETEDReference to my question can be found here
P.S. Welcome to stackoverflow