Page 1 of 1

GPS

Posted: Fri Jul 31, 2015 11:18 am
by Amirul Momenin7671573

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


GPS

Posted: Fri Jul 31, 2015 3:20 pm
by Illya Stepanov

Hi -

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


GPS

Posted: Sun Aug 02, 2015 2:59 am
by Amirul Momenin7671573

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); 

}


GPS

Posted: Sun Aug 02, 2015 3:00 am
by Amirul Momenin7671573

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);

}


GPS

Posted: Sun Aug 02, 2015 4:33 am
by Evgene Karachevtsev

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.