Android Programming and Technical Programming Technical

How to get phone locations? which is better network provider or GPS provider?

Options
1) You can use satellite to fetch your locations.
2) You can either use your cell tower information or WiFi-information to know your phone location.
3)using option 1 is faster and more accurate than second option, it also takes less battery power.
4)using option 2 is faster than option1, but how ever it will not give you exact location compared to option 1. takes less battery power.

Read Solution (Total 1)

Android Other Question

What will happen if a sensor is not unregistered, after using it for some time?

Options
1) Android will automatically switch off that sensor and stops it.
2) Nothing will happen, but that sensor will keep running in background, with this no side-effect occurs.
3)that sensor will keep running in the background, and consumes lot of battery power un-necessarily.
4) Program will crash
How to find whether GPS is disabled in the phone

Options
1) If it is disabled onStatusChanged() will be called with provider name.
2) if it is disabled onProviderDisabled() will be called with provider name.
3)either one of the option 1 or 2 will happen
4) There is no way to find it out.