You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An Intent provides a facility for performing late runtime binding between the code in different applications.
它最重要的用途是启动 Activity , 它可以看做是 Activity 之间的胶水 .
Intent 基本上是一个被动的数据结构 , 它持有一个将要被执行动作的抽象描述.
我是页眉
0x01. Intent
Intent 是对要执行的动作的抽象描述 .
它可以和
startActivity
一起使用用于启动 Activity ;BroadcastIntent 可以被发送给任何感兴趣的 BroadcastReceiver 组件 ;
Context.startService(Intent)
或者Context.bindService(Intent, BindServiceFlags, Executor, ServiceConnection)
可以与处于后台的Service
交流 .An Intent provides a facility for performing late runtime binding between the code in different applications.
它最重要的用途是启动 Activity , 它可以看做是 Activity 之间的胶水 .
Intent 基本上是一个被动的数据结构 , 它持有一个将要被执行动作的抽象描述.
Intent 携带数据尺寸限制
经验之谈 : 是有尺寸限制的 , 当携带的数据量过大的时候会报异常 :
TransactionTooLargeException
.道听途说原理 :
#define BINDER_VM_SIZE ((1*1024*1024) - (4096 *2)) ;
我是页脚
The text was updated successfully, but these errors were encountered: