Util Manager — Android

Sumudu Sahan Weerasuriya
2 min readDec 11, 2019

Are you trying to create an Android Application which includes bio-metric authentications and some necessary data validations? If yes, this article will help you.

In this article, I will explain you how to implement some validations and bio-metric authentications with Util Manager library. Util Manager is an Open-Source Android Library which is developed by my self and that library supports for NIC validations, Mobile number validations, email validations, card validations, SharedPreference, DateTime, GPS, Network, Amounts and many more.

In bio-metric authentications, this library will support for both BiometricPrompt (Both faceID and Fingerprint) and custom fingerprint validation method.

Repository — https://github.com/Sumudu-Sahan/Utils_Manager

Implementation with Util Manager in easy way

  1. Create and Android Application
  2. Add the JitPack repository to your project level build.gradle file

3. Add the dependency to your app level build.gradle file

This library packs with SDP, SSP libraries, androidx bio-metric library and GPS, network,vibrator, bio-metric related permissions. Therefore no need to add below mentioned permissions again and libraries.

Below permissions are already included inside the library

Below dependencies are already included inside the library

4. Sync the project

Bio-metric Authentication

This library supports bio-metric authentications with Face ID and Fingerprint. (Face ID will support with BiometricPrompt and for older versions, this library supports with custom fingerprint authentications)

Card Number Validations

This library supports for validate card numbers with luhn algorithm, get the type of card numbers and format the card number.

Returning Card Types

ToastManager

This library supports for Snackbars, default android Toast messages and Top bar toast messages.

Top Bar Toast

Available duration for Top Bar Toasts

Snackbars

Mobile Number Validations

This library supports to validate mobile numbers with careers in Sri Lanka. Library supports all the mobile numbers which starts from +94, 0094 and 0 formats.

Get Career from the Mobile Number

Currently Available Careers in Sri Lanka

For more information, Please refer the wiki in repository.

That’s it!!!

Congratulations on setting up your Android application with Util Manager Library and I hope you found the article helpful with getting you ready to use the Util Manager Library. Happy coding!

--

--

Sumudu Sahan Weerasuriya

Senior Software Engineer @ WSO2 | 2nd Runner-Up of WSO2 Certified Employee of the Year — 2021 | 10X WSO2 Certified | BIT(UCSC) | DiHN | OCPJP