当前位置: 首页 > news >正文

做h5哪个网站好/宜兴百度推广

做h5哪个网站好,宜兴百度推广,太月星网站建设程序开发网页设计,设计一个网站需要多久为了文档的正规与方便性,我把一些有关的API文档的内容也粘贴进来了,虽然是英文的,但是还是比较好理解的,同时,我也把它翻译成中文了,方便大家对比使用。android的生命周期我想是所有老师讲课的第一课吧。以…

为了文档的正规与方便性,我把一些有关的API文档的内容也粘贴进来了,虽然是英文的,但是还是比较好理解的,同时,我也把它翻译成中文了,方便大家对比使用。

android的生命周期我想是所有老师讲课的第一课吧。以前,我一直在想,我为什么要知道生命周期,我不知道它,可是我依旧可以写程序啊,为什么人们把生命周期看的这么重要。

其实,一个完整的程序,从它的出现到结束,就是一次生命。当你再开启的时候,似乎生命有进行了一场轮回。有没有一点感觉,我们好像可以主宰者一个生命。我想首先我们要先了解一下什么是生命周期。

顾名思义:生命周期:一个程序从创建到消亡的过程。官方是这么说的:

Activities in the system are managed as an activity stack. When a new activity is started, it is placed on the top of the stack and becomes the running activity -- the previous activity always remains below it in the stack, and will not come to the foreground again until the new activity exits.

我来翻译一下:在系统中的activity是被一个activity的堆栈管理的。当一个新的activity启动的时候,这个activity就会被安置在堆栈的顶层,此时它的状态是“运行时状态”

而,先前的activity就会被放在新启动的那个activity的地下,此时,这个activity绝不会在到堆栈的顶层,除非新启的activity退出。

An activity has essentially four states:

一个activity有四种状态:

If an activity in the foreground of the screen (at the top of the stack), it is active or running.

如果一个activity至于当前屏幕所见,则其为运行状态、

If an activity has lost focus but is still visible (that is, a new non-full-sized or transparent activity has focus on top of your activity), it is paused. A paused activity is completely alive (it maintains all state and member information and remains attached to the window manager), but can be killed by the system in extreme low memory situations.

如果一个activity失去焦点但是可见,其为暂停状态。

If an activity is completely obscured by another activity, it is stopped. It still retains all state and member information, however, it is no longer visible to the user so its window is hidden and it will often be killed by the system when memory is needed elsewhere.

如果一个activity完全被另一个activity覆盖了,则这个activity出于停止状态。

If an activity is paused or stopped, the system can drop the activity from memory by either asking it to finish, or simply killing its process. When it is displayed again to the user, it must be completely restarted and restored to its previous state.

如果一个activity出于暂停或停止状态,我们可以通过finish方法从内存中将activity停掉。进入终止状态。

The following diagram shows the important state paths of an Activity. The square rectangles represent callback methods you can implement to perform operations when the Activity moves between states. The colored ovals are major states the Activity can be in.

下面是一个activity的生命周期的过程。如图:

639c7dc83e8f90902bcffa2b6b1f74e4.png

详解:

一个新的activity的启动会经过以下几个过程:onCreate,onStart,onResume。

activity1启动activity2会经过:1onPause,2onCreate,2onStart,2onResume,1onStop。

http://www.jmfq.cn/news/5037283.html

相关文章:

  • 刚做的婚恋网站怎么推广/青岛seo精灵
  • 专业的培训行业网站开发/5118
  • 做商务网站要多少钱/百度关键词点击价格查询
  • 沧州 网站建设/国内快速建站
  • 个人主页制作/网站seo优化徐州百度网络
  • 设计类网站开发策划书/seo网站优化
  • 展示页网站怎么做排名/社群营销平台有哪些
  • 做网站的版权问题/网站赚钱
  • 有什么做节能报告的网站/网络营销网站建设
  • 个人网站展示/百度竞价点击神器奔奔
  • 营销型网站建设 合肥/电商网站入口
  • 东莞松山湖网站建设/百度域名注册官网
  • 新开三端互通传奇网站/网络推广公司怎么找客户
  • 深圳横岗网站建设/产品经理培训哪个机构好
  • 东莞疫情最新消息风险等级/关键词优化软件有哪些
  • wordpress section id/哈尔滨seo关键词优化
  • 如何拿模板做网站/谷歌seo排名技巧
  • 网页模板库/seo内部优化具体做什么
  • 昆明建网站电话/青岛招聘seo
  • 页面设计与制作专业/北京百度搜索优化
  • 正规网站建设定制/企业查询网站
  • 中职示范校建设验收网站/北京专门做seo
  • 网上做网站任务/网络推广的方法有
  • 自己做盗版小说网站吗/手机制作网站的软件
  • wordpress 建站 搜索/sem和seo的区别
  • 网站在线支付功能/二十条优化措施原文
  • 手机免费创建网站的软件/媒介星软文平台
  • wordpress tag 打不开/关键词整站优化
  • 向中纪委网站匿名举报怎么做/做网络营销推广
  • 好网站建设公司哪里好/网站优化方案