Compare commits

..

No commits in common. "1a647885904d7847c439a4e8c752a3533b647fca" and "77e343bfbb33278569ac4a21eaae2c30a0f73e69" have entirely different histories.

3 changed files with 2 additions and 17 deletions

View file

@ -40,14 +40,4 @@ dependencies {
testImplementation(libs.junit)
androidTestImplementation(libs.ext.junit)
androidTestImplementation(libs.espresso.core)
val room_version = "2.6.1"
implementation("androidx.room:room-runtime:$room_version")
annotationProcessor("androidx.room:room-compiler:$room_version")
// optional - RxJava3 support for Room
implementation("androidx.room:room-rxjava3:$room_version")
// optional - Guava support for Room, including Optional and ListenableFuture
implementation("androidx.room:room-guava:$room_version")
}

View file

@ -1,10 +1,9 @@
package com.proculite.logmylocation;
import android.location.LocationListener;
import android.os.Binder;
public class LocationLoggingServiceBinder extends Binder {
private final LocationLoggingService service;
public final LocationLoggingService service;
public LocationLoggingServiceBinder(LocationLoggingService service){
this.service = service;
@ -13,8 +12,4 @@ public class LocationLoggingServiceBinder extends Binder {
public LocationLoggingService getService(){
return this.service;
}
public void subscribeToLocationUpdates(LocationListener locationListener){
this.service.subscribeToLocationUpdates(locationListener);
}
}

View file

@ -68,7 +68,7 @@ public class MainActivity extends AppCompatActivity implements LocationListener,
Log.d(TAG, "Service connected.");
LocationLoggingServiceBinder binder = (LocationLoggingServiceBinder) iBinder;
binder.subscribeToLocationUpdates(this);
binder.getService().subscribeToLocationUpdates(this);
}
@Override