How to get current user location using GPS in android apps


Author: Indragni Soft Solutions
33589 View
5m 32s Lenght
49 Rating


How to get current user location using GPS in android apps Subscribe To My Channel and Get More Great Tutorials http://www.youtube.com/subscription_center?add_user=sandeepbhandari1 Ask me A Question http://bit.ly/1MBekaP What makes the #Android OS so popular , is its nearly unlimited features. Android provides development involving GPS location tracking. People who are using this feature in there android development must be familiar with the Location Manager Class and the Location listener Interface. The location manager class let you access to the system location services , this is always combined with the location listener interface to retrieve notifications from the location manager when the user’s location has changed. This tutorial covers how to integrate GPS location feature in your apps, you will learn how to get the current user location and get the new one if it’s already been changed via location listener. The result application can be tested in different ways. If you want to test on a real device you can do it directly by installing it. If you don’t have one, you can test the application using the Genymotion emulator, however you must have the GPS activated on it. The source code is available at http://www.indragni.com/android/AndroidCurrentLocation.zip ----------------------------------------­------------ Stay connected to Indragni Soft Solutions: Website: http://www.indragni.com Facebook: https://www.facebook.com/javaexper Twitter: https://twitter.com/indragnisoft Google+: https://plus.google.com/u/0/b/114543155372255472922/114543155372255472922/posts?pageId=114543155372255472922 How to get current user location using GPS in android apps


Comments

  1. wtf... even with you it didnt work!!! come on delete this crap!
  2. This is shittt!!
  3. My run without error but does not show the coordinates
  4. if not works try this :

    LocationManager myManager;
    MyLocListener loc;
    loc = new MyLocListener();
    myManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);

    if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
    return;
    }
    myManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, loc);
  5. need help it doesn't work...
  6. I have a question the GPS is use network or PhoneGps?
  7. Heyguys... we are dump, right?
  8. thanks, got it to work
  9. anyone else whom it doesn'working
  10. Does not work at all.
  11. thanks n great video
  12. this is shit
  13. Hi, nice video, can you explain how to implement this as a service?