Giter Club home page Giter Club logo

Comments (8)

Jose92 avatar Jose92 commented on August 10, 2024 1

I encountered the same problem on Android 11, version F-Droid.
In the file xyz.malkki.neostumbler.location.PlatformLocationSource I replaced :
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, locationIntervalMillis, 0.0f, locationListener)
with
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, locationIntervalMillis, 0.0f, locationListener, Looper.getMainLooper())

(line 40)

and it works again.

from neostumbler.

mjaakko avatar mjaakko commented on August 10, 2024 1

Ah, sorry you are correct. GPS was deactivated. It works if it is active. Maybe this should be checked to avoid the crash.

I've created a fix for this, #138

from neostumbler.

mjaakko avatar mjaakko commented on August 10, 2024

Would you have more details available?

Which device and Android version are you using? Are you using fdroid or full variant of the application? Does this happen every time?

Also if you have any logs, that would be very useful

from neostumbler.

AsmodeumX avatar AsmodeumX commented on August 10, 2024

Would you have more details available?

Which device and Android version are you using? Are you using fdroid or full variant of the application? Does this happen every time?

Also if you have any logs, that would be very useful

Samsung J8 Android 10
Downloaded from F-Droid
Version 1.1.3

It happened every time I pressed "Start scanning"

from neostumbler.

HorayNarea avatar HorayNarea commented on August 10, 2024

I have experienced the same crashing behaviour with the F-Droid Version on:

  • Redmi Note 9 Pro with Android 11
  • Samsung Galaxy A3 2016 (SM-A310F) with Android 11

the Full Version works fine.

Haven't had time to investigate more but will try to do so tomorrow or the day after tomorrow.

from neostumbler.

billie80 avatar billie80 commented on August 10, 2024

I still experience crashes when trying to start a scan or accessing the map view with the F-Droid version. This doesn't happen with the Full version.

Device: Shift6mq, Android 10
NeoStumbler version: 1.2.3

Logs for both versions:
f-droid.log
full.log

In the F-Droid log there is a permission violation error regarding location and then the App crashes.
However location and phone permission are granted

from neostumbler.

mjaakko avatar mjaakko commented on August 10, 2024

@billie80 Do you have GPS turned on? From the logs it looks like what might be happening is that GPS is turned off and that causes the crash because the callback function is not implemented

from neostumbler.

billie80 avatar billie80 commented on August 10, 2024

Ah, sorry you are correct. GPS was deactivated. It works if it is active.
Maybe this should be checked to avoid the crash.

from neostumbler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.