android utils
1.0.0
It includes a large number of tools commonly used in the Android application development process. The sources of tools are compiled from the Internet and written by myself.
kind | introduce |
---|---|
AnimationUtils | Animation tool class |
AppUtils | APP related information tools |
AssetDatabaseOpenHelper | Read the database tool class in the Asset directory |
BitmapUtil | The Bitmap tool class mainly includes obtaining Bitmap and operating on Bitmap |
CipherUtils | Encryption and decryption tools |
Colors | Commonly used color value tools |
CommonUtil | some common methods |
ChannelUtil | Channel tool-type extremely fast packaging portal born for packaging |
DataCleanManager | Application data clearing class, the main functions are clearing internal/external cache, clearing database, clearing SharedPreference, clearing files and clearing custom directories |
DatabaseExportUtils | Export application database tool class |
DateUtils | Date tool class |
DeviceStatusUtils | Mobile phone status tools mainly include network, Bluetooth, screen brightness, airplane mode, volume, etc. |
DisplayUtils | System display related tools |
DoubleKeyValueMap | double key value pair |
DownloadManagerPro | Download management tools |
FileUtils | File operation tools |
HanziToPinyin | Chinese character to pinyin conversion tools |
ImsiUtil | IMSI tool class |
JSONUtils | Json parsing tool class |
LocationUtils | Query address information based on longitude and latitude and Query longitude and latitude based on address information |
LogUtils | Log tool class. Lesson reference blog post: Android Log tool class. |
NetUtil | Network tools |
PackageUtils | Application installation and download related |
PhoneUtil | Mobile phone component calling tool class |
PollingUtils | Polling service tool class |
PreferencesCookieStore | Cookie storage tool class |
RUtils | R reflection resource ID tool class |
RandomUtils | Random tools |
RegUtils | Data verification tools |
ResourceUtils | File resource reading tool class |
SDCardUtils | SDcard operation tool class |
SettingUtils | Application configuration tool class |
ShellUtils | shell tool class |
ShortCutUtils | Shortcut tool class |
Singleton | Singleton pattern abstract class |
StringUtils | String manipulation toolkit. Other operations on strings can use the TextUtils class. |
ViewAnimationUtils | The View Animation Toolbox provides simple tools and methods for controlling the animation of views. |
ViewUtils | View related tool classes |
ViewFinder | findViewById alternative tool class |
WindowUtils | Window tool class |
BaseApplication | Application Application here is mainly for error handling. |
BaseCrashHandler | Catch exceptions uniformly in the Application, save them to a file and upload them the next time you open them. |
RebootThreadExceptionHandler | Restart the thread exception handler. When an unknown exception occurs, exception information will be prompted and the application will be restarted after one second. |
StartAppReceiver | Restart the application broadcast receiver. |
ToastsUtils | Toasts pop-up box. |
SharesUtils | Share, call the sharing string or picture that comes with the phone. |
DeviceUtils | Get device unique identifier |
The classes containing the Util keyword in the AOSP source code are listed as follows:
// 系统
./ android / database / DatabaseUtils . java
./ android / transition / TransitionUtils . java
./ android / view / animation / AnimationUtils . java
./ android / view / ViewAnimationUtils . java
./ android / webkit / URLUtil . java
./ android / bluetooth / le / BluetoothLeUtils . java
./ android / gesture / GestureUtils . java
./ android / text / TextUtils . java
./ android / text / format / DateUtils . java
./ android / os / FileUtils . java
./ android / os / CommonTimeUtils . java
./ android / net / NetworkUtils . java
./ android / util / MathUtils . java
./ android / util / TimeUtils . java
./ android / util / ExceptionUtils . java
./ android / util / DebugUtils . java
./ android / drm / DrmUtils . java
./ android / media / ThumbnailUtils . java
./ android / media / ImageUtils . java
./ android / media / Utils . java
./ android / opengl / GLUtils . java
./ android / opengl / ETC1Util . java
./ android / telephony / PhoneNumberUtils . java
// 设计和支持库
./ design / src / android / support / design / widget / ViewGroupUtils . java
./ design / src / android / support / design / widget / ThemeUtils . java
./ design / src / android / support / design / widget / ViewUtils . java
./ design / lollipop / android / support / design / widget / ViewUtilsLollipop . java
./ design / base / android / support / design / widget / AnimationUtils . java
./ design / base / android / support / design / widget / MathUtils . java
./ design / honeycomb / android / support / design / widget / ViewGroupUtilsHoneycomb . java
./ v7 / recyclerview / src / android / support / v7 / widget / helper / ItemTouchUIUtil . java
./ v7 / recyclerview / src / android / support / v7 / widget / helper / ItemTouchUIUtilImpl . java
./ v7 / recyclerview / src / android / support / v7 / util / MessageThreadUtil . java
./ v7 / recyclerview / src / android / support / v7 / util / AsyncListUtil . java
./ v7 / recyclerview / src / android / support / v7 / util / ThreadUtil . java
./ v7 / recyclerview / tests / src / android / support / v7 / widget / AsyncListUtilLayoutTest . java
./ v7 / recyclerview / tests / src / android / support / v7 / util / AsyncListUtilTest . java
./ v7 / recyclerview / tests / src / android / support / v7 / util / ThreadUtilTest . java
./ v7 / appcompat / src / android / support / v7 / graphics / drawable / DrawableUtils . java
./ v7 / appcompat / src / android / support / v7 / widget / DrawableUtils . java
./ v7 / appcompat / src / android / support / v7 / widget / ThemeUtils . java
./ v7 / appcompat / src / android / support / v7 / widget / ViewUtils . java
./ v4 / tests / java / android / support / v4 / graphics / ColorUtilsTest . java
./ v4 / jellybean - mr1 / android / support / v4 / text / TextUtilsCompatJellybeanMr1 . java
./ v4 / jellybean / android / support / v4 / app / BundleUtil . java
./ v4 / jellybean / android / support / v4 / app / NavUtilsJB . java
./ v4 / java / android / support / v4 / app / NavUtils . java
./ v4 / java / android / support / v4 / database / DatabaseUtilsCompat . java
./ v4 / java / android / support / v4 / graphics / ColorUtils . java
./ v4 / java / android / support / v4 / text / TextUtilsCompat . java
./ v4 / java / android / support / v4 / util / TimeUtils . java
./ v4 / java / android / support / v4 / util / DebugUtils . java
./ v4 / java / android / support / v4 / content / res / TypedArrayUtils . java
allprojects {
repositories {
// other repositories
maven {
url "http://dl.bintray.com/ihongqiqu/maven"
}
}
}
dependencies {
compile 'com.ihongqiqu:android-utils:1.0.2'
}
< uses-permission android : name = " android.permission.INTERNET " />
< uses-permission android : name = " android.permission.WRITE_EXTERNAL_STORAGE " />
< uses-permission android : name = " android.permission.ACCESS_NETWORK_STATE " />
< uses-permission android : name = " android.permission.BLUETOOTH_ADMIN " />
< uses-permission android : name = " android.permission.BLUETOOTH " />
<!-- 获取 UUID 用到 -->
< uses-permission android : name = " android.permission.READ_PHONE_STATE " />
< application
android : name = " com.ihongqiqu.app.BaseApplication " >
To release the official version annotation Log, you only need to set LogUtils.DEBUG_LEVEL = Log.ASSERT
.
Code obfuscation only requires adding the following code to the Proguard rule file (proguard.cfg file under Eclipse):
-keep class com.ihongqiqu.** { *; }
-keepclassmembers class com.ihongqiqu.** { *; }
-dontwarn com.ihongqiqu.**
Copyright 2014-2017 Zhenguo Jin
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.