CAreDroid: Adaptation Framework for Android Context-Aware Applications.

CAreDroid: Adaptation Framework for Android Context-Aware Applications.
复制标题

DOI:
10.1145/2789168.2790108
复制
发表时间:
2015-09
期刊:
Proceedings of the ... annual International Conference on Mobile Computing and Networking. International Conference on Mobile Computing and Networking
影响因子:
--
通讯作者:
Srivastava M
Srivastava M
中科院分区:
其他
文献类型:
--
作者:
Elmalaki S;Wanner L;Srivastava M

文献摘要

被引文献

相似文献

上下文感知是软件系统感知和适应其物理环境的能力。许多当代移动应用程序适应不断变化的位置、连接状态、可用的计算和能源资源以及与其他用户和设备的接近程度。然而,当代移动操作系统中几乎没有对上下文感知的系统支持。因此,应用程序开发人员必须构建自己的上下文感知适应引擎,直接处理传感器并通过复杂的适应决策污染应用程序代码。在本文中,我们介绍了 CAreDroid,它是一个旨在将应用程序逻辑与 Android 上下文感知应用程序中复杂的适应决策分离的框架。在此框架中,开发人员只需提供对某些上下文敏感的方法列表以及这些上下文下允许的操作范围,即可专注于应用程序逻辑。在运行时,CAreDroid 监视物理环境的上下文并拦截对敏感方法的调用,仅激活最适合当前物理上下文的代码块。 CAreDroid 是作为 Android 运行时系统的一部分实现的。通过将上下文监控和适应推送到运行时系统中,CAreDroid 简化了上下文感知应用程序的开发并提高了其效率。特别是,与仅使用标准 Android API 的同等上下文感知应用程序相比,使用 CAre-Droid 实现的案例研究应用程序具有:(1) 至少减少了半行代码,(2) 执行时间效率至少提高了 10 倍。
Context-awareness is the ability of software systems to sense and adapt to their physical environment. Many contemporary mobile applications adapt to changing locations, connectivity states, available computational and energy resources, and proximity to other users and devices. Nevertheless, there is little systematic support for context-awareness in contemporary mobile operating systems. Because of this, application developers must build their own context-awareness adaptation engines, dealing directly with sensors and polluting application code with complex adaptation decisions. In this paper, we introduce CAreDroid, which is a framework that is designed to decouple the application logic from the complex adaptation decisions in Android context-aware applications. In this framework, developers are required— only—to focus on the application logic by providing a list of methods that are sensitive to certain contexts along with the permissible operating ranges under those contexts. At run time, CAreDroid monitors the context of the physical environment and intercepts calls to sensitive methods, activating only the blocks of code that best fit the current physical context. CAreDroid is implemented as part of the Android runtime system. By pushing context monitoring and adaptation into the runtime system, CAreDroid eases the development of context-aware applications and increases their efficiency. In particular, case study applications implemented using CAre-Droid are shown to have: (1) at least half lines of code fewer and (2) at least 10× more efficient in execution time compared to equivalent context-aware applications that use only standard Android APIs.