Android Question Returning from an application launched

ComposerB4A

Member
Licensed User
Longtime User
Hi to all, thaks to all aids in forums, any person know ¿how Return from an application launched?
(i know that is possible from a service but ¿Which function to use?)
(the idea is return to "previous screen")

B4X:
Sub Process_Globals
End Sub

Sub Globals
End Sub

Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("7")
End Sub

Sub Activity_Resume
End Sub

Sub Activity_Pause (UserClosed As Boolean)
End Sub

Sub Button1_Click
Dim In As Intent
File.Copy(File.DirAssets, "1.jpg",File.DirRootExternal,"1.jpg")
In.Initialize(In.ACTION_VIEW, "file://" & File.Combine(File.DirRootExternal,"1.jpg"))
In.SetType("image/*")
StartActivity(In)   
End Sub
 

ComposerB4A

Member
Licensed User
Longtime User
Thanks,
I may that not well explained the question,
Applying the theme for "my app" (code of up) launch the viewer (external), i want return to "my app", not close "my app", i want close the "viewer" (external), most probably using a service.
I actually use the "startactivity(main)" in one service (for return to "my app" screen), but i not know if this is correct.
 
Upvote 0
Top