/android

Common Utils library is developed to reduce efforts to achieve common features of the android apps. While developing the apps, we realized that we’re coding for many common features in all the apps. For e.g. check the network’s availability, using shared preferences, parsing, etc. And like us, many other android developers might be doing the same. So it needs to be reduced for all to save the development time with ease. This is how an idea popped in our mind, and we decided to develop an SDK which can reduce developers’ time and efforts.

Primary LanguageJavaMIT LicenseMIT

CommonSDK

This Project contains Library of commonly used methods and it's examples.

Library contains easy way to implement social sdk i.e : Facebook, Twitter, Google+, LinkedIn.

This Project includes following common features.

EditText empty validation.
Check network available or not (Internet or Wifi).
Email address validation.
Get current date in String format.
Get device id of from your device.
Set Preferences and get Preferences. Like String, int, long, Boolean, Float.
Remove all preferences. 
Get current location.
Pinch Zoom on image.
Get application Icon drawable.
Send local notification.
Disable sleep mode on while using application.
Enable sleep mode on while using application.
Open image from selected directory path.
Open video from selected directory path.
Open URL to mobile browser.
Shows address location on map.
Create folder or directory.
Download image from URL.
Show date picker.
Show time picker.
Get number of file counts.
Calculate date difference.
Convert date from string to date format.
Get device height.
Get device width.
Get random number.
Add postfix to numbers.
Convert comma separated string to array list.
Convert arrayList to comma separated string.
Play background music.
Stop background music.
Apply blur effect on image.
Convert drawable to bitmap.
Convert bitmap to drawable.
Get device volume for application for sound.
Set bitmap image to preferences.
Get bitmap image form preference.
Get application version code.
Set vertical text-view (left & right).
Check Whether Sd card is available on Device.
Show Share Dialog.
Change Device Profile (Silent or Vibrate or Normal).
Change bitmap to Rounded Cornered.
Show Alert Dialog or Toast.
Preventing double click.
Capture Image.
Pick Image.
Preview Captured Image.
Record Video.
Pick Video.
Preview Captured Video.
Get path of picked image or video (for all versions).
Integrating Social Platforms.
Adding Ripple Effect.
Check Website url is valid or not.
Get all contacts that have email address.
Get bitmap of view (ScreenShot).
Pick Color from ImageView.
Get File Size.
Download File.

You can download the demo apk: https://github.com/CommonUtils/android/blob/master/UtilsDemo.apk

Refer UtilsExampleExplanation.pdf for learning how to use methods of this SDK. https://github.com/CommonUtils/android/blob/master/UtilsExampleExplanation.pdf