The app crashes when opened

in #utopian-io6 years ago

Project Information

Repository : https://github.com/gjedeer/mylocation
Title : My Location
Publisher : gjedeer

Expected behavior

Supposedly, I can open and use the app.

Actual behavior

When I finish installing and trying to open the app, the app can not open or crash. I have tried to reinstall, but the error persists.

How to reproduce

  1. Install the application
  2. Next, open the app, then you will find the error as I experienced.

  • Device: Xiaomi Redmi 4X
  • Operating system: Marshmallow, 6.0.1 mmb29m (CPU: Octa-core Max 1.9 GHz, RAM: 2 GB)
  • Application Version: 1.3.0

Recording Of The Bug

Proof of Work Done

Submitted the issue on GitHub: Click here
My GitHub Profile: https://github.com/ahyar92

Logcat

05-26 16:54:41.346  7159  7159 E AndroidRuntime: FATAL EXCEPTION: main
05-26 16:54:41.346  7159  7159 E AndroidRuntime: Process: net.mypapit.mobile.myposition, PID: 7159
05-26 16:54:41.346  7159  7159 E AndroidRuntime: java.lang.RuntimeException: Unable to resume activity {net.mypapit.mobile.myposition/net.mypapit.mobile.myposition.MyLocationActivity}: java.lang.SecurityException: "gps" location provider requires ACCESS_FINE_LOCATION permission.
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3136)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3167)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2514)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at android.app.ActivityThread.access$1000(ActivityThread.java:153)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:102)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:154)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:5527)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
05-26 16:54:41.346  7159  7159 E AndroidRuntime: Caused by: java.lang.SecurityException: "gps" location provider requires ACCESS_FINE_LOCATION permission.
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at android.os.Parcel.readException(Parcel.java:1620)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at android.os.Parcel.readException(Parcel.java:1573)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at android.location.ILocationManager$Stub$Proxy.getLastLocation(ILocationManager.java:717)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at android.location.LocationManager.getLastKnownLocation(LocationManager.java:1214)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at net.mypapit.mobile.myposition.MyLocationActivity.registerLocationListener(MyLocationActivity.java:236)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at net.mypapit.mobile.myposition.MyLocationActivity.onResume(MyLocationActivity.java:124)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1259)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at android.app.Activity.performResume(Activity.java:6379)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3125)
05-26 16:54:41.346  7159  7159 E AndroidRuntime:    ... 10 more
05-26 16:54:41.348  7159  7159 E MQSEventManagerDelegate: failed to get MQSService.
Sort:  

Hello @ahyar92, thank you for this concise and explanatory bug-report.

As the PO said, the application crashing has to do with the Location permission not granted and that has been rectified.

Your contribution has been evaluated according to Utopian rules and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post,Click here


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thank you very much @zoneboy

Thank you very much @zoneboy

Hey @ahyar92
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.18
TRX 0.16
JST 0.030
BTC 62630.85
ETH 2463.74
USDT 1.00
SBD 2.61