Android Question After calling intent. Activity Create is firing?

rafaelmotaquintana

Active Member
Licensed User
I have this piece of code
B4X:
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
learn about activity lifecycle
You can´t prevent it. That´s how android works
 
Upvote 0
Top