AppsUsageMonitorAPI icon indicating copy to clipboard operation
AppsUsageMonitorAPI copied to clipboard

Application Wifi & Mobile Data usage Not working

Open natheeshsunway opened this issue 5 years ago • 3 comments

Application Wifi & Mobile Data usage Not working at above android version 10.

natheeshsunway avatar Oct 07 '20 04:10 natheeshsunway

can anyone please take look through this bug.

natheeshsunway avatar Oct 20 '20 01:10 natheeshsunway

Are you handling android.permission.READ_PHONE_STATE runtime permission ?

TheBotBox avatar Oct 24 '20 14:10 TheBotBox

Yes.... I defined in manifest also...and I ask this permission to the user during runtime...

                Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {
            ActivityCompat.requestPermissions(Objects.requireNonNull(getActivity()), new String[] 
             {Manifest.permission.READ_PHONE_STATE}, 100);
        }``` 

and 

``` if (ActivityCompat.checkSelfPermission(context, Manifest.permission.READ_PHONE_STATE) == PackageManager.PERMISSION_GRANTED) {
.....
}```

in my project @TheBotBox 

natheeshsunway avatar Oct 24 '20 16:10 natheeshsunway