This library is basically a collection of helper methods, which we use while building android apps.
Both Java and Kotlin version are persent in it. All the methods and parameters are same in both of them.
For Java Use below dependency:-
implementation 'com.menasr.andy:andy:1.0.1'
For Kotlin use below dependency:-
implementation 'com.menasr.andyktx:andyktx:1.0.1'
or you can direct download the library and use it in you project.
Initialize once in your app(for ex - Splash screen)
Andy.init(context);
After initialization you are ready to use it. You can use it in any activity or fragment, just by calling like..
Andy.IMAGE.<method name>;
Andy.INTENT.<method name>
Andy.MAPS.<method name>
Andy.FILES.<method name>
Andy.DEVICES.<method name>
.
.
.
and so on
Or you can directly initialize the class and use the object like
//Ex. For resources in Java
AndyResources res = new AndyResources(this.getApplicationContext())
or in kotlin
val res = AndyResources(this.applicationContext)
- PermissionManager - Responsible for handling all permissions upto android Pie(28). Just create an object for use. The class contains all the necessay documents for help. Please, refer to class docs for usage(For both java and Kotlin).
Rest is self explanatory, or your can just use ctrl+space to see method defination, In every method there is method declaration and details are present.
- New methods
- Screenshots for better understanding