Andrews notes the end of development

Andrews Review Problems

data

"Guide book: Guide to the Almighty Andrews"

Life-cycle approach activities

  • A total of six, you need to remember the method name

  • Activities startup mode

Short answer: What are the startup mode is active, namely what are the characteristics

Glossary: ​​such as intent, is doing

What activities singletask mean

Intent 是 Android 程序中各组件之间进行交互的一种重要方式,它不仅可以指明当前组
件想要执行的动作,还可以在不同组件之间传递数据。Intent 一般可被用于启动活动、启动
服务、以及发送广播等场景

Explicit intent

Implicit intent (important)

  • category

intent filter (intent filter)

  • Study recite Glossary

  • For the match acticon

  • For the matching category

Activities startup mode

standard

 Android 是使用返回栈来管理活动的,在 standard 模式(即默认情
况)下,每当启动一个新的活动,它就会在返回栈中入栈,并处于栈顶的位置。对于使用
standard 模式的活动,系统不会在乎这个活动是否已经在返回栈中存在,每次启动都会创建
该活动的一个新的实例。

singleTop

当活动的启动模式
指定为 singleTop,在启动活动时如果发现返回栈的栈顶已经是该活动,则认为可以直接使用
它,不会再创建新的活动实例。

singleTask

当活动的启动模式指定为 singleTask,每次启动该活动时系统首先
会在返回栈中检查是否存在该活动的实例,如果发现已经存在则直接使用该实例,并把在这
个活动之上的所有活动统统出栈,如果没有发现就会创建一个新的活动实例。

singleInstance

使用前面三种启动模式肯定是做不到的,因为每个应用程序都会有自
己的返回栈,同一个活动在不同的返回栈中入栈时必然是创建了新的实例。而使用
singleInstance模式就可以解决这个问题,在这种模式下会有一个单独的返回栈来管理这个活
动,不管是哪个应用程序来访问这个活动,都共用的同一个返回栈,也就解决了共享活动实
例的问题。

layout

  • Identifying common layout

    • 3.3 four basic layout

RecycleView (not visits)

The callback function (Chapter III)

Broadcast mechanism (Chapter V)

  • Broadcast receiver

Global broadcast, local broadcast, broadcast order, broadcast out of order

  • How to write a radio receiver, inheritance, rewrite

Data persistence (Chapter VI)

  • File Storage
  • Sharing preferences (school reports, common technology)
  • Simple relational database

To realize data persistence of several techniques

A content provider (the third largest component, Chapter VII)


Multimedia (Chapter VIII)

Service (the fourth largest component, Chapter X)

  • Life Cycle (dynamic characteristics)
  • Binding Service
  • start service

Guess you like

Origin www.cnblogs.com/senup/p/12129198.html