Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Each time your Activity goes out of screen, it will be stopped and may get destroyed. So each time you return to your activity, there is a chance that it get re-started from the beginning. That means your onCreate() method is being called(most likely) again. You can learn about Android Activity Life Cycle here. <a href="http://developer.android.com/training/basics/activity-lifecycle/index.html" rel="nofollow">http://developer.android.com/training/basics/activity-lifecycle/index.html</a></p> <p>Applications in android doesn't work in the same way as you expect in desktop operating system. Your Activity can get destroyed at any time or your Activity can be called to display at anytime.</p> <p>Of course you can save information about the image chosen by the user last time. But you need to be aware of Android Activity life cycles first.</p> <p>In fact you can save information of user's choice and load it next time the Activity is created.</p> <p>If you want to make sure that your activity can display the image even after it is moved or deleted, then you can copy it to a Cache folder or store it inside SQLite database(though storing images in SQlite database is not recommended). Instead of cacheing the actual image, you may create a low resolution version of it using BitmapFactory class.</p> <p>Android-Universal-Image-Loader library worth a look <a href="https://github.com/nostra13/Android-Universal-Image-Loader" rel="nofollow">https://github.com/nostra13/Android-Universal-Image-Loader</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload