Skip to content

Simple Utility Class containing checks to all system services

Notifications You must be signed in to change notification settings

adnan-SM/UtilityClassDemo

Repository files navigation

UtilityClassDemo

This is a simple Utility class conatining static methods to check the availability of various system services in Android.

Usage :

Just copy the Utility.java in your project and call the appropriate static methods.

Some Examples :

boolean isGPSEnabled =  Utility.isGPSEnabled(getApplicationContext());
boolean isWifiEnabled = Utility.isWifiEnabled(getApplicationContext());
boolean isNFCEnabled =  Utility.isNFCEnabled(getApplicationContext());

I am not a great fan of libraries, so if you feel you don't need something feel free to modify the methods in Utility.java

Each method has a short description of what it does and which permission it requires. This should help you to decide which permissions to include in your Manifest

==========================================================================================================================

About

Simple Utility Class containing checks to all system services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages