03android程序设计activity最新完整版本.pptVIP

  • 3
  • 0
  • 约1.09千字
  • 约 56页
  • 2024-04-13 发布于广东
  • 举报

Activity简介

Activity的创建与使用

例子1

protectedvoidonStart()在onCreate()方法之后被调用,或者在Activity从Stop状态转换为Active状态时被调用ProtectedvoidonReStart()在Activity被停止后调用protectedvoidonResume()在Activity从Pause状态转换到Active状态时被调用

例子2

Activity的生命周期

完整生命周期可视生命周期前台生命周期例子3例子4

例子5

多Activity的使用

Intent简介

24IntentactivityserviceBroadcastreceiver

25

26

27

28

29例子6

30

31

32例子7

Intent解析

34

35frameworkComponentnameActionDataCategoryintentcomponentactivityserviceBroadcastreceiver

Intent对象与属性

Intent对象Intent本身是Intent对象保存了对要执行操作的抽象描述Intent被传递出去后,系统会为之找到合适的响应对象ActivityServiceBroadcastreceiver三种情况相互独立不存在重叠一个Intent对象是一个信

文档评论(0)

1亿VIP精品文档

相关文档