All Projects → florent37 → Rxgps

florent37 / Rxgps

Licence: apache-2.0
Finding current location cannot be easier on Android !

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Rxgps

Rxretrojsoup
A simple API-like from html website (scrapper) for Android, RxJava2 ready !
Stars: ✭ 492 (+60.26%)
Mutual labels:  rxjava, rxjava2, rx
Rxjava2 Operators Magician
你用不惯 RxJava,只因缺了这把钥匙 🔑 You are not used to RxJava, just because of the lack of this key.
Stars: ✭ 868 (+182.74%)
Mutual labels:  rxjava, reactive, rxjava2
Rxfirebase
Rxjava 2.0 wrapper on Google's Android Firebase library.
Stars: ✭ 509 (+65.8%)
Mutual labels:  rxjava, reactive, rxjava2
Rxreactor
A Kotlin framework for a reactive and unidirectional RxJava application architecture
Stars: ✭ 19 (-93.81%)
Mutual labels:  rxjava, reactive, rxjava2
Rxkprefs
🛠 A small Kotlin library to make shared preferences easy + RxJava and Coroutines support
Stars: ✭ 264 (-14.01%)
Mutual labels:  rxjava, reactive, rx
Rxbluetooth
Android reactive bluetooth
Stars: ✭ 405 (+31.92%)
Mutual labels:  rxjava, rxjava2, rx
Binder
An Annotation processor that allows binding two classes with each other, where the first class can listen to the updates of the second class ... ideal for MVVM and similar patterns
Stars: ✭ 21 (-93.16%)
Mutual labels:  reactive, rxjava, rx
Freezer
A simple & fluent Android ORM, how can it be easier ? RxJava2 compatible
Stars: ✭ 326 (+6.19%)
Mutual labels:  rxjava, rxjava2, rx
Vertx Mqtt
Vert.x MQTT
Stars: ✭ 117 (-61.89%)
Mutual labels:  rxjava, reactive, rxjava2
Rxbus
Android reactive event bus that simplifies communication between Presenters, Activities, Fragments, Threads, Services, etc.
Stars: ✭ 79 (-74.27%)
Mutual labels:  rxjava, reactive, rxjava2
Android Okgraphql
Reactive GraphQl client for Android
Stars: ✭ 64 (-79.15%)
Mutual labels:  rxjava, reactive, rx
RxAnimator
An RxJava2 binding for android Animator
Stars: ✭ 80 (-73.94%)
Mutual labels:  rxjava, rx, rxjava2
Atlas
🌎 Atlas is a set of APIs for looking up information about locations
Stars: ✭ 21 (-93.16%)
Mutual labels:  geocoding, gps, location
rxjava2-http
Transmit RxJava2 Flowable over http with non-blocking backpressure
Stars: ✭ 19 (-93.81%)
Mutual labels:  reactive, rxjava, rxjava2
RxWebView
RxJava2 binding APIs for Android's WebView
Stars: ✭ 22 (-92.83%)
Mutual labels:  rxjava, rxjava2
rxkotlin-jdbc
Fluent RxJava JDBC extension functions for Kotlin
Stars: ✭ 27 (-91.21%)
Mutual labels:  rxjava, rx
RxJava-Codelab
Codelab project for demonstration of RxJava features
Stars: ✭ 44 (-85.67%)
Mutual labels:  reactive, rxjava
demo-vertx-kotlin-rxjava2-kubernetes
Demonstration of Eclipse Vert.x, Kotlin, RxJava2 and Kubernetes
Stars: ✭ 23 (-92.51%)
Mutual labels:  reactive, rxjava2
android-amap-track-collect
这阵子由于项目需要,需要从手机上采集用户的运动轨迹数据,这样的功能大家都见到的很多了,比如咕咚、悦动圈,对跑步运动轨迹数据进行采集,再如,微信运动、钉钉运动,对于每一天你走步进行计数,如果要记录轨迹就离不开的手机定位,如果要记录步数那就离不开陀螺仪(角速度传感器),花了一天多的时间实现了一个定位数据实时采集的功能。
Stars: ✭ 50 (-83.71%)
Mutual labels:  gps, location
kirby-locator
A simple map & geolocation field, built on top of open-source services and Mapbox. Kirby 3 only.
Stars: ✭ 83 (-72.96%)
Mutual labels:  geocoding, location

RxGps

Finding current location cannot be easier on Android !

- RxJava2 compatible

- Automatically ask for gps runtime permissions

- Check if play services are available for you ;)

Android app on Google Play

Download

Buy Me a Coffee at ko-fi.com

In your module Download

compile 'com.github.florent37:rxgps:(last version)'

Usage

new RxGps(this).locationLowPower()

                .subscribeOn(Schedulers.newThread())
                .observeOn(AndroidSchedulers.mainThread())

                .subscribe(location -> {
                    //you've got the location
                }, throwable -> {
                    if (throwable instanceof RxGps.PermissionException) {
                        //the user does not allow the permission
                    } else if (throwable instanceof RxGps.PlayServicesNotAvailableException) {
                         //the user do not have play services
                    }
                });

GeoCoding

new RxGps(this).lastLocation()

                .flatMapMaybe(rxGps::geocoding)

                .subscribeOn(Schedulers.newThread())
                .observeOn(AndroidSchedulers.mainThread())

                .subscribe(address -> {
                    addressText.setText(getAddressText(address));
                }, throwable -> {
                    if (throwable instanceof RxGps.PermissionException) {
                        //the user does not allow the permission
                    } else if (throwable instanceof RxGps.PlayServicesNotAvailableException) {
                         //the user do not have play services
                    }
                });

Open Source

Forked from patloew RxLocation https://github.com/patloew/RxLocation

And use tbruyelle RxPermission https://github.com/tbruyelle/RxPermissions

Credits

Author: Florent Champigny http://www.florentchampigny.com/

Blog : http://www.tutos-android-france.com/

Fiches Plateau Moto : https://www.fiches-plateau-moto.fr/

Android app on Google Play Follow me on Google+ Follow me on Twitter Follow me on LinkedIn

License

Copyright 2016 florent37, Inc.

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].