A3: Assisting Android API Migrations Using Code Examples

Android(操作系统) 计算机科学 文档 应用程序编程接口 万维网 源代码 Java 操作系统
作者
Maxime Lamothe,Weiyi Shang,Tse-Hsun Chen
出处
期刊:IEEE Transactions on Software Engineering [Institute of Electrical and Electronics Engineers]
卷期号:48 (2): 417-431 被引量:15
标识
DOI:10.1109/tse.2020.2988396
摘要

The fast-paced evolution of Android APIs has posed a challenging task for Android app developers. To leverage Android's frequently released APIs, developers must often spend considerable effort on API migrations. Prior research and Android official documentation typically provide enough information to guide developers in identifying the API calls that must be migrated and the corresponding API calls in an updated version of Android (what to migrate). However, API migration remains a challenging task since developers lack the knowledge of how to migrate the API calls. There exist code examples, such as Google Samples, that illustrate the usage of APIs. We posit that by analyzing the changes of API usage in code examples, we can learn API migration patterns to assist developers with API Migrations. In this paper, we propose an approach that learns API migration patterns from code examples, applies these patterns to the source code of Android apps for API migration, and presents the results to users as potential migration solutions. To evaluate our approach, we migrate API calls in open source Android apps by learning API migration patterns from code examples. We find that our approach can successfully learn API migration patterns and provide API migration assistance in 71 out of 80 cases. Our approach can either migrate API calls with little to no extra modifications needed or provide guidance to assist with the migrations. Through a user study, we find that adopting our approach can reduce the time spent on migrating APIs, on average, by 29%. Moreover, our interviews with app developers highlight the benefits of our approach when seeking API migrations. Our approach demonstrates the value of leveraging the knowledge contained in software repositories to facilitate API migrations.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
大幅提高文件上传限制,最高150M (2024-4-1)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
1秒前
可靠松发布了新的文献求助10
1秒前
ym完成签到 ,获得积分10
1秒前
杳鸢应助落后的铭采纳,获得20
2秒前
2秒前
贺可乐发布了新的文献求助30
2秒前
曾经曼香完成签到,获得积分10
2秒前
叶绯完成签到,获得积分10
3秒前
Carhao应助dan1029采纳,获得10
4秒前
闲云野鹤发布了新的文献求助10
4秒前
Wangyn完成签到,获得积分10
4秒前
4秒前
袁裘完成签到,获得积分10
5秒前
七七关注了科研通微信公众号
5秒前
专一的绿茶完成签到,获得积分10
6秒前
ccc发布了新的文献求助10
6秒前
小二郎应助彩虹云朵采纳,获得10
6秒前
所所应助华hua采纳,获得10
6秒前
Charles完成签到,获得积分10
6秒前
7秒前
曾经曼香发布了新的文献求助10
8秒前
脑洞疼应助栗子采纳,获得10
8秒前
岱山完成签到,获得积分10
9秒前
LiuLiu完成签到,获得积分10
10秒前
zwj完成签到,获得积分10
10秒前
单纯雍发布了新的文献求助10
12秒前
13秒前
酪酪Alona发布了新的文献求助20
14秒前
ding应助清澄采纳,获得10
14秒前
凌壬靖完成签到 ,获得积分10
14秒前
15秒前
Wangyn发布了新的文献求助10
15秒前
bible发布了新的文献求助10
16秒前
16秒前
16秒前
17秒前
17秒前
18秒前
18秒前
lapidary完成签到,获得积分10
19秒前
高分求助中
Smart but Scattered: The Revolutionary Executive Skills Approach to Helping Kids Reach Their Potential (第二版) 1000
PraxisRatgeber: Mantiden: Faszinierende Lauerjäger 700
Mesopotamian divination texts : conversing with the gods : sources from the first millennium BCE 500
The Heath Anthology of American Literature: Early Nineteenth Century 1800 - 1865 Vol. B 500
A new species of Velataspis (Hemiptera Coccoidea Diaspididae) from tea in Assam 500
Machine Learning for Polymer Informatics 500
2024 Medicinal Chemistry Reviews 480
热门求助领域 (近24小时)
化学 医学 生物 材料科学 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 基因 遗传学 催化作用 物理化学 免疫学 量子力学 细胞生物学
热门帖子
关注 科研通微信公众号,转发送积分 3222804
求助须知:如何正确求助?哪些是违规求助? 2871564
关于积分的说明 8176070
捐赠科研通 2538543
什么是DOI,文献DOI怎么找? 1370632
科研通“疑难数据库(出版商)”最低求助积分说明 645818
邀请新用户注册赠送积分活动 619706