Closing Application and killing it from ram
hi I want to close my application and also want kill it from ram by
clicking button. i am using this method, but it just minimize application
and didn't close complete app. what to do ?
public void AppExit()
{
this.finish();
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_HOME);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
}
No comments:
Post a Comment