38cfcd7ff1
New way to directly call settings activity of backend (if set), see second sample
16 lines
392 B
Java
16 lines
392 B
Java
package org.microg.nlp.api.sample;
|
|
|
|
import android.location.Location;
|
|
import org.microg.nlp.api.LocationBackendService;
|
|
|
|
public class SecondSampleService extends LocationBackendService {
|
|
@Override
|
|
protected Location update() {
|
|
Location location = new Location("second-sample");
|
|
location.setLatitude(13);
|
|
location.setLongitude(13);
|
|
location.setAccuracy(100);
|
|
return location;
|
|
}
|
|
}
|