---
title: "代码控制返回Home界面"
author: "Clareshao"
date: "2011-10-11T10:20:15Z"
tags: []
categories: ["移动开发"]
slug: "home"
draft: false
lastmod: "2011-10-11T10:20:15Z"
id: 1189324
url: "https://clareshao.iteye.com/blog/1189324"
---

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