Android technology experience summary

1.Android is based on java, and the abstract package of java should be used and used more.
2. It is the selection. It is impossible to start from scratch for rapid development of many projects, so the selection of technology is particularly critical.
The following are commonly used better development frameworks
Network access framework: okhttp, retrofit, android-async-http, volley
Image loading framework: Android-Universal-Image-Loader, Glide, Fresco, Picasso
Cache framework: DiskLruCache, Robospice
Json parsing framework : Gson, Fastjson, Jackson
Event bus: EventBus, Otto
ORM framework: GreenDAO, Litepal
and various other open source custom controls, animations, etc. In addition to the open source frameworks mentioned above, it also includes some non-open source SDK
data statistics: Umeng statistics, Baidu statistics...
Crash collection: Tencent bugly, bugtags...
Cloud storage: Qiniu...
Even communication: ring Xin, Rongyun, Ali Baichuan...
Push: Xiaomi Push, Tencent Push, Baidu Push...
Security Reinforcement: 360 Strengthening Treasure, Ai Encryption...

3.mvc development mode change mvp
open source project:
https://github .com/pedrovgs/EffectiveAndroidUI
https://github.com/antoniolg/androidmvp

4. Performance optimization
Regarding performance optimization, we generally focus on those aspects: memory, CPU, power consumption, freeze, rendering, process survival rate, etc. For the performance optimization ideas and analysis methods in these places, there are already many answers on the Internet, so I will not repeat them here. I just want to say the following points:

Don't do performance optimization too early, the app should be usable first and then be easy to use. Spending a lot of time on optimization when the requirements have not been completed is putting the cart before the horse;
optimization should speak with actual data, and use testing tools for testing (such as: NetEase's Emmagee, Tencent's GT and APT, iTest from iFLYTEK, Google's Battery Historian). After all, the boss asks you how much power consumption has been reduced compared to before, but you can't answer that it has been reduced by a little?
Any means of keeping alive without reducing performance loss are hooligans.
Summary: Reasonable optimization, data quantification

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327010073&siteId=291194637
Recommended