Android library to get device information in a super easy way.
The library is built for simplicity and approachability. It not only eliminates most boilerplate code for dealing with device information, but also provides an easy and simple API to retrieve them.
- Featured in Android Weekly #Issue209
Starting with 1.1.8
, Changes exist in the releases tab.
- EasyDeviceInfo is available in the MavenCentral, so getting it as simple as adding it as a dependency
compile 'com.github.nisrulz:easydeviceinfo:1.2.1'
- Create an instance of EasyDeviceInfo class
EasyDeviceInfo easyDeviceInfo=new EasyDeviceInfo(context);
- Next call the required function on the easyDeviceInfo instance such as
String formatted_time=easyDeviceInfo.getFormattedTime();
String language=easyDeviceInfo.getLanguage();
For more detailed usage, check the Wiki
I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:
- Match coding style (braces, spacing, etc.) This is best achieved using
CMD
+Option
+L
(Reformat code) on Mac (not sure for Windows) with Android Studio defaults. - If its a feature, bugfix, or anything please only change code to what you specify.
- Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)
- Pull requests must be made against
develop
branch. Any other branch (unless specified by the maintainers) will get rejected. - Check for existing issues first, before filing an issue.
- Have fun!