android - Is onStart called when the screen is already visible or becoming visible? -


i looked on thread on stack overflow (src: difference between oncreate() , onstart()?) thread described onstart() method "called when activity becoming visible user". in same answer , in many overrides of oncreate method, see setcontentview called in oncreate. wont make screen visible then? therefore in situation(where setcontentview called in oncreate), onstart() called after screen becomes visible user before user can interact it?

the chances of onstart() can called multiple times.

oncreate() : called when activity first created.

onstart() : called when activity becoming visible user.

now graph given difference between oncreate() , onstart()? post. onstart() can called multiple times, in case if process not killed (if activity has been called again.)

so if set view @ onstart(), need initialize view onstart() or later (i.e. onresume() ). repetitive process. not bad practice initialize view again , again?

hope clear here.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -