HS Android - Android development process: no pain no gain
Serhii Yaremych, Android developer, Master of Code Global
Every device is a village, which means that everybody has to cooperate to make the user experience on that device work. You can all make it worse together, or you could make it nice together.
- “Gee, can you free up some memory?”.The system is asking because it needs more memory now. The bigger your app the more chances you will have to get killed once the app is in the background.
is a bitmap, or results in a bitmap, will result in that being uploaded to the GPU. For example, if you’re drawing a path, these things go into bitmaps which get uploaded as textures, and can cost. You may suffer performance bottlenecks because of that.
for the controller because it has to do the collection and keep track of what’s used and what’s not. That means that if your application is in the background doing a lot of I/O operations, you might slow down everybody else.
commons”: everybody thinks that their application is the most important. If everybody has that attitude, then everybody’s going to be as large and active as possible, and the device will be brought to its knees.
android data structures(Sparse family, ArrayMap) • Be mindful of XML and JSON usage • Avoid JNI • Avoid reflection • Primitives vs boxed primitives • Be careful with finalizers
relatives path only • Use storage cache for temp files • Avoid SQLite for simple needs • Avoid using too many databases • Let user choose content storage location