0

Java では、店を閉めて家に帰りたい場合は System.exit を呼び出すことができます。

チタン製アクセラレーターで、それを行うコマンドは何ですか? 開いているすべてのウィンドウを追跡する必要はありません。アプリ全体をあきらめて、ユーザーが手動で再起動できるようにしたいだけです。

「ルート」ウィンドウを閉じるか、「exitonclose」をtrueに設定しようとしましたが、iOSではなくAndroidでのみ機能します。

何か案は?

4

1 に答える 1

1

In android, you can use following code

var appActivity = Ti.Android.currentActivity;
appActivity.finish();

The Ti.Android.currentActivity property provides a reference to the context's current Activity.This code will finish the current activity.

Reference

Titanium Android- Application close\exit

于 2013-09-04T04:31:50.437 に答える