• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

LocationManager problem

Solved the problem like this
Java:
 if (ActivityCompat.checkSelfPermission(YourActivity.this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(YourActivity.this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
          ActivityCompat.requestPermissions(YourActivity.this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 1);
          return;
    }else{
     
        mLocationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
        mLocationManager.addGpsStatusListener(this);
        mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 500, 0, this);
    }

Thank for your efforts! Appreciate it!

Is it possible to unlock an Samsung Note 9 phone with out the pin security number

Am sorry thank you for your answers.. that means they cant acces my files? At all correct?
not unless they have the correct information.....like your gmail address and password associated with it. if you change the password on your gmail account you are pretty much solid as far as being secure.

How to find out if sim card is defective

This sounds like there's just some glitch brought on by losing power (i.e. not a proper shutdown where all active services, even in the background, get a shutdown command). If you go into your Settings menu and look into your cellular service, check if there's any option to re-establish your cellular account -- its location will vary depending on your phone model and carrier. If that doesn't work out, also buried somewhere in your Settings menu will be a 'Network settings reset' option. If you do a Network reset note that this will wipe any network related settings back to their defaults so along with resetting your cellular service settings it will also be wiping any saved WiFi networks and saved Bluetooth pairings.

Tasker for cutting off my mobile addiction

@MoodyBlues Yes that Tasker app is what I am talking about.
Okay, that helps a lot!

I just installed Tasker yesterday (and haven't used it yet), but I know we have members who use it and can probably help.
What I tried is something roundabout way. But even this roundabout way didn't work.

Trigger = Time "Every 2m"
Task = Kill app

But I want to shut down the phone, not just kill the app. Also I want a trigger that is activated when I use this app for more than 1 or 2 minutes, but just "every 2m"
Now that we know you're using Tasker, and what you want to accomplish with it, someone should be able to help get you there.

Why I lose Wi-Fi connection when I turn off my phone screen?

https://www.androidcentral.com/android-101-save-battery-keeping-wifi-alive

Double-check that this option isn't just buried at deeper level somewhere in your Settings menu. Different manufacturers often alter the user interface, especially Samsung. Check in your Settings >> Wi-Fi >> More menu, a lot of options have to get nested inside other options because they might be contextually related or simply because some features are just complicated.

How to track my android phone which was stolen from me

Unless you tell us what those "other means" are you'll likely just get the same suggestions you've already tried.

If you've already got a tracking app installed you can use that. This includes Google's "Find my Device": if you enabled that before you lost it you can go to a web browser and locate it.

If you have not got such an app installed and active, there is nothing you can do. This is an old thread, and while the advice about "Plan B" was correct at the time it hasn't worked for several years. If the phone is turned off, or has been factory reset, there is nothing you can do. If the phone is out of coverage there is nothing you can do unless it comes back into coverage.

If you believe the phone has been stolen then my advice would be to report the theft and get your carrier to blacklist the phone (and get a crime number for the insurance claim, if you have insurance).

Filter

Back
Top Bottom