In precedenza, ho creato una classe che estende GeoPoint Mappa Android API v1:Che cosa corrisponde geopoint in Android Google Maps API V2?
class CyclePoint extends GeoPoint {
public float accuracy;
public double altitude;
public float speed;
public double time;
public CyclePoint(int lat, int lgt, double currentTime) {
super(lat, lgt);
this.time = currentTime;
}
public CyclePoint(int lat, int lgt, double currentTime, float accuracy) {
super(lat, lgt);
this.time = currentTime;
this.accuracy = accuracy;
}
public CyclePoint(int lat, int lgt, double currentTime, float accuracy, double altitude, float speed) {
super(lat, lgt);
this.time = currentTime;
this.accuracy = accuracy;
this.altitude = altitude;
this.speed = speed;
}
}
Ora sto commutazione a V2, che cosa devo estendere? Dovrebbe essere LatLng? Ma quando passo a LatLng, dice: Il tipo CyclePoint non può sottoclasse la classe finale LatLng. Qualcuno mi può aiutare con questo? Grazie mille!
Grazie, ho semplicemente usato int latitudine, longitudine e ha funzionato. La cosa GeoPoint non è utile per questo. – Anhong