Java – Codename an application lifecycle

Codename an application lifecycle… here is a solution to the problem.

Codename an application lifecycle

I’m an Android developer and I’m faced with the task of trying to “migrate” on Codename One. Not arbitrary. On Android, Google’s description of the lifecycle is very clear. In Codename, the lifecycle is more like a desktop application. So I’m wondering if there are analogue life cycle phases, such as onPause and onSaveInstanceState in codename one. Or do you have to insert the platform code?


Codename One has init/start/stop/destroy, which are very similar, but simpler than Android’s lifecycle. stop() will be called to pause and start() will be called again to resume.

Related Problems and Solutions