Skip to main content

New Video - Android: Getting Latitude and Longitude


Link to video: https://youtu.be/fouAGhpq8Ss

This simple app displays the latitude and longitude coordinates of the phone using Google's location services API and the getLastLocation() function as of June 2018. The code is on GitHub: https://github.com/bluepandadev/Location2

I was following along with Udacity's location class when I came across a deprecated method. Since Udacity doesn't have an updated video for it yet, I decided I'd try making one.  Let me know if you have any suggestions on how to do this better.

Link to the Udacity class, Google Location Services on Android: https://www.udacity.com/course/google-location-services-on-android--ud876-1

Here's a training doc on location from the google dev website: https://developer.android.com/training/location/

And here's the Google APIs for Android, LocationServices page on the google developer website for more information: https://developers.google.com/android/reference/com/google/android/gms/location/LocationServices

Comments

Popular posts from this blog

Build the life you want to live. The simple things matter.

"Build the life you want to live" is a phrase that changed my life.  I learned it while stuck in a soul-sucking accounting job. I was feeling disillusioned with my new career. I wanted to help people directly, not make rich corporations even richer.  I made a pivot. I learned to code Android apps and uploaded a handful of them to the Google Play Store.  Coding didn't stick as a new career path for me, but of all the things I've made in the past decade, those little apps still make me so proud and happy.  I finally felt like I was helping people. I received a lot of nice feedback from people all over the world. One person even told me they used my little Change Calculator to help their kid get a job. I made that app 8 years ago, and I love to see people are still using it. I'm learning that "building the life I want to live"  doesn't mean I have to wait for some grand moment when everything finally comes together. Even the small stuff I'm building...

New Etsy item! Cute Panda Earrings by Amanda Roos

  Check them out in my Etsy shop: https://amandaroosart.etsy.com

Impeach and remove Trump. No more endless war.

 The Trump administration attacked Iran today. This is not ok. Protest tomorrow, Sunday, June 22, 2025. Anywhere. Noon. Make a sign. Impeach and remove Trump now.  Call your senators and representatives. 5calls.org makes it easy. Send physical mail. Don't let up.  War is expensive.  Not just money.  HUMAN LIVES. The sign I painted: