Get GPS Location in a Broadcast Receiver

I want to get** GPS Location** after specific time,

i used Broadcast Receiver to fire my code of get location on time and thats worked.

I used Example of xamarin.mobile .geolocation library

but the problem is the code work with Activity.OnRunUiThread but in BroadcastReceiver I **cant **do it.

my question :: is there any alternative thread or way -if available- in Broadcast Receiver

if no please give me a way to get logation in the BroadcastReceiver,

I have I Idea but I dont know if its possible and how to implement which is start an Activity Responsible for getting the location and return result to my Receiver then finish that activity

please help me in coding it

Sign In or Register to comment.