登录 立即注册
金钱:

Code4App-iOS开发-iOS 开源代码库-iOS代码实例搜索-iOS特效示例-iOS代码例子下载-Code4App.com

查看: 161|回复: 6

Basic android development tutorial (5) Android process and activitys life cycle

[复制链接]

4

主题

4

帖子

76

金钱

程序猿

Rank: 2

发表于 2017-7-24 20:22:14 | 显示全部楼层 |阅读模式
Each basic4android program runs in its own process.
A process has a main thread, the main thread is also called the UI thread, it will always run to the end of the process. A process can also have several threads, these Threads are used to do some background work.When the
User starts an application, a process begins to work, there that it has already already running in the background.
The end of the process is uncertain. Sometimes it may occur when the user or the system shuts down all Activities.
Assuming you have an activity, when the user presses the return key, the activity is closed. The process will exit when the phone's memory is not enough (the last sure of this).
If the user is running again this process will not be killed, the process will be reused.
A Basic4android application is composed of one or more activities. Android with several other "main" components. These will later in the future version the Basic4android was added.
Please help.
Thanks!
I didnt find the right solution from the internet.
References:
- https://www.b4x.com/android/foru ... %E7%A8%8B%E7%BF%BB% % E9%%

- B2b videography tips


11

主题

4185

帖子

1026

金钱

iOS大神

Rank: 6Rank: 6

发表于 2017-7-24 20:22:29 | 显示全部楼层
code4app确实是个好地方,必须支持~

3

主题

4195

帖子

330

金钱

攻城狮

Rank: 3Rank: 3

发表于 2017-7-24 20:22:34 | 显示全部楼层
感谢分享,code4app有你更精彩

18

主题

4189

帖子

1809

金钱

iOS大神

Rank: 6Rank: 6

发表于 2017-7-24 20:22:49 | 显示全部楼层
code4app确实是个好地方,必须支持~

23

主题

4211

帖子

1133

金钱

iOS大神

Rank: 6Rank: 6

分享大神

发表于 2017-7-24 20:23:12 | 显示全部楼层
膜拜大神~

18

主题

4203

帖子

1647

金钱

iOS大神

Rank: 6Rank: 6

发表于 2017-7-24 20:23:16 | 显示全部楼层
学习...学习...

0

主题

4180

帖子

-429

金钱

限制会员

发表于 2017-7-24 20:23:28 | 显示全部楼层
支持,感谢,祝code4app越来越好~
*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

关闭

每日头条

通过邮件订阅最新 Code4App 信息
上一条 /4 下一条

广告投放| Github|申请友链|手机版|Code4App ( 粤ICP备15117877号-1 )

快速回复 返回顶部 返回列表