Small library that wraps Google Play Service API in brilliant RxJava Observables reducing boilerplate to minimum.

Overview

ReactiveLocation library for Android

Small library that wraps Google Play Services API in brilliant RxJava Observables reducing boilerplate to minimum.

Current stable version - 2.1

This version works with Google Play Services 11+ and RxJava 2.+

Artifact name: android-reactive-location2

RxJava1 stable version - 1.0

RxJava1 version:

Artifact name: android-reactive-location

What can you do with that?

  • easily connect to Play Services API
  • obtain last known location
  • subscribe for location updates
  • use location settings API
  • manage geofences
  • geocode location to list of addresses
  • activity recognition
  • use current place API
  • fetch place autocomplete suggestions

How does the API look like?

Simple. All you need is to create ReactiveLocationProvider using your context. All observables are already there. Examples are worth more than 1000 words:

Getting last known location

ReactiveLocationProvider locationProvider = new ReactiveLocationProvider(context);
locationProvider.getLastKnownLocation()
    .subscribe(new Consumer<Location>() {
        @Override
        public void call(Location location) {
            doSthImportantWithObtainedLocation(location);
        }
    });

Yep, Java 8 is not there yet (and on Android it will take a while) but there is absolutely no Google Play Services LocationClient callbacks hell and there is no clean-up you have to do.

Subscribing for location updates

LocationRequest request = LocationRequest.create() //standard GMS LocationRequest
                                  .setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY)
                                  .setNumUpdates(5)
                                  .setInterval(100);

ReactiveLocationProvider locationProvider = new ReactiveLocationProvider(context);
Subscription subscription = locationProvider.getUpdatedLocation(request)
    .filter(...)    // you can filter location updates
    .map(...)       // you can map location to sth different
    .flatMap(...)   // or event flat map
    ...             // and do everything else that is provided by RxJava
    .subscribe(new Consumer<Location>() {
        @Override
        public void call(Location location) {
            doSthImportantWithObtainedLocation(location);
        }
    });

When you are done (for example in onStop()) remember to unsubscribe.

subscription.unsubscribe();

Subscribing for Activity Recognition

Getting activity recognition is just as simple

ReactiveLocationProvider locationProvider = new ReactiveLocationProvider(context);
Subscription subscription = locationProvider.getDetectedActivity(0) // detectionIntervalMillis
    .filter(...)    // you can filter location updates
    .map(...)       // you can map location to sth different
    .flatMap(...)   // or event flat map
    ...             // and do everything else that is provided by RxJava
    .subscribe(new Consumer<ActivityRecognitionResult>() {
        @Override
        public void call(ActivityRecognitionResult detectedActivity) {
            doSthImportantWithObtainedActivity(detectedActivity);
        }
    });

Reverse geocode location

Do you need address for location?

Observable<List<Address>> reverseGeocodeObservable = locationProvider
    .getReverseGeocodeObservable(location.getLatitude(), location.getLongitude(), MAX_ADDRESSES);

reverseGeocodeObservable
    .subscribeOn(Schedulers.io())               // use I/O thread to query for addresses
    .observeOn(AndroidSchedulers.mainThread())  // return result in main android thread to manipulate UI
    .subscribe(...);

Geocode location

Do you need address for a text search query?

Observable<List<Address>> geocodeObservable = locationProvider
    .getGeocodeObservable(String userQuery, MAX_ADDRESSES);

geocodeObservable
    .subscribeOn(Schedulers.io())
    .observeOn(AndroidSchedulers.mainThread())
    .subscribe(...);

Managing geofences

For geofence management use addGeofences and removeGeofences methods.

Checking location settings though location settings API

To get LocationSettingsResponse for your LocationRequest check out ReactiveLocationProvider.checkLocationSettings() method. Sample usage can be found in sample project in MainActivity class.

Connecting to Google Play Services API

If you just need managed connection to Play Services API use ReactiveLocationProvider.getGoogleApiClientObservable(). On subscription it will connect to the API. Unsubscription will close the connection.

Creating observable from PendingResult

If you are manually using Google Play Services and you are dealing with PendingResult you can easily transform them to observables with ReactiveLocationProvider.fromPendingResult() method.

Transforming buffers to observable

To transform any buffer to observable and autorelease it on unsubscription use DataBufferObservable.from() method. It will let you easily flatMap such data as PlaceLikelihoodBuffer or AutocompletePredictionBuffer from Places API. For usage example see PlacesActivity sample.

Places API

You can fetch current place or place suggestions using:

  • ReactiveLocationProvider.getCurrentPlace()
  • ReactiveLocationProvider.getPlaceAutocompletePredictions()
  • ReactiveLocationProvider.getPlaceById()

For more info see sample project and PlacesActivity.

Cooler examples

Do you need location with certain accuracy but don't want to wait for it more than 4 sec? No problem.

LocationRequest req = LocationRequest.create()
                         .setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY)
                         .setExpirationDuration(TimeUnit.SECONDS.toMillis(LOCATION_TIMEOUT_IN_SECONDS))
                         .setInterval(LOCATION_UPDATE_INTERVAL);

Observable<Location> goodEnoughQuicklyOrNothingObservable = locationProvider.getUpdatedLocation(req)
            .filter(new Func1<Location, Boolean>() {
                @Override
                public Boolean call(Location location) {
                    return location.getAccuracy() < SUFFICIENT_ACCURACY;
                }
            })
            .timeout(LOCATION_TIMEOUT_IN_SECONDS, TimeUnit.SECONDS, Observable.just((Location) null), AndroidSchedulers.mainThread())
            .first()
            .observeOn(AndroidSchedulers.mainThread());

goodEnoughQuicklyOrNothingObservable.subscribe(...);

How to use it?

Library is available in maven central.

Gradle

Just use it as dependency in your build.gradle file along with Google Play Services and RxJava.

dependencies {
    ...
    compile 'pl.charmas.android:android-reactive-location2:2.1@aar'
    compile 'com.google.android.gms:play-services-location:11.0.4' //you can use newer GMS version if you need
    compile 'com.google.android.gms:play-services-places:11.0.4'
    compile 'io.reactivex:rxjava:2.0.5' //you can override RxJava version if you need
}

Maven

Ensure you have android-maven-plugin version that support aar archives and add following dependency:

<dependency>
    <groupId>pl.charmas.android</groupId>
    <artifactId>android-reactive-location2</artifactId>
    <version>2.1</version>
    <type>aar</type>
</dependency>

It may be necessary to add google play services and rxanroid dependency as well.

Sample

Sample usage is available in sample directory.

Places API requires API Key. Before running samples you need to create project on API console and obtain API Key using this guide. Obtained key should be exported as gradle property named: REACTIVE_LOCATION_GMS_API_KEY for example in ~/.gradle/gradle.properties.

References

If you need Google Fit library rxified please take a look at RxFit.

License

Copyright (C) 2015 Michał Charmas (http://blog.charmas.pl)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Comments
  • Possible workaround for

    Possible workaround for "Service not Available" in ReverseGeocodeObservable

    There are lot of devices, that for some reason (my suspition is after upgrade to the google play services but before restart) give this exception. It is most probably possible to use an alternative way to get the info directly from the Google's APIs (via http query) in case when this specific exception happens.

    LocationRepository::getReverseGeocodeObservable
    java.io.IOException: Service not Available
        at android.location.Geocoder.getFromLocation(Geocoder.java:136)
        at pl.charmas.android.reactivelocation.observables.geocode.ReverseGeocodeObservable.call(ReverseGeocodeObservable.java:34)
        at pl.charmas.android.reactivelocation.observables.geocode.ReverseGeocodeObservable.call(ReverseGeocodeObservable.java:13)
        at rx.Observable.unsafeSubscribe(Observable.java:7710)
        at rx.internal.operators.OperatorSubscribeOn$1$1.call(OperatorSubscribeOn.java:62)
        at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
        at java.util.concurrent.FutureTask.run(FutureTask.java:137)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:150)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:264)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
        at java.lang.Thread.run(Thread.java:856)
    

    Thank you for this lib.

    opened by zoltanf 17
  • subscription.unsubscribe(); is not stopping the locationProvider from getting updated location.

    subscription.unsubscribe(); is not stopping the locationProvider from getting updated location.

    I am using locationProvider.getUpdatedLocation(request) method in my app like this:

    locationRequest = LocationRequest.create() //standard GMS LocationRequest
                                                                .setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY)
                                                                .setNumUpdates(1000)
                                                                .setInterval(1000);
    
                                                        ReactiveLocationProvider locationProvider = new ReactiveLocationProvider(getBaseContext());
                                                        subscription = locationProvider.getUpdatedLocation(locationRequest)
                                                                .subscribe(new Action1<Location>() {
                                                                    @Override
                                                                    public void call(Location location) {
                                                                        currentLtAU = location.getLatitude();
                                                                        currentLnAU = location.getLongitude();
                                                                        
                                                                        Log.d("cLAT", String.valueOf(currentLtAU));
                                                                    }
                                                                });
    

    and then trying to unsubscribe this location updates in onDestroy() as well as onStop() method like this: subscription.unsubscribe();, but even after the activity gets destroyed and stopped, I'm still getting this log:D/cLAT: 12.1297697 printed out constantly which is not stopping before getting printed out 1000 times.

    Please let me know what's causing this and how can I fix it?

    opened by HammadNasir 14
  • in sample-app: Internal data leak within a DataBuffer object detected!  Be sure to explicitly call release() on all DataBuffer extending objects when you are done with them. (AutocompletePredictionBuffer{status=Status{statusCode=SUCCESS, resolution=null}})

    in sample-app: Internal data leak within a DataBuffer object detected! Be sure to explicitly call release() on all DataBuffer extending objects when you are done with them. (AutocompletePredictionBuffer{status=Status{statusCode=SUCCESS, resolution=null}})

    08-21 09:04:26.063 2556-2570/pl.charmas.android.reactivelocation.sample E/DataBuffer﹕ Internal data leak within a DataBuffer object detected! Be sure to explicitly call release() on all DataBuffer extending objects when you are done with them. (AutocompletePredictionBuffer{status=Status{statusCode=SUCCESS, resolution=null}})

    opened by Rainer-Lang 14
  • One Shot Location

    One Shot Location

    I have a requirement to obtain 1 location update and then close the stream. Potentially this could be done with a timeout as well.

    Do you see this as being part of the library? If so I am happy to contribute.

    opened by sdoward 13
  • Cannot resolve method: 'Action1<DetectedActivity>'

    Cannot resolve method: 'Action1'

    Im trying to create a service which will receive activity recognition result.

    I wrote this in my code:

    locationProvider.getDetectedActivity(0) // detectionIntervalMillis
        .subscribe(new Action1<DetectedActivity>() {
            @Override
            public void call(DetectedActivity detectedActivity) {
                doSthImportantWithObtainedActivity(detectedActivity);
            }
        });
    

    But android studio does not recognize "Action1 DetectedActivity" .

    all the others like location updates and geofencing is working great!

    Any idea what is going on?

    opened by Lir10 12
  • Error connecting to GoogleApiClient

    Error connecting to GoogleApiClient

    I've tried to use the library but when I started the location update subscription with this code:

    I get these errors:

    rx.exceptions.OnErrorNotImplementedException: Error connecting to GoogleApiClient. at rx.Observable$36.onError(Observable.java:8420) at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:128) at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:97) at pl.charmas.android.reactivelocation.observables.BaseObservable$ApiClientConnectionCallbacks.onConnectionFailed(BaseObservable.java:107) at com.google.android.gms.common.internal.zzj.zzj(Unknown Source) at com.google.android.gms.common.api.zze.zzf(Unknown Source) at com.google.android.gms.common.api.zze.zzkP(Unknown Source) at com.google.android.gms.common.api.zze.zzf(Unknown Source) at com.google.android.gms.common.api.zze$zzc.zza(Unknown Source) at com.google.android.gms.common.internal.zzi$zzb.handleMessage(Unknown Source) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3687) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625) at dalvik.system.NativeStart.main(Native Method) Caused by: pl.charmas.android.reactivelocation.observables.GoogleAPIConnectionException: Error connecting to GoogleApiClient.             at pl.charmas.android.reactivelocation.observables.BaseObservable$ApiClientConnectionCallbacks.onConnectionFailed(BaseObservable.java:107)             at com.google.android.gms.common.internal.zzj.zzj(Unknown Source)             at com.google.android.gms.common.api.zze.zzf(Unknown Source)             at com.google.android.gms.common.api.zze.zzkP(Unknown Source)             at com.google.android.gms.common.api.zze.zzf(Unknown Source)             at com.google.android.gms.common.api.zze$zzc.zza(Unknown Source)             at com.google.android.gms.common.internal.zzi$zzb.handleMessage(Unknown Source)             at android.os.Handler.dispatchMessage(Handler.java:99)             at android.os.Looper.loop(Looper.java:130)             at android.app.ActivityThread.main(ActivityThread.java:3687)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:507)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)             at dalvik.system.NativeStart.main(Native Method)

    What should I set?

    opened by nologinatgit 10
  • proguard

    proguard

    I have use it with proguard and have this exception from Acra (I cant repeat it). HUAWEI Y220-U00 Android '2.3.6 Is there some custom proguard configuration or RxJava ?

    b.a.e: Error connecting to LocationClient. at b.a$2.a(Observable.java:5890) at b.c.a.b(SafeSubscriber.java:125) at b.c.a.a(SafeSubscriber.java:94) at b.d.a$1.a(OperatorFilter.java:47) at a.a.a.a.a.b.a(BaseLocationObservable.java:84) at com.google.android.gms.internal.cz.a(Unknown Source) at com.google.android.gms.internal.db.a(Unknown Source) at com.google.android.gms.internal.da.a(Unknown Source) at com.google.android.gms.internal.da.a(Unknown Source) at com.google.android.gms.internal.cv.b(Unknown Source) at com.google.android.gms.internal.cu.handleMessage(Unknown Source) at android.os.Handler.dispatchMessage(Handler.java:130) at android.os.Looper.loop(Looper.java:384) at android.app.ActivityThread.main(ActivityThread.java:3975) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:538) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:978) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:732) at dalvik.system.NativeStart.main(Native Method) Caused by: a.a.a.a.a.c: Error connecting to LocationClient. ... 15 more a.a.a.a.a.c: Error connecting to LocationClient. at a.a.a.a.a.b.a(BaseLocationObservable.java:84) at com.google.android.gms.internal.cz.a(Unknown Source) at com.google.android.gms.internal.db.a(Unknown Source) at com.google.android.gms.internal.da.a(Unknown Source) at com.google.android.gms.internal.da.a(Unknown Source) at com.google.android.gms.internal.cv.b(Unknown Source) at com.google.android.gms.internal.cu.handleMessage(Unknown Source) at android.os.Handler.dispatchMessage(Handler.java:130) at android.os.Looper.loop(Looper.java:384) at android.app.ActivityThread.main(ActivityThread.java:3975) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:538) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:978) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:732) at dalvik.system.NativeStart.main(Native Method)

    opened by sytolk 10
  • getLastKnownLocation() crash...

    getLastKnownLocation() crash...

    Hello, First, thanks for this library it's great ! 👍 But I have a problem :/ When I run your sample all it's OK 👍 But when I run in my application I have this error :

    I'm very embarassed... I tried a lot of things and even I have paste the same code of exemple but I have always this error and my app crash. The crash is on the instruction : ReactiveLocationProvider locationProvider = new ReactiveLocationProvider(getBaseContext()); locationProvider.getLastKnownLocation() And its no pass on the doOnError...

    Thanks a lot for help ! :)

    Logs : I/dalvikvm: Could not find method com.google.android.gms.common.api.Api$zzf., referenced from method com.google.android.gms.location.LocationServices. W/dalvikvm: VFY: unable to resolve direct method 20025: Lcom/google/android/gms/common/api/Api$zzf;. ()V D/dalvikvm: VFY: replacing opcode 0x70 at 0x0002 I/dalvikvm: Could not find method com.google.android.gms.common.internal.zzac.zzb, referenced from method com.google.android.gms.location.LocationServices.zzj W/dalvikvm: VFY: unable to resolve static method 21092: Lcom/google/android/gms/common/internal/zzac;.zzb (ZLjava/lang/Object;)V D/dalvikvm: VFY: replacing opcode 0x71 at 0x0009 W/dalvikvm: Superclass of 'Lcom/google/android/gms/location/LocationServices$1;' is interface 'Lcom/google/android/gms/common/api/Api$zza;' W/dalvikvm: Link of class 'Lcom/google/android/gms/location/LocationServices$1;' failed D/dalvikvm: DexOpt: unable to opt direct call 0x70fc at 0x09 in Lcom/google/android/gms/location/LocationServices;. D/dalvikvm: DexOpt: unable to opt direct call 0x4e43 at 0x1a in Lcom/google/android/gms/location/LocationServices;. W/dalvikvm: Exception Ljava/lang/NoSuchMethodError; thrown while initializing Lcom/google/android/gms/location/LocationServices; D/AndroidRuntime: Shutting down VM W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x40ccd9a8) D/dalvikvm: GC_FOR_ALLOC freed 372K, 14% free 3800K/4376K, paused 13ms, total 13ms E/AndroidRuntime: FATAL EXCEPTION: main java.lang.NoSuchMethodError: com.google.android.gms.common.api.Api$zzf. at com.google.android.gms.location.LocationServices.(Unknown Source) at pl.charmas.android.reactivelocation.observables.BaseLocationObservable.(BaseLocationObservable.java:9) at pl.charmas.android.reactivelocation.observables.location.LastKnownLocationObservable.(LastKnownLocationObservable.java:20) at pl.charmas.android.reactivelocation.observables.location.LastKnownLocationObservable.createObservable(LastKnownLocationObservable.java:16) at pl.charmas.android.reactivelocation.ReactiveLocationProvider.getLastKnownLocation(ReactiveLocationProvider.java:77)

    opened by lisbejuin 9
  • Is it possible to change update interval?

    Is it possible to change update interval?

    Hi, is it possible to change update location interval dynamically?

    For some stage of the app I want it update like every 10 minutes, but some stage i need it to be like close to real- time.

    Thank in advance!

    opened by krithoonsuwan 9
  • Add fallback reverse geocode lookup in case the main geocoder raises …

    Add fallback reverse geocode lookup in case the main geocoder raises …

    …an IOException with "Service not Available". This fallback is useful for devices where reverse geocoder fails for some reason (usually this happens just after google play services update but before the device is restarted).

    Addresses issue #86

    opened by zoltanf 8
  • Upgrade Play services to 8.1.0

    Upgrade Play services to 8.1.0

    With play-services-8.1.0 the library crashes due to breaking changes in 8.1.0

    GoogleApiClient, PendingResult, and OptionalPendingResult are now abstract classes instead of interfaces. The signature of PendingResult.setResultCallback has changed from setResultCallback(ResultCallback<R> callback) to setResultCallback(ResultCallback<? super R> callback). An equivalent change has been made to setResultCallback that accepts a timeout parameter. If you were directly implementing these interfaces before, you’ll need to extend the abstract classes instead. If you used these classes for testing purposes, we recommend using the provided utility class PendingResults which can provide a Result that is either canceled or immediately available.
    

    https://developers.google.com/android/guides/releases

    opened by koch-t 8
  • Essendon cannot be found in the maps but it works for Essendon North

    Essendon cannot be found in the maps but it works for Essendon North

    There is a weird issue when we were testing to search for Essendon. The library always returns "location not found" but it works when searching for Essendon North. Any idea what's causing this issue? Appreciate your help.

    opened by akosijiji 0
  • Doesn't work on some situation and some devices

    Doesn't work on some situation and some devices

    After a user enters a building and stays in this place some time, connection lost and didn't reconnect. It only reconnects if a user exits the application and enter again.

    opened by Devit951 0
  • Fix Listener null check

    Fix Listener null check

    Hello Again! We have encountered a problem using this library in our app.

    There was a crash. The reason is listener is null.

    Please confirm. Thank you.

    Caused by rx.exceptions.OnErrorNotImplementedException: Listener must not be null at rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call(InternalObservableUtils.java:386) at rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call(InternalObservableUtils.java:383) at rx.internal.util.ActionSubscriber.onError(ActionSubscriber.java:44) at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:153) at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115) at rx.exceptions.Exceptions.throwOrReport(Exceptions.java:216) at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:139) at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onNext(OnSubscribeDoOnEach.java:101) at rx.observers.SerializedObserver.onNext(SerializedObserver.java:91) at rx.observers.SerializedSubscriber.onNext(SerializedSubscriber.java:94) at rx.internal.operators.OperatorTakeUntil$1.onNext(OperatorTakeUntil.java:45) at rx.internal.operators.OperatorCast$CastSubscriber.onNext(OperatorCast.java:69) at rx.internal.operators.OnSubscribeFilter$FilterSubscriber.onNext(OnSubscribeFilter.java:76) at com.jakewharton.rxrelay.RelaySubscriptionManager$RelayObserver.onNext(RelaySubscriptionManager.java:205) at com.jakewharton.rxrelay.PublishRelay.call(PublishRelay.java:47) at com.jakewharton.rxrelay.SerializedAction1.call(SerializedAction1.java:84) at com.jakewharton.rxrelay.SerializedRelay.call(SerializedRelay.java:20) at com.kakao.wheel.driver.util.RxBus.post(RxBus.java:11) at com.kakao.wheel.driver.service.ConnectionService$connect$7.call(ConnectionService.java:264) at rx.internal.util.ActionSubscriber.onNext(ActionSubscriber.java:39) at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:134) at rx.observers.Subscribers$5.onNext(Subscribers.java:235) at rx.observers.SerializedObserver.onNext(SerializedObserver.java:91) at rx.observers.SerializedSubscriber.onNext(SerializedSubscriber.java:94) at rx.internal.operators.OperatorTakeUntil$1.onNext(OperatorTakeUntil.java:45) at rx.internal.operators.OnSubscribeRedo$2$1.onNext(OnSubscribeRedo.java:244) at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onNext(OnSubscribeDoOnEach.java:101) at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onNext(OnSubscribeDoOnEach.java:101) at rx.observers.Subscribers$5.onNext(Subscribers.java:235) at rx.observers.Subscribers$5.onNext(Subscribers.java:235) at rx.internal.operators.OperatorSubscribeOn$1$1.onNext(OperatorSubscribeOn.java:53) at rx.observers.Subscribers$5.onNext(Subscribers.java:235) at rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext(OnSubscribeMap.java:77) at com.kakao.wheel.driver.connection.ChannelOperator.call(ChannelOperator.java:38) at com.kakao.wheel.driver.connection.ChannelOperator.call(ChannelOperator.java:10) at rx.Observable.unsafeSubscribe(Observable.java:10142) at rx.internal.operators.OnSubscribeMap.call(OnSubscribeMap.java:48) at rx.internal.operators.OnSubscribeMap.call(OnSubscribeMap.java:33) at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) at rx.Observable.unsafeSubscribe(Observable.java:10142) at rx.internal.operators.OperatorSubscribeOn$1.call(OperatorSubscribeOn.java:94) at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:154) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818)

    opened by fwith 0
  • Error while detecting location

    Error while detecting location

    Got the below error log when trying to detect the location on Android Marshmallow

    E/null: java.lang.RuntimeException: Wrong API response
            at pl.charmas.android.reactivelocation2.observables.geocode.FallbackReverseGeocodeObservable.alternativeReverseGeocodeQuery(FallbackReverseGeocodeObservable.java:86)
            at pl.charmas.android.reactivelocation2.observables.geocode.FallbackReverseGeocodeObservable.subscribe(FallbackReverseGeocodeObservable.java:39)
            at io.reactivex.internal.operators.observable.ObservableCreate.subscribeActual(ObservableCreate.java:40)
            at io.reactivex.Observable.subscribe(Observable.java:12090)
            at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
            at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)
            at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
            at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
            at java.util.concurrent.FutureTask.run(FutureTask.java:237)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
            at java.lang.Thread.run(Thread.java:818)
    
    opened by kalyandechiraju 1
Owner
Michał Charmas
Michał Charmas
Donations library for Android. Supports Google Play Store, Flattr, PayPal, and Bitcoin

Android Donations Lib Android Donations Lib supports donations by Google Play Store, Flattr, PayPal, and Bitcoin. It is used in projects, such as Open

Sufficiently Secure 346 Jan 8, 2023
Donations library for Android. Supports Google Play Store, Flattr, PayPal, and Bitcoin

Android Donations Lib Android Donations Lib supports donations by Google Play Store, Flattr, PayPal, and Bitcoin. It is used in projects, such as Open

Sufficiently Secure 345 Dec 21, 2022
A clustering library for the Google Maps Android API v2

DEPRECATED Don't use this. The Maps v3 SDK handles markers. That with a few other cool utilities make this library obsolete! Clusterkraf A clustering

Ticketmaster Mobile Studio 258 Nov 28, 2022
Android SDK for eyeson video service incl. demo app

eyeson Android SDK Android SDK for eyeson video service incl. demo app Prerequisites A webservice to host and maintain eyeson meetings is required. Th

eyeson 3 Nov 16, 2022
Its measurement app made using kotlin with sceneform sdk by google

ARCORE MEASUREMENT This app is build using sceneform sdk for android using kotlin language It helps you measure the distance between multiple points i

Kashif Mehmood 39 Dec 9, 2022
Horoscope API for android to get the horoscope according to the sunsign

Horoscope-API. Simple Java API to get the horoscope according to the sunsign. Contents Features Implementation API Usage To-dos Credits License Featur

TheBotBox 34 Dec 2, 2022
realworld api 프로젝트입니다.

Real world author: chance0523 origin project : https://github.com/gothinkster/realworld/tree/master/api This application uses... Kotlin Spring Boot JP

서정준 4 Jul 19, 2021
CodingChallenge: A simple SDK. Which can provide you information related to Start Wars APi

CodingChallenge CodingChallenge is a simple SDK. Which can provide you informati

Wajahat Hussain 1 Feb 18, 2022
HubSpot Kotlin SDK 🧺 Implementation of HubSpot API for Java/Kotlin in tiny SDK

HubSpot Kotlin SDK ?? Implementation of HubSpot API for Java/Kotlin in tiny SDK

BOOM 3 Oct 27, 2022
Library for Android In-App Billing (Version 3+)

Checkout (Android In-App Billing Library) Description Checkout is an implementation of Android In-App Billing API (v3+). Its main goal is to make inte

Sergey Solovyev 1k Nov 26, 2022
Android Weather Library: android weather lib to develop weather based app fast and easily

WeatherLib Android weather lib is an android weather aggregator. The lib helps you getting weather data from the most importat weather provider. It su

Surviving with android (by Francesco Azzola) 641 Dec 23, 2022
Android library project for providing multiple image selection from the device.

PolyPicker Android library project for selecting/capturing multiple images from the device. Result Caution! Eclipse library project structure has been

JW 407 Dec 27, 2022
Android library that provides for multiple image selection.

#MultipleImageSelect An android library that allows selection of multiple images from gallery. It shows an initial album (buckets) chooser and then im

Darshan Dorai 299 Nov 14, 2022
this is the demo of billing new library v3

Billing library v3 demo android This is the demo of billing new library v3 for android native IMPORTANT 1- you must have login to google play store to

Muhammad Sikandar 3 Dec 6, 2021
malik dawar 87 Sep 18, 2022
ProgressDialog that waits a minimum time to be dismissed before showing. Once visible, the ProgressDialog will be visible for a minimum amount of time to avoid "flashes" in the UI.

DelayedProgress ProgressBar and ProgressDialog that waits a minimum time to be dismissed before showing. Once visible, the they will be visible for a

Said Tahsin Dane 95 Nov 25, 2022
An android application to make students life easier by reducing their backpack weight.

Smart-Schooling An android application to make students life easier by reducing their backpack weight. Dont forget to ⭐ the repo Overview Almost every

Thamizh Kaniyan 3 Jan 31, 2022
Google Play Service to your Godot 3.2.x games

GDPlayService Android plugin to implement Google Play Service into your game Depends on Godot game engine: git clone https://github.com/godotengine/g

FrogSquare 9 Aug 2, 2022
Basic app to use different type of observables StateFlow, Flow, SharedFlow, LiveData, State, Channel...

stateflow-flow-sharedflow-livedata Basic app to use different type of observables StateFlow, Flow, SharedFlow, LiveData, State, Channel... StateFlow,

Raheem 5 Dec 21, 2022
Small code generating library for safe Jetpack Compose navigation with no boilerplate.

Compose Destinations A KSP library to use alongside compose navigation. It reduces boilerplate code and is less error-prone since passing arguments be

Rafael Costa 1.9k Jan 5, 2023