Android Question reset activity with shared images from other apps

Avelinux

Member
Hi everybody, Im using the code of this example:
to receive an image from other apps to my virtual catalog app.
My problem is that when I created a list with images and then I receive a shared image, the activity suddenly Resets and this shared image becomes image #1 and erase everything else, I can´t use debug mode because sharing only run in release mode.
So, I could sort this by and saving my previous images before receiving from other apps and when receiving first loading previous images and then loading the shared image, but i wish to know if this happened by some sort of bug or Im mistaken someting.
Thanks in Advanced :D
 

Avelinux

Member
Didn´t upload the project in 1 zip (1.47 Mb) so have to load in 4 zips
 

Attachments

  • VirtCat.part1.rar
    450 KB · Views: 102
  • VirtCat.part2.rar
    450 KB · Views: 96
  • VirtCat.part3.rar
    450 KB · Views: 98
  • VirtCat.part4.rar
    163.6 KB · Views: 92
Upvote 0

Avelinux

Member
the problem is the activity killed by system before loadin share image:

B4X:
 Killing previous instance (main).~i:** Activity (main) Create, isFirst = false **~i:** Activity (main) Resume **
 
Upvote 0

Avelinux

Member
in Erel´s post he recommends to "Test it in release mode. Otherwise the process might be killed while the app is in the background and it will fail to start when the image is shared."
Then sometimes this can happen in release mode too :s
I solved by saving previous images and shared image and when restart load everything
 
Upvote 0
Top