Android Question FirstTime activity load

RUNO

Active Member
Licensed User
Longtime User
I upload sample from a problem .
Events do not change using FirstTime in Main activity
Always executed like the first time
 

DonManfred

Expert
Licensed User
Longtime User
It is working as expected.
It shows Hello world! on firsttime = true
It shows Hello ! on firsttime = false
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
How do you think it does not work for you? Add some log and check the log output.
I can not see a problem in your code except that you show the same message (as the message when firsttime is true) when clicking the button.

Are you clicking the button or just start the app and wait for the async messagebox to appear?

Note that you SHOULD NOT kill the app in the betweentime (or swipe from the recent apps list which does kill the app too)
 
Last edited:
Upvote 0

RUNO

Active Member
Licensed User
Longtime User
How do you think it does not work for you? Add some log and check the log output.
I can not see a problem in your code except that you show the same message (as the message when firsttime is true) when clicking the button.

Are you clicking the button or just start the app and wait for the async messagebox to appear?

Note that you SHOULD NOT kill the app in the betweentime (or swipe from the recent apps list which does kill the app too)

This is another sample for same problem always
isfirst =true evrytime
 

Attachments

  • 1.zip
    8.9 KB · Views: 152
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
It is WORKING as EXPECTED!!!

What exactly are you doing between two app runs??????? <--- !!!

Logger connected to: RF8MB1RD0XZ
--------- beginning of crash
--------- beginning of main
--------- beginning of system
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Firsttime = TRUE -> 0
** Activity (main) Resume **
Activity_Resume
** Activity (main) Pause, UserClosed = false **
Activity_Pause(false)
** Activity (main) Resume **
Activity_Resume
** Activity (main) Pause, UserClosed = true **
Activity_Pause(true)
** Activity (main) Create, isFirst = false **
Firsttime = FALSE -> 9
** Activity (main) Resume **
Activity_Resume
** Activity (main) Pause, UserClosed = true **
Activity_Pause(true)
** Activity (main) Create, isFirst = false **
Firsttime = FALSE -> 9
** Activity (main) Resume **
Activity_Resume

I am pretty sure the problem is YOU.
You did not answered my Questions too
Are you clicking the button or just start the app and wait for the async messagebox to appear?

Note that you SHOULD NOT kill the app in the betweentime (or swipe from the recent apps list which does kill the app too)

In fact you are making it very difficult to help you when you do not answer questions you got. Are you ignoring it? Because of what?

Do NOT expect to get any further help from me; I am not interested to try to help help you any further. Good luck!
 
Last edited:
Upvote 0

RUNO

Active Member
Licensed User
Longtime User
It is WORKING as EXPECTED!!!

What exactly are you doing between two app runs??????? <--- !!!



I am pretty sure the problem is YOU.
You did not answered my Questions too


In fact you are making it very difficult to help you when you do not answer questions you got. Are you ignoring it? Because of what?

Do NOT expect to get any further help from me; I am not interested to try to help help you any further. Good luck!

*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
0
** Activity (main) Resume **

I'm sorry, I'm not ignoring you, but I thought creating another sample would show you the problem

Are you clicking the button or just start the app and wait for the async messagebox to appear?
Always when main activity is creating not button clicking
Note that you SHOULD NOT kill the app in the betweentime (or swipe from the recent apps list which does kill the app too)
None of that happened
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
*** Service (starter) Create *** ** Service (starter) Start ** ** Activity (main) Create, isFirst = true ** 0 ** Activity (main) Resume **
On the 1st start it will FOR SURE log 0.

- Exit the app by pressing the home button.
- Start the app again (on the device by clicking the app icon).
Watch the log.
 
Upvote 0
Top