i am working in android. i am designing an application which is based on GPS location of my device.
Whenever i press any event key in my application i need to check whether my device is getting GPS location all the time or not.
Please help me for this. you may provide weblink for this.
Thank you in advance.
You should use this type of code:-
and design you class like this:-