Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/08/2015, 00:21
banderas20
 
Fecha de Ingreso: noviembre-2003
Mensajes: 456
Antigüedad: 20 años, 6 meses
Puntos: 1
Respuesta: Obtener GPS en Android Studio

A ver si con esto logramos descubrir algo:

Código:
public void onLocationChanged(Location location) {
        //cambios=cambios+1;
        strnumcambios = (TextView) findViewById(R.id.cambios_gps);
        txtLat = (TextView) findViewById(R.id.textview1);
        txtLat.setText("Latitude:" + location.getLatitude() + ", Longitude:" +
                location.getLongitude());
        strnumcambios.setText(cambios);
Gracias!