---
title: "程序退出代码片段"
author: "malong26"
date: "2013-05-03T11:26:40Z"
tags: []
categories: ["移动开发"]
slug: "untitled"
draft: false
lastmod: "2013-05-03T11:26:40Z"
id: 1859237
url: "https://malong26.iteye.com/blog/1859237"
---

```java

Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_HOME);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);

```