当我在异步操作中关闭应用程序时,我会得到一个NullPointerException错误。这似乎是因为异步任务被竞争,onTaskCompleted被调用,但是应用程序已经关闭了。android.os.Handler.dispatchMessage(Handler.java:102) at android.app.ActivityThread.mainhttpResult.getBody());
articleAdapter
我想退出安卓应用程序假设我的应用程序有退出按钮当我单击该按钮时,我需要关闭所有应用程序数据并导航到移动主屏幕,为此我正在编写代码以关闭当前活动var activity = Titanium.Android.currentActivity;activity.finish();
by this i am close the current activity how i will close the app programatically.
问题是:首先是设置BackPressed方法异步。Windows.UI.Popups.MessageDialog logout = new Windows.UI.Popups.MessageDialog("Do You want to close the appWindows.UI.Popups.MessageDialog logout = new Windows.UI.Popups.MessageDialog("Do You want to