#If JAVA
public void _onCreate() {
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
}#end if
活动钩子: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.
boolean _onkeydown (int keyCode, android.view.KeyEvent event) <-- Return true from this method to return true from the native onKeyDown (and skip Activity_KeyPress event).
boolean _onkeyup (int keyCode, android.view.KeyEvent event) <-- same comment as above
服务钩子:Service hooks:
_onCreate()
_onStartCommand(Intent intent, int flags, int startId)
_onDestroy()