Android 将系统的back键模拟成为home键的功能

@Overridepublic void onBackPressed() {    Intent intent = new Intent(Intent.ACTION_MAIN);     intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);     intent.addCategory(Intent.CATEGORY_HOME);     startActivity(intent);}

参考网址:https://www.cnblogs.com/tony-yang-flutter/p/androidbacktohome.html

更多相关文章

  1. Android 系统功能设置菜单 LinearLayout与relativeLayout的实现
  2. Android 网上学习工具网址
  3. 一些值得收藏关注的网址---android
  4. Android 7.0 移除设置中的某些项(辅助功能、流量使用情况、位置信
  5. android 自动更新网址保存
  6. 修改Android framework定制重启功能
  7. Android 5.1部分apk的升级或缓存功能无效
  8. android 将鼠标右键点击事件改为点击后返回功能
  9. Android 无障碍辅助功能AccessibilityService(2)

随机推荐

  1. android里的ViewGroup
  2. Android(安卓)fragment的数据绑定databin
  3. Android(安卓)程序实时监听网络变化状态
  4. Android(安卓)实现数据的列表显示
  5. Android上实现TCP&UDP的客户端和服务端
  6. android ActionBar的使用
  7. android ndk log使用demo
  8. Android系统时间
  9. android 在标题栏加上按钮
  10. Browsing Android(安卓)Source in Eclips