UnifiedNlp/sample/src/org/microg/nlp/api/sample/SampleBackendService.java
2014-03-05 21:31:46 +01:00

20 lines
552 B
Java

package org.microg.nlp.api.sample;
import android.location.Location;
import android.util.Log;
import org.microg.nlp.api.LocationBackendService;
public class SampleBackendService extends LocationBackendService {
private static final String TAG = SampleBackendService.class.getName();
@Override
protected Location update() {
Location location = new Location("sample");
location.setLatitude(42);
location.setLongitude(42);
location.setAccuracy(42);
Log.d(TAG, "I was asked for location and I answer: " + location);
return location;
}
}