登录 立即注册
金钱:

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

查看: 111|回复: 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

主题

1764

帖子

952

金钱

代码手工艺人

Rank: 4

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

3

主题

1752

帖子

194

金钱

VIP1

Rank: 7Rank: 7Rank: 7

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

18

主题

1767

帖子

1677

金钱

iOS大神

Rank: 6Rank: 6

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

23

主题

1789

帖子

1152

金钱

iOS大神

Rank: 6Rank: 6

分享大神

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

17

主题

1774

帖子

1346

金钱

iOS大神

Rank: 6Rank: 6

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

0

主题

1759

帖子

-413

金钱

限制会员

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

本版积分规则

关闭

每日头条

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

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

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