{"action":"created","issue":{"url":"https://api.github.com/repos/wish7code/org.openbmap.unifiedNlpProvider/issues/12","repository_url":"https://api.github.com/repos/wish7code/org.openbmap.unifiedNlpProvider","labels_url":"https://api.github.com/repos/wish7code/org.openbmap.unifiedNlpProvider/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/wish7code/org.openbmap.unifiedNlpProvider/issues/12/comments","events_url":"https://api.github.com/repos/wish7code/org.openbmap.unifiedNlpProvider/issues/12/events","html_url":"https://github.com/wish7code/org.openbmap.unifiedNlpProvider/issues/12","id":96127245,"number":12,"title":"cell-based geolocation issue on some Android ≤ 4.1 devices","user":{"login":"IzzySoft","id":6781438,"avatar_url":"https://avatars.githubusercontent.com/u/6781438?v=3","gravatar_id":"","url":"https://api.github.com/users/IzzySoft","html_url":"https://github.com/IzzySoft","followers_url":"https://api.github.com/users/IzzySoft/followers","following_url":"https://api.github.com/users/IzzySoft/following{/other_user}","gists_url":"https://api.github.com/users/IzzySoft/gists{/gist_id}","starred_url":"https://api.github.com/users/IzzySoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IzzySoft/subscriptions","organizations_url":"https://api.github.com/users/IzzySoft/orgs","repos_url":"https://api.github.com/users/IzzySoft/repos","events_url":"https://api.github.com/users/IzzySoft/events{/privacy}","received_events_url":"https://api.github.com/users/IzzySoft/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wish7code/org.openbmap.unifiedNlpProvider/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-20T18:28:33Z","updated_at":"2016-04-13T06:26:35Z","closed_at":"2016-04-12T22:42:37Z","body":"Thanks again for making it available for 4.1 – but now I found a minor \"incident\" with that. There's a method referenced not available before Android 4.2 concerning cell-based geolocation (for details, see [this issue for the Mozilla backend](https://github.com/microg/IchnaeaNlpBackend/issues/12)).\r\n\r\nYou can find a stack-trace [here at pastebin.com](http://pastebin.com/XzZrThMi) for what's happening. Seems not to be that crucial, though, as a location is still found:\r\n\r\n~~~\r\nI/org.openbmap.unifiedNlp.Geocoder.OnlineProvider(11635): JSON response: {\"source\":\"wifis\",\"accuracy\":30,\"location\":{\"lng\":11.570856997514667,\"lat\":48.166475879909996},\"measurements\":104}\r\n~~~\r\n\r\nA solution would be an additional option in the module's settings to discable cell-based location. E.g.\r\n\r\n[ ] use cell-based location (4.2+)\r\n[x] use WiFi based location\r\n\r\nand initially disable the first option on lower Android versions, but still give the user the chance to check it on \"own risk\", as some 4.1 devices indeed seem to support it – if I understood Marvin correctly:\r\n\r\n> Using gsm cells to geolocate is not possible on Android version 4.1 and below because of missing API support **on *most* devices.**\r\n\r\n(emphasis mine).\r\n\r\n----\r\n\r\nI'm still jumping between the different projects here at Github with my issues \"mixing things up\": Though OBM finds a location, UnifiedNlp doesn't seem to pick it up – but reports the Google location instead (details in the linked issue; and yes, I do have the *Xposed UnifiedNlp* module installed and loaded – as in all my tests, it reports having found a location, but it's not a UnifiedNlp one) … Or could it be your module doesn't \"hand it through\" here? The above line is the only proof I have OBM found a location – and after all it only reports \"JSON response\", not \"location found\".\r\n\r\nAh, yuck: See a longer excerpt [at this pastebin](http://pastebin.com/vpLjnyRp): Looks like after finding the location, it simply crashes :(\r\n\r\n    java.lang.NoSuchMethodError: android.location.Location.getElapsedRealtimeNanos\r\n\r\nDeviceInfo: This time a tablet running stock 4.1.2, so no cell module/SIM (if you need closer info on the device, just let me know)."},"comment":{"url":"https://api.github.com/repos/wish7code/org.openbmap.unifiedNlpProvider/issues/comments/209251446","html_url":"https://github.com/wish7code/org.openbmap.unifiedNlpProvider/issues/12#issuecomment-209251446","issue_url":"https://api.github.com/repos/wish7code/org.openbmap.unifiedNlpProvider/issues/12","id":209251446,"user":{"login":"IzzySoft","id":6781438,"avatar_url":"https://avatars.githubusercontent.com/u/6781438?v=3","gravatar_id":"","url":"https://api.github.com/users/IzzySoft","html_url":"https://github.com/IzzySoft","followers_url":"https://api.github.com/users/IzzySoft/followers","following_url":"https://api.github.com/users/IzzySoft/following{/other_user}","gists_url":"https://api.github.com/users/IzzySoft/gists{/gist_id}","starred_url":"https://api.github.com/users/IzzySoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IzzySoft/subscriptions","organizations_url":"https://api.github.com/users/IzzySoft/orgs","repos_url":"https://api.github.com/users/IzzySoft/repos","events_url":"https://api.github.com/users/IzzySoft/events{/privacy}","received_events_url":"https://api.github.com/users/IzzySoft/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T06:26:35Z","updated_at":"2016-04-13T06:26:35Z","body":"Sorry for not having responded. I cannot verify this anymore, as my devices meanwhile run newer Android versions. Thanks though!"}}