image - Android, loading picture closes application -


loads Init values ​​from database Onkret method main activity my app. Debugging, I found that when I press the button to load an image to start a new activity, then stop the debugger and in fact, when I returned to the app, then you Onstart method executed again it occurs.

I call to start this activity:

  means I = new Intent (Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI ); StartActivityForResult (i, RESULT_LOAD_IMAGE);  

I'm testing on a smartphone that has 256 MB of RAM, can this be the problem? I mean there is not enough RAM so that the app stops and then the image will be opened again when the image is over. What will be the best way to avoid re-loading of these Vite Value?

It would certainly lack the RAM, I tested now on the phone with 1 GB And it does not happen. But the phone with low RAM is a very good test system to test specially saved / revision examples. It's all broken but it's still running so I will not remove it.


Comments