Android常用功能开发库:Common Utils
dy223
10年前
常见的Android开发工具类库,以减少实现Android应用程序常见功能的开发。如检查网络的可用性,shared preferences使用、解析等Android开发者可能经常会碰到的功能。具体如下:
EditText 空值校验. 检查网络是否可用 (Internet or Wifi). Email 地址校验. 取得当前日期的字符串格式. 取得设备Id 设置Preferences 和取得 Preferences. 如String, int, long, Boolean, Float. 删除所有 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). 从ImageView取得颜色. 取得文件大小. 下载文件.