| SQLiteOpenHelper | · 特点:Android自带 · SQLiteOpenHelper类(抽象类),需要创建类继承。 · SQLiteOpenHelper类中有两个抽象方法需要重写:onCreate()\onUpgrade() · SQLiteOpenHelper有2个重要的实例方法:getReadableDatabase()\getWritableDatabase() · 数据库文件会存放在:/data/data/<package name>/databases/目录下 |
| LitePal | · 特点:利用反射机制的ORM(对象关系映射)模式,效率相对不高,但使用简单 |
| Realm | · GitHub地址:https://github.com/realm/realm-java · 特点:不基于SQLite、快速、跨平台(iOS\OS X\Android)、面向对象驱动非关系驱动、是MVCC数据库 |
| GreenDao | · GitHub地址:https://github.com/greenrobot/greenDAO · 特点:可加密、轻量型(<150K)、快速、使用简单 |
| DBFlow | · GitHub地址:https://github.com/Raizlabs/DBFlow · 特点:基于SQLite、快速、功能强大、高性能 |
| Gson | · 特点:Google出品,目前最多人用、轻量(227K)、效率高 |
| FastJson | · 特点:阿里出品、快速、轻量(196K)、易用、FastJson对bean有要求,必须要有默认的构造函数。 |
| Jackson | · 特点:jar包超过1M,不算轻量 |
| OkHttp | · GitHub地址:https://github.com/square/okhttp · 特点:高性能,适合大量且复杂数据通讯 |
| Volley | · 特点:Google出品、易用、基于网络队列,适合小数据频繁通讯 |
| Rerofit | · GitHub地址:https://github.com/square/retrofit · 特点:基于OkHttp做的封装 |
| Butterknife | · GitHub地址:https://github.com/JakeWharton/butterknife · 特点:依赖注入 |
| Dagger2 | · GitHub地址:https://github.com/google/dagger · 特点: |
| AndroidAnotations | · GitHub地址:https://github.com/androidannotations/androidannotations · 特点: |
| RoboGuice | · GitHub地址:https://github.com/roboguice/roboguice · 特点: |
| Android-Universal-ImageLoader | · GitHub地址:https://github.com/nostra13/Android-Universal-Image-Loader · 特点:支持下载进度监听、 |
| Picasso | · GitHub地址:https://github.com/square/picasso · 特点: |
| Glide | · GitHub地址:https://github.com/bumptech/glide · 特点:支持Okhttp、Volley |
| Fresco | · GitHub地址:https://github.com/facebook/fresco · 特点: |
| LeakCanary | · GitHub地址:https://github.com/square/leakcanary · 特点:发现内存泄漏 |
| ACRA | · GitHub地址:https://github.com/ACRA/acra · 特点:奔溃信息收集 |
| EventBus | · GitHub地址:https://github.com/greenrobot/EventBus · 特点:简化Activities, Fragments, Threads, Services之间的通讯。 |
| Otto | · GitHub地址:https://github.com/square/otto · 特点: 是square的一个开源框架; |
| MPAndroidChart | · GitHub地址:https://github.com/PhilJay/MPAndroidChart · 特点:十分强大的图表框架 |
| Agrea | · GitHub地址:https://github.com/google/agera · 特点:响应式编程框架;谷歌官方的轻量安卓库 |
| tinker | · GitHub地址:https://github.com/BuglyDevTeam/Bugly-Android-Demo · 特点:热修复 |

本文介绍了Android开发中常用的数据库、网络请求、图片加载等框架,并详细对比了它们的特点及适用场景。
1325

被折叠的 条评论
为什么被折叠?



