Can i get data from shared preferences inside a service
|November 26, 2012||Posted by forumadmin under TechQns||
I’m developing an android application. I’m using android 2.2
In my application I am capturing GPS data and sending it to service with the 1 hour time interval. If user exits from application it’s also working (it is required).
I’m using 2 services (User defined), one for capturing GPS data and other for sending to the server.
Here my doubt
In service, can we use shared prefrences.
If we store any data in shared preferences in any activity of the application, will we be able to use that data in service with the help of shared preferences?
All are welcome to give their ideas.
|Asked By – SIVAKUMAR.J||Read Answers|