Amirul Momenin7671573
Posts: 0
Joined: Fri Jul 31, 2015 11:16 am

GPS

How may I get Android Device GPS location (latitude and logitude)
I need GEO enabled lat long

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

GPS

Hi -

You can start from here: https://devcenter.appery.io/tutorials...
-- for better familiarize yourself with platform.

Amirul Momenin7671573
Posts: 0
Joined: Fri Jul 31, 2015 11:16 am

GPS

This code is in Android
I need same in Appery

mLastLocation = LocationServices.FusedLocationApi
.getLastLocation(mGoogleApiClient);

if (mLastLocation != null) {
double latitude = mLastLocation.getLatitude();
double longitude = mLastLocation.getLongitude();

Code: Select all

lblLocation.setText(latitude + ", " + longitude); 

}

Amirul Momenin7671573
Posts: 0
Joined: Fri Jul 31, 2015 11:16 am

GPS

This code is in Android
I need same in Appery

mLastLocation = LocationServices.FusedLocationApi
.getLastLocation(mGoogleApiClient);

if (mLastLocation != null) {
double latitude = mLastLocation.getLatitude();
double longitude = mLastLocation.getLongitude();

lblLocation.setText(latitude + ", " + longitude);

}

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

GPS

Hello!

Please look at this tutorial: https://devcenter.appery.io/tutorials...
It shows how to get your current location. Also please note that custom js code is outside the scope of our support.

Return to “Issues”