Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
9_组件-社交应用
Search
powerhope
August 11, 2016
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
9_组件-社交应用
App Inventor移动应用开发
powerhope
August 11, 2016
More Decks by powerhope
See All by powerhope
1_App Inventor初步
powerhope
0
290
2_1_HelloPurr
powerhope
0
150
2_2_8-Ball(魔术8球)
powerhope
2
170
3_App Inventor编程基础
powerhope
0
140
4_组件-用户界面
powerhope
0
190
5_组件-界面布局
powerhope
0
180
6_组件-多媒体
powerhope
0
140
7_组件-绘图动画
powerhope
0
160
8_组件-传感器
powerhope
0
160
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.2k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
490
Side Projects
sachag
455
43k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
400
Designing Powerful Visuals for Engaging Learning
tmiket
1
530
Test your architecture with Archunit
thirion
2
2.4k
For a Future-Friendly Web
brad_frost
183
10k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
230
Transcript
College of Mathematics and Computer Science, Hunan Normal University 瞿绍军
湖南师范大学数学与计算机科学学院
College of Mathematics and Computer Science, Hunan Normal University
College of Mathematics and Computer Science, Hunan Normal University
联系人选择框是一个按钮,当点击时,会显示供选 择的联系人列表(仅显示姓名),在用户做出选择 后,将返回选择的联系人的下列属性信息:: ◦ 联系人姓名(ContactName): 联系人的姓名。 ◦ Email(EmailAddress): 联系人的首选Email地址。 ◦ Email列表(EmailAddressList):联系人的Email地 址列表。 ◦ 电话号码(PhoneNumber):联系人的首选电话号码 。 联系人选择框ContactPicker
College of Mathematics and Computer Science, Hunan Normal University ◦
联系人Uri(ContactUri):设备上联系人的URI(如: content://com.android.contacts/contacts/lookup /1885r6-5A9B8BFE78EA95598868/86)。 ◦ 电话号码列表(PhoneNumberList):联系人的电话 号码列表。 ◦ 照片(Picture): 联系人图像的文件名,可以将其设定 为图像组件或图像精灵组件的图像属性。 联系人选择框ContactPicker
College of Mathematics and Computer Science, Hunan Normal University
打开选框(Open):打开联系人选择列表,与用 户点击联系人选择框组件的效果相同。 查看联系人(ViewContact):通过给定的URI查 看联系人,该方法只有在打开过一次联系人选择框后 才有效,URI是一个字符串,形式如 content://com.android.contacts/contacts/loo kup/1885r6-5A9B8BFE78EA95598868/86。 用联系人选择框选择联系人后,并不真正拨打联系 人的电话,如果需要拨打电话还需要调用后面会介 绍的“电话拨号器”组件。 联系人选择框方法
College of Mathematics and Computer Science, Hunan Normal University 联系人选择框ContactPicker
College of Mathematics and Computer Science, Hunan Normal University 联系人选择框ContactPicker
College of Mathematics and Computer Science, Hunan Normal University
电话号选择框是一个按钮,与联系人选择框的功能 和用法基本上一致,唯一的区别在于,当打开联系 人选择框时,供选择的联系人列表中仅显示姓名, 不能对电话号码做出选择,返回的号码只能是联系 人的首选电话号码;而打开电话号选择框时,供选 择的联系人列表中将显示姓名和联系人下的所有电 话号码,可以选择联系人的不同电话号码返回 电话号选择框PhoneNumberPicker
College of Mathematics and Computer Science, Hunan Normal University
College of Mathematics and Computer Science, Hunan Normal University
电话拨号器组件是一个非可视组件,可以拨打电话 号码属性中设定的号码,该属性可以在在组件设计 或逻辑设计视图中进行设置。电话号码的值为一串 数字,中间不能有空格,连字符、点和括号都将忽 略,如(如0731-11111111设置为 073111111111)。 组件通常和联系人选择框和电话号选择框组件配合 使用,用户从手机的联系人列表中选取联系人或电 话号码,然后将其设定为电话拨号器的电话号码属 性。 电话拨号器PhoneCall
College of Mathematics and Computer Science, Hunan Normal University 电话拨号器事件
College of Mathematics and Computer Science, Hunan Normal University
接听来电:当接听打来的电话时,触发该事件, phoneNumber为来电号码。 通话结束:电话结束时触发该事件。如果状态等于 1,表明错过来电或拒绝接听;如果状态等于2,表 明在挂断电话之前,电话已经接听;如果状态等于 3,外拨的电话被挂断。phoneNumber为挂断的 电话号码。 拨打电话:当开始拨打电话时触发该事件。如果状 态等于1,表示来电铃声响起;如果状态等于2,表 明开始拨出电话。phoneNumber为来电号码或拨 打电话号码。 电话拨号器事件
College of Mathematics and Computer Science, Hunan Normal University 电话拨号器使用
College of Mathematics and Computer Science, Hunan Normal University
College of Mathematics and Computer Science, Hunan Normal University
短信收发器是非可视组件,用于接收和发送短信, 通过“短信”属性设定要发送的短信的内容,通过 “电话号码”属性设定接收短信的电话号码。 短信收发器Texting
College of Mathematics and Computer Science, Hunan Normal University
启用消息接受(ReceivingEnabled):如果值为1 ,关闭接受,则不接收短信;如果值为2,前台接 受,如果值为3,总是接收。如果值为2或3,当应 用运行时,可以接收短信。如果应用没有运行,当 值为2时,收到的短信将被丢弃;当值为3时,手机 将在通知栏中显示一条通知。选择该通知将启动该 应用和触发收到消息事件。当应用在休眠状态下收 到的短信将进入队列,因此当应用被唤醒时,可能 会同时有几个收到短信事件被触发。 短信收发器Texting
College of Mathematics and Computer Science, Hunan Normal University 短信自动回复
College of Mathematics and Computer Science, Hunan Normal University 短信自动回复
College of Mathematics and Computer Science, Hunan Normal University
该组件是一个文本框,当用户输入联系人的名字或 Email地址时,手机上将显示一个下拉列表,用户 通过选择来完成Email地址的输入。如果有许多联 系人,列表的显示会需要几秒钟,能立即显示匹配 的结果。 邮箱地址选择框EmailPicker
College of Mathematics and Computer Science, Hunan Normal University
该组件为非可视组件,用于在手机上不同应用之间 分享文件及(或)消息,组件将显示能够处理相关信 息的应用列表,并允许用户从中选择一项应用来分 享相关内容。例如,在邮件类、社交网络类及短信 类应用中分享某些信息。 信息分享器Sharing
College of Mathematics and Computer Science, Hunan Normal University 信息分享器Sharing
College of Mathematics and Computer Science, Hunan Normal University
分享文件(ShareFile):在不同应用间分享文件,首先 显示手机已经安装的可分享该内容的应用列表,允许用户 从中选择一个应用,被选择的应用将打开并插入设定的文 件。 分享文件及消息(ShareMessage):在不同应用间分享 文件及信息,首先显示手机已经安装的可分享该内容的应 用列表,允许用户从中选择一个应用,被选中的应用将打 开并插入设定的文件和消息。 分享信息(ShareMessage):在不同应用间分享信息, 首先显示手机已经安装的可分享该内容的应用列表,允许 用户从中选择一个应用,被选中的应用将打开并插入设定 的消息。 信息分享器Sharing
College of Mathematics and Computer Science, Hunan Normal University 信息分享器Sharing
College of Mathematics and Computer Science, Hunan Normal University 信息分享器Sharing
College of Mathematics and Computer Science, Hunan Normal University 信息分享器Sharing
College of Mathematics and Computer Science, Hunan Normal University 信息分享器Sharing
College of Mathematics and Computer Science, Hunan Normal University
实验8: 增强短信自动回复功能。 实验