InterviewSolution
Saved Bookmarks
| 1. |
Can you please explain in detail what difference between Async Task and Intent Service. Also explain the situation where we have to use Async Task and where have to use Intent Service. |
|
Answer» When we will try to display our CURRENT location in google map android is giving us one api to use the name as google map api. For displaying the last location we need to override one method name as getLastLocation(). The getLastLocation() method returns a task that we can use to GET a Location object with the latitude and longitude coordinates of a geographic location. Sometimes it happens when the location object may be null. There are below situations when we will get null from getLastLocation() method:
|
|