- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
0601app_widget_host_android_developers_cropped
App Widget Host | Android Developers
In this document
1. Binding App Widgets
1. Binding app widgets on Android 4.0 and lower
2. Binding app widgets on Android 4.1 and higher
2. Host Responsibilities
1. Android 3.0
2. Android 3.1
3. Android 4.0
4. Android 4.1
5. Android 4.2
The Android Home screen available on most Android devices allows the user to embed app widgets for
quick access to content. If youre building a Home replacement or a similar app, you can also allow the
user to embed app widgets by implementing an AppWidgetHost. This is not something that most apps
will ever need to do, but if you are creating your own host, its important to understand the contractual
obligations a host implicitly agrees to.
This document focuses on the responsibilities involved in implementing a custom AppWidgetHost. For
an example of how to implement an AppWidgetHost, see the source code for the Android Home screen
Launcher.
Here is an overview of key classes and concepts involved in implementing a custom AppWidgetHost:
App Widget Host— The AppWidgetHost provides the interaction with the AppWidget service
for apps, like the home screen, that want to embed app widgets in their UI. An AppWidgetHost
must have an ID that is unique within the hosts own package. This ID remains persistent across all
uses of the host. The ID is typically a hard-coded value that you assign in your application.
App Widget ID— Each app widget instance is assigned a unique ID at the time of binding (see
bindAppWidgetIdIfAllowed(), discussed in more detail in Binding app widgets). The unique ID
is obtained by the host using allocateAppWidgetId(). This ID is persistent across the lifetime of
the widget, that is, until it is deleted from the host. Any host-s
您可能关注的文档
- 遵义会的议文献.pdf
- 左权项的目冬季施工方案陈.doc
- 作风建的设年活动实施方案.pdf
- 作为内的生偏好的利他行为及其经济学意义.pdf
- !!!程序编译过程步骤 c8051f020开发板使用说明书 软件使用.pdf
- (pub)那些耗电app的背后.pdf
- (第5次课a) 3.2 移动通信中的数字调制与解调(导引辅助的信道估计与自适应调制)ver.1.5(p47).pdf
- opendtect软件倾角控制模块在地震解释中的应用.pdf
- 《avr单片机嵌入式系统原理与应用实践》马潮.pdf
- 《effective ui软件用户体验艺术》.pdf
- 2011中国app+store数据盘点.pdf
- 2012-13 common app package.pdf
- 2012mdcc_app盈利新四化_蒋涛.pdf
- 2012年移动app应用状况研究报告.pdf
- 2013 10 flurry insights korea report 智能设备饱和 韩国市场 app应用 by flurry.pdf
- 2013打车app市场现状与发展.pdf
- 2015年10月自考3709马克思主义基本原理概论冲刺资料[甘肃自考网].pdf
- 2016年北京邮电大学通信工程考研、复试真题_考研重点_考研大纲_考研经验_考研规划.pdf
- 5462.游戏软件开发专家系列:directx 10 3d游戏编程深度探索.pdf
- a oracle white papter-oracle 并行原理实现.pdf
最近下载
- 草地复垦协议书范本最新.docx VIP
- 经典英文故事绘本_Winnie the Witch 女巫温妮_亲子读物.pdf VIP
- 铁道工程概论课件学习课件(共165张PPT).ppt VIP
- 25法考柏浪涛-刑法每日一题(1-165题).pdf VIP
- 箱涵监理规划.doc VIP
- 小学生中国象棋入门课件.pptx VIP
- IMT-20306G推进组2024年6G通信感知一体化协作感知关键技术前沿报告72页.pdf VIP
- 业主业主委员会精品课件.pptx VIP
- 美剧剧本绝望主妇台词本中英文对照精排版第一季第一集.pdf VIP
- 2025年上半年中学教师资格证《教育知识与能力》考试真题及答案(完整版.pdf VIP
文档评论(0)