ActivityManager.RunningTaskInfo

结构

继承关系

public class ActivityManager.RunningTaskInfo extends

Object implements Parcelable

java.lang.Object

android.app.ActivityManager.RunningTaskInfo

类概述

Information you can retrieve about a particular

task that is currently "running" in the system. Note that a running

task does not mean the given task actually has a process it is

actively running in; it simply means that the user has gone to it

and never closed it, but currently the system may have killed its

process and is only holding on to its last state in order to

restart it when the user returns.

你可以获取系统当前正在运行的任务的信息。注意:正在运行的任务不是一个任务的进程真正运行;它简单的说就是用户运行它并且没有关闭它,但是,系统可能会kill它的进程并且系统为了可以重启它而保留它最新的状态。

公共构造函数

public

The component launched as the first activity in

the task. This can be considered the "application" of this

task.

任务里第一个启动Activity的组件。可以认为这个任务的应用程序。

public

Description of the task's current

state.

任务当前状态的描述。

public int id

A unique identifier for this task.

任务唯一的标识。

public int numActivities

Number of activities in this task.

任务里Activity的数量。

public int numRunning

Number of activities that are currently running

(not stopped and persisted) in this task.

当前正在运行的Activity数量(不是停止的或持久的)。

public Bitmap thumbnail

Thumbnail representation of the task's current

state. Currently always null.

表示任务状态的缩略图。总是null。

public

The activity component at the top of the history

stack of the task. This is what the user is currently

doing.

任务堆栈顶层的Activity组件。这是用户最近做的事情。

公共方法

public intdescribeContents()

Describe the kinds of special objects contained in

this Parcelable's marshalled representation.

指定对象的类型描述。

参数

enabled Whether or not to enable smooth scrollbar.

返回值

l

a bitmask indicating the set of special object

types marshalled by the Parcelable.

指示对象类型的位掩码。

public voidreadFromParcel(Parcel source)

参数

返回值

public voidwriteToParcel(Parcel dest,

int flags)

Flatten this object in to a Parcel.

写入Parcel的对象。

参数

dest

The Parcel in which the object should be

written.

flags

Additional flags about how the object should be

written. May be 0 or.

dest

对象将要写入的Parcel。

flags

对象写入方式的标志,可以为0或PARCELABLE_WRITE_RETURN_VALUE。

返回值

void

android 函数文档,Android文档ActivityManager.RunningTaskInfo翻译相关推荐

  1. android 函数返回string,Android应用开发之android 对话框对于返回值的处理方法

    本文将带你了解Android应用开发之android 对话框对于返回值的处理方法,希望本文对大家学Android有所帮助. android对话框是异步的,因此无法获得其返回值. 例如: 我们给出一个提 ...

  2. android 函数名注册,Android JNI 函数注册的两种方式(静态注册/动态注册)

    在Android开发中,由于种种原因我们需要调用C/C++代码, 这个时候就要用到Android开发者都听说过的JNI(Java Native Interface)了, 在调用JNI相关方法之前, 要 ...

  3. android函数未定义,android – 方法findViewById(int)未定义

    我是 Android开发的新手,我正在尝试编写一个小应用程序,它允许我获取外部JSON文件并解析它.我得到了它的工作,但如果我尝试在后台执行它作为AsyncTask它不会工作. Eclipse给了我错 ...

  4. appium android函数,appium连接Android真机,并调试

    Android真机:华为pad2 Android和Windows连接同一个局域网 连接USB Android机设置: 打开USB调试 cmd>adb devices,显示Android序列号 , ...

  5. Android通知栏字体大小,Android通知栏介绍与适配总结(上篇)

    此文已由作者黎星授权网易云社区发布. 欢迎访问网易云社区,了解更多网易技术产品运营经验. 由于历史原因,Android在发布之初对通知栏Notification的设计相当简单,而如今面对各式各样的通知 ...

  6. 【Android Gradle 插件】Android Plugin DSL Reference 离线文档下载 ( GitHub 下载文档 | 查看文档 )

    文章目录 一.Android Plugin DSL Reference 文档下载 二.Android Plugin DSL Reference 文档查看 一.Android Plugin DSL Re ...

  7. Android系统直接输出Excel文档

    Android系统直接输出Excel文档 一.背景 以前Android设备只具备生成txt的能力,数据内容不直观,可读性较差,如果需要Excel文档数据,通常要通过PC软件来进行二次封装和转化,步骤多 ...

  8. 软件工程第4次作业------石墨文档Android客户端案例分析

    作业要求的博客链接:https://edu.cnblogs.com/campus/nenu/2016CS/homework/2505 分析产品:石墨文档Android客户端 第一部分 调研和评测 1. ...

  9. 极光推送服务器端文档,Android SDK 集成指南

    极光统计 Android SDK 集成指南 使用提示 本文是JAnalytics Android SDK 标准的集成指南文档. 匹配的 SDK 版本为:v1.0.0及以后版本. 如果您想要快速地测试. ...

最新文章

  1. ArcGIS API for Silverlight开发
  2. 交互学习 Vue.js
  3. Lombok,一种编译时Java注释预处理器,可最大程度地减少代码大小
  4. simulink仿真学习(关系运算及逻辑模块、离散时间积分模块)day2
  5. 全栈工程师薪水_2020 Java 全栈工程师进阶路线图,不可错过
  6. Dotnet中Socket网络通信
  7. 今日恐慌与贪婪指数为77 贪婪程度有所缓解
  8. 保险的现金价值是什么意思?
  9. 免费直播:1 小时带你体验 Python 车牌识别实战
  10. bcb quickrep保存为 图片_不容错过的SCI图片处理和组图方法
  11. SCSS和Sass有什么区别?
  12. android开根号,定点数开根号的性能问题
  13. 模板 - 计算几何(合集)
  14. 微信小程序点击图片全屏展示,并可以翻下一张图
  15. 战略分析思路——沙盘推演逻辑
  16. unity读取Json文件
  17. 完美适配Windows 11,搜狗输入法智能输入助手体验再升级
  18. 三轴加速度传感器的计步测算法
  19. 王的机器第一本书「快乐机器学习」飨你
  20. 【Android】APP嵌入百度地图骑行导航一直初始化引擎失败解决办法

热门文章

  1. 3.设计模式--适配器模式(adapter模式)
  2. 串口助手调试NB模块(BC35G/BC95)
  3. 微信小程序实现输入车牌号码的功能vue版(附效果图)
  4. about Diablo2
  5. java生成cron表达式构造器
  6. python市场饱和了没_软件测试市场饱和了?不,是你的能力“饱和”了
  7. keras里面tensorflow版ResNet101源码分析
  8. _beginthread和CreateThread 创建线程
  9. 编译原理——语法分析(递归下降)
  10. 基于javaweb+jsp的校园快递管理系统(JavaWeb JSP MySQL Servlet SSM SpringBoot Bootstrap)