I use my phone and also my tablet. Connect via USB. Go to Settings | Developer Options. Turn it on.
Also turn on USB debugging in your phone.
In your B4A program, make Log statements as such. Change to suit your need about the script variable.
If FirstTime Then
Log("Log.Main.Activity_Create First Time")
Else
Log("Log.Main.Activity_Create Not First Time")
End If
Run the program and look at the Logs tab.