krtkush / MarsExplorer

Android app to easily browse images captured on Mars.
https://play.google.com/store/apps/details?id=io.github.krtkush.marsexplorer
GNU General Public License v3.0
14 stars 3 forks source link

Manage App's memory consumption #1

Closed krtkush closed 8 years ago

krtkush commented 8 years ago
  1. https://developer.android.com/training/articles/memory.html
  2. https://developer.android.com/studio/profile/investigate-ram.html
  3. https://stackoverflow.com/questions/8177802/garbage-collection-in-android-done-manually
  4. https://developer.android.com/training/displaying-bitmaps/index.html
  5. http://doublenegative.com/android-fragments-and-memory/

Loading multiple tabs makes the app stutre and ultimately crash with "OutOfMemoryException".

krtkush commented 8 years ago

https://stackoverflow.com/questions/18747975/difference-between-fragmentpageradapter-and-fragmentstatepageradapter

Switching to FragmentStatePagerAdapter makes a huge difference.