titanium-sdk icon indicating copy to clipboard operation
titanium-sdk copied to clipboard

feat(android): add moveToBackground method

Open m1ga opened this issue 4 months ago • 0 comments

Simple method to put your app into background: Ti.UI.Android.moveToBackground();

Current workarounds are: using an intent

	var intent = Ti.Android.createIntent({
		action: Ti.Android.ACTION_MAIN,
		flags: Ti.Android.FLAG_ACTIVITY_NEW_TASK
	});
	intent.addCategory(Ti.Android.CATEGORY_HOME);
	Ti.Android.currentActivity.startActivity(intent);

or hyperloop. This method will make it quicker to put your app to the background.

m1ga avatar Mar 19 '24 11:03 m1ga