See this page:
Tricks Of The Trade - Basic4android Wiki
This is will happen by default.
Sub Process_Globals
Dim StartTime As Long
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then StartTime = DateTime.Now
activity.Title = "I was started " & DateTime.Time (StartTime)
End Sub
Do you mean that when i quit my running app by pressing the home button, if run my app a second time, in fact it is the first one that reappears?
Try the following code:
B4X:Sub Process_Globals Dim StartTime As Long End Sub Sub Activity_Create(FirstTime As Boolean) If FirstTime Then StartTime = DateTime.Now activity.Title = "I was started " & DateTime.Time (StartTime) End Sub
As long as Android does not decide to kill the process, you will see after every start of your app the same time in the title bar.
It depends. The conditions under which your app may or may not start up again where it left off are explained at the link in my previous message.
How to handle the different conditions is also explained there.