R rafaelmotaquintana Active Member Licensed User Apr 12, 2016 #1 I have this piece of code Code: Copy Sub ViewPicture(lImagen As String) Dim it As Intent it.Initialize(it.ACTION_VIEW, "file://" & lImagen) it.SetType("image/*") StartActivity(it) End Sub In one device, Galaxy S4, after pressing back from the gallery to view the picture, program remains at the same point it was left after calling the function. In other device, an Ematic tablet, after pressing back and close the gallery, the program behave different. It launch Activity Create, with Firsttime = false. That creates a problem for me right now. Could this be prevented?
I have this piece of code Code: Copy Sub ViewPicture(lImagen As String) Dim it As Intent it.Initialize(it.ACTION_VIEW, "file://" & lImagen) it.SetType("image/*") StartActivity(it) End Sub In one device, Galaxy S4, after pressing back from the gallery to view the picture, program remains at the same point it was left after calling the function. In other device, an Ematic tablet, after pressing back and close the gallery, the program behave different. It launch Activity Create, with Firsttime = false. That creates a problem for me right now. Could this be prevented?
DonManfred Expert Licensed User Longtime User Apr 12, 2016 #2 learn about activity lifecycle You can´t prevent it. That´s how android works Upvote 0
R rafaelmotaquintana Active Member Licensed User Apr 12, 2016 #3 Ok. Just that I can't figure out why it happens on one device, and not in other. Upvote 0