Android Question Activity_Resume not called in some devices

FabioC6

Member
Licensed User
Hi,

I've a problem with Activity_resume on Main, I've noticed that on devices with KitKat when I finish the Activity I started from Main the method Activity_Resume is not called and the app goes to background.

This problem seems to be happening only on devices with KitKat.

Any ideas ?

Thank you.


Main Activity
B4X:
Sub Activity_Create(FirstTime As Boolean)

   Dim startApp As Long=DateTime.Now
   Function.loadDb
   StartActivity(FrmLogin)
   Activity.LoadLayout("FrmMain")
   ltx.initialize(Me,"Finito",Starter.CreatoreApp,False,"")
   FrmFtp.automaticClose=True
   Function.loadConfig
   CallSubDelayed(Me, "LoadLists")
End Sub




FrmLogin

B4X:
Sub bt_invio_Click
   Dim phn As Phone
   phn.HideKeyboard(Activity)
   
   Dim user As String=Function.SelectCampo(VariabiliGlobali.db.DIBI,"select ID_User from Users where Username='"&Function.StringToDb(customedit1.Text)&"'",0)
   If user ="" Then
     ToastMessageShow("User not found!",False)
     Return
   End If
     
   Function.user=user
   Activity.Finish
End Sub
 
Top