Intent; import android. PackageManager; import android. Location; import android. LocationListener; import android. LocationManager; import android. Build; import android. Bundle; import android. Settings; import android. NonNull; import android. ActivityCompat; import android. AppCompatActivity; import android. Improve this question. Rohit Suthar 3, 1 1 gold badge 38 38 silver badges 47 47 bronze badges.
Simranjeet Singh Simranjeet Singh 53 1 1 silver badge 8 8 bronze badges. Can you share crash log? You are not supposed to create an instance of Activity in Android explicitly. If your GpsLocation class is intended to be some sort of helper class then don't extend AppCompatActivity. Add a comment. Rookie Bunny. I decided to repost my earlier problem which has not been fully resolved yet.
My phone does not crash if the location toggle is off. I discovered by chance that if I open a navigation app google maps, locus, etc. But you have to keep this sequence. However, this is a rather clumsy way to use my phone for navigation but I have no other options. If anyone has a suggestion apart from the usual factory reset, wipe cache, reinstall navigation apps, etc. We use cookies on this website. To learn in detail about how we use cookies, please read our full Cookies Notice. To reject all non-essential cookies simply click "Save and Close" below.
To accept or reject cookies by category please simply click on the tabs to the left. You can revisit and change your settings at any time. These cookies are necessary for the website to function and cannot be switched off in our systems.
In case you continue experiencing issues with stability, please contact our Support team through a ticket. Submit a request. Back to the section overview. User guide. Connection issues. Share it please. If you did not find the answer to your question in our FAQ, user guide or video guides section, please contact us by filling in the details below. Our support staff will contact you back via email within 48 hours.
Thank you. You request has been sent!
0コメント