Sqrt-1764

-1

votes
1

answer
8

views

Databinding-Classes aren't generated any more

I had a working project in Android-Studio, including Databinding. That eleminates some possible sources of error. ;-) Then I decided to get my feet wet with Kotlin and began to migrate some classes from Java to Kotlin. Unfortunately I also klicked to update Android-Studio to 3.4 in the middle of thi...
Sqrt-1764
1

votes
1

answer
23

views

GroupSequence with validators from inherited classes dont seem to work correctly

Currently I am a little bit stuck: I want to create a special validation to my user object that only is executed when all other validations succeed. This can be solved with the @GroupSequence and validators in groups prior to the final group containing my 'special' validator: use FOS\UserBundle\Mod...
Sqrt-1764
1

votes
1

answer
329

views

How to distinguish long and double-values when deserializing with moshi?

My goal is to synchronize abitrary rows of data by using the JSON-Format. As I do not know the exact scheme for the rows (it is a general sync method), my datamodel apparently has to rely on 'Object'. So in Java I will have an array of Map to be synchronized with the server. Translating such a row i...
Sqrt-1764
2

votes
1

answer
693

views

Conversion of a List of HashMaps from/to JSON fails with Moshi 1.2.0

I want to migrate my code from GSon to MOSHI in order to get the benefits of the common underlying usage of the OK-Libraries as I am using this also with OKHTTP and Retrofit. But a task that is simple with Gson seems to be complicated with MOSHI: I have a class that contains a list of objects. And t...
Sqrt-1764
3

votes
2

answer
949

views

Location Services from Google Play do not work in mode “Device Only”

I have an app that tracks the location of the device. In the past I used the Android framework location APIs. Worked as intended – so no real need to change that. But now I want to evaluate the Location Services from the Google Play Services that Google recommends to use, so I changed my app accor...
Sqrt-1764
2

votes
1

answer
242

views

Android Studio (Linux): Update from 2.1.2 to 2.1.3 not working

When I accept the update it gets downloaded. After that, Android Studio closes without any message. Restarting only works on the 2nd attempt but then it is still 2.1.2 and the update is offered again. (This on Ubuntu Linux 16.04 in case that matters)
Sqrt-1764
2

votes
1

answer
690

views

Fused Location Provider with PRIORITY_HIGH_ACCURACY returns locations with low accuracy

I am developing an app that tracks the locations of the device. Everything was fine and working as expected. Google now recommends using the new Fused Location Provider. With this I now from time to time get Positions with an accuracy > 500m that also are fairly off the track. This in an urban area...
Sqrt-1764