Italian Activity_Resume

nonno

Active Member
Licensed User
Longtime User
Ciao ragazzi, un app che funzionava con Activity_Resume, in B4X ho provato con B4XPage_Resunable ma non funzione, vorrei che un modulo non vada in pausa. Qualche consiglio ?
 

Star-Dust

Expert
Licensed User
Longtime User
B4XPage_Resunable?

Devi eescrivere meglio, quello che hai scritto non vuol dire niente.
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
dimmi dove.
Io non credo che nemmeno esista, ti starai confondendo con un altro evento
 

Star-Dust

Expert
Licensed User
Longtime User
B4XPages Events

  • B4XPage_Created - Called once when the page is created. This will happen before the page becomes visible or after a call to B4XPages.AddPageAndCreate.
  • B4XPage_Appear - Called whenever the page becomes visible.
  • B4XPage_Disappear - Called whenever a visible page disappear.
  • B4XPage_Background - Called when the app is moved to the background. This event will be raised in all pages that implement this sub, not just the top event. This is a good place to save anything that needs to be save as the process might be killed later. Note that in B4J it is raised when the last page is closed.
  • B4XPage_Foreground - Called when the app moved to the foreground.
  • B4XPage_Resize (B4J / B4i) - Called when the page is resized.
  • B4XPage_CloseRequest (B4J / B4A) - In B4A it is called when the user clicks on the back key or on the up indicator. In B4J it is called when the user clicks on the close button. See post #4 for more information.
  • B4XPage_MenuClick - Called when a menu item item or BarButton in B4i is clicked. See post #5 for more information.
  • B4XPage_KeyboardStateChanged (B4i) - Called when the keyboard state changes.
  • B4XPage_IconifiedChanged (B4J) - Called when a page is minimized or restored.
  • B4XPage_PermissionResult (B4A) - Raised after a call to rp.CheckAndRequest
 

Star-Dust

Expert
Licensed User
Longtime User
Comunque non ho capito cosa facevi con Activity_Resume
 

nonno

Active Member
Licensed User
Longtime User
B4X:
 Sotto Activity_Resume
    SetState
End Sub

Public Sub SetState
    btnSend.Enabled = Starter.connected
Se Starter.connected Then
btnConnect.Text = "Disconnetti"
lblStatus.Text = "Connesso"
altro
btnConnect.Text = "Connetti"
lblStatus.Text = "Disconnesso"
Termina se
lblMyIp.Text = "Ip: " & Starter.server.GetMyWifiIP
    
End Sub

Vorrei con B4x che SetState non vada in pausa
 

Star-Dust

Expert
Licensed User
Longtime User
Vorresti che chiami SetState all'avvio dell'app o appena rientra dalla pausa ... questo fa il codice che hai postato..

Prova così
B4X:
Public Sub B4XPage_Appear
    SetState
End Sub

Ma stai traducendo il codice con Google? Non sei italiano?
 

nonno

Active Member
Licensed User
Longtime User
Grazziiieee milleee
 

nonno

Active Member
Licensed User
Longtime User
Scusate è la mia avanzata età che mi porta a fare casini
 

Star-Dust

Expert
Licensed User
Longtime User
Scusate è la mia avanzata età che mi porta a fare casini
Io sono bisnonno quasi trisavolo ma non faccio questi casini ?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…