D
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
End Sub
Sub Activity_Resume
Msgbox2Async("Message", "Titel", "OK", "", "", Null, False)
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
This is the proof that the defect is in the Samsung with Android 8.0, thank you!Honor 9 - Android 8.0
Do I have to buy one for a trial?This is the proof that the defect is in the Samsung with Android 8.0, thank you!
Samsung S6 - Android 7if you want, I do not mind!
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Yes@Filippo : I have perhaps found something : if the app is uploaded from B4A while the screen is OFF than the app is Resumed twice (it seems normal as I understand the app to be in the background). But if the screen is ON it does not resume twice.
But if the app is killed and relaunched it is again resumed twice.
Please could you confirm ?
This is expected and it normally only happens during development. It is not related to the issue Filippo encountered.if the app is uploaded from B4A while the screen is OFF than the app is Resumed twice (it seems normal as I understand the app to be in the background). But if the screen is ON it does not resume twice.
it may be that the problem occurs only in the so-called cheap devices?Samsung Note 8, Android 8
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
OK, now I am finished with my Latin.Samsung S8, Android 8
B4X:*** Service (starter) Create *** ** Service (starter) Start ** ** Activity (main) Create, isFirst = true ** ** Activity (main) Resume ** ** Activity (main) Pause, UserClosed = false ** ** Activity (main) Resume **
Then my theory is no longer correct.it may be that the problem occurs only in the so-called cheap devices?
Sub Activity_Resume
Sleep(1000)
Msgbox2Async("Message", "Titel", "OK", "", "", Null, False)
Log("Time:" & DateTime.Time(DateTime.Now))
End Sub
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Time:09:06:43
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
Time:09:06:48
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Time:09:19:49
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
Time:09:19:54
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Time:09:18:28
Now the error in B4a, if there is a mistake, perhaps resolved, but not necessarily.So, looks like the problem lies in B4a and Android 8.0.
Whenever an app is compiled and executed directly, the Sub Activity_resume is executed twice.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?