Hi everyone
I wish to update my camera preview whenever there is a change in GPSlocation and Sensor Manager values, i am currently using two services for this purpose,but i am not able to receive the updates on my preview. Is it possible to combine these services into one and then use intents and broadcastReceivers? or any alternative is present?
Please guide me on this
Thanks
Hi everyone I wish to update my camera preview whenever there is a change
Share
Use just one
Serviceto keep track of GPS and Sensor data and use aResultReceiverorMessengerandMessageto pass back updates to theHandlerin yourActivity.Edit:
Sorry, forgot to mention that you pass the
ResultReceiverorMessageas a parcelable extra in theIntentyou use to start theService.