Java Question Can we make use of Activity and Service hooks from lib?

somed3v3loper

Well-Known Member
Licensed User
Longtime User
Hi all ,
Sorry if this question has been answered before but I could not find any related info .

Can we use these hooks from libraries ? and if so , is there any simple example ?
Activity hooks:
_onCreate()
_onResume()
_onPause()
_onDestroy()
_onStop()
_onStart()
_onPrepareOptionsMenu (android.view.Menu menu)
boolean _onCreateOptionsMenu (android.view.Menu menu) <--- If you return true from this method then the standard B4A code in onCreateOptionsMenu will not run.

Service hooks:
_onCreate()
_onStartCommand(Intent intent, int flags, int startId)
_onDestroy()


Thanks in advance
 

DonManfred

Expert
Licensed User
Longtime User
Top