(Android Location) Some changes - still not working
This commit is contained in:
parent
ed305b1de4
commit
c68312fe31
|
@ -23,7 +23,7 @@ import android.widget.Toast;
|
||||||
public class RetroActivityLocation extends NativeActivity
|
public class RetroActivityLocation extends NativeActivity
|
||||||
implements GooglePlayServicesClient.ConnectionCallbacks,
|
implements GooglePlayServicesClient.ConnectionCallbacks,
|
||||||
GooglePlayServicesClient.OnConnectionFailedListener,
|
GooglePlayServicesClient.OnConnectionFailedListener,
|
||||||
LocationListener
|
LocationListener, com.google.android.gms.location.LocationListener
|
||||||
{
|
{
|
||||||
/* LOCATION VARIABLES */
|
/* LOCATION VARIABLES */
|
||||||
private static int CONNECTION_FAILURE_RESOLUTION_REQUEST = 0;
|
private static int CONNECTION_FAILURE_RESOLUTION_REQUEST = 0;
|
||||||
|
@ -51,14 +51,7 @@ LocationListener
|
||||||
Toast.makeText(this, "Connected", Toast.LENGTH_SHORT).show();
|
Toast.makeText(this, "Connected", Toast.LENGTH_SHORT).show();
|
||||||
location_service_running = true;
|
location_service_running = true;
|
||||||
// If already requested, start periodic updates
|
// If already requested, start periodic updates
|
||||||
if (mUpdatesRequested)
|
mLocationClient.requestLocationUpdates(mLocationRequest, this);
|
||||||
{
|
|
||||||
mLocationClient.requestLocationUpdates(mLocationRequest,
|
|
||||||
(com.google.android.gms.location.LocationListener) this);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
// Get last known location
|
|
||||||
mCurrentLocation = mLocationClient.getLastLocation();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue