Questions tagged [android-reactivelocation]
8 questions
2
votes
2 answers
ReactiveLocationProvider with RetroFit2 in Android throwing NetworkOnMainThread
The code below consistently throws a NetworkOnMainThread on Android, call attempt is to get a location and use it to fetch a list via a RetroFit 2 API, which works fine in other circumstances, as does the ReactiveLocation call.
new…

Kenny
- 805
- 8
- 19
2
votes
1 answer
RXJava how to make an observable continue onError
Consider the following example :
WidgetObservable.text(searchView).debounce(250, TimeUnit.MILLISECONDS).flatMap(new Func1>>() {
@Override
public Observable
- >…

Ofek Ron
- 8,354
- 13
- 55
- 103
1
vote
1 answer
How to split a stream correctly into 4 Actions using RxAndroid?
I trying to get into reactive programing for the first time. I'm using the ReactiveLocation library for Android, And I have 4 textviews that need to be populated with location data when a new location is received.
So this is the code that will get…

Emil Adz
- 40,709
- 36
- 140
- 187
0
votes
1 answer
Android-ReactiveLocation: call() not executed
I am trying to use Android-ReactiveLocation by mcharmas.
Nothing is happening, i.e. it never gets to the call method. Location is turned on for the device. Using a GPS app, I can see that GPS is working.
In Settings > Location > Recent location…

Al Lelopath
- 6,448
- 13
- 82
- 139
0
votes
1 answer
Certain piece of code do not get executed even after all the conditions are true. Please see details
I'm developing an app and using following code to fetch current coordinates of the user (from this library):
ReactiveLocationProvider locationProvider = new ReactiveLocationProvider(getBaseContext());
…

Hammad Nasir
- 2,889
- 7
- 52
- 133
0
votes
1 answer
Why 'locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);' is unable to detect whether GPS is on or not in android marshmallow?
I'm developing an app in which GPS is required to detect user's current location and proceed further. So, I'm using this code: isGPSEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER); to detect whether GPS is on or not and…

Hammad Nasir
- 2,889
- 7
- 52
- 133
0
votes
1 answer
GPS is on, but the code is still not getting executed. Please see details
I'm developing an app in which I want to execute a piece of code only if GPS is enabled.
I'm checking the GPS using this piece of code:
isGPSEnabled = locationManager
.isProviderEnabled(LocationManager.GPS_PROVIDER);
And now, I'm…

Hammad Nasir
- 2,889
- 7
- 52
- 133
0
votes
0 answers
Code for retrieving location not executing even after asking for permission in android marshmallow
I'm trying to retrieve user's current location using this library.
The code is fetching the location successfully in versions below android M, but when I am launching the app on devices with Android Marshmallow, the piece of code is not getting…

Hammad Nasir
- 2,889
- 7
- 52
- 133