A General Solution to Acceleration Sensor Application Based on Android Platform
Liu Ying
1
刘颖,(1988-),女,硕士研究生,主要研究方向:移动通信与计算机应用
Huang Xiaojun
1
黄小军,(1965-),女,副教授,硕士生导师,主要研究方向:移动通信与计算机应用
1、School of Information and Communication Engineering, Beijing University of Posts and Telecommunications, Beijing 100876
Abstract:The acceleration sensor is the most popular sensor on mobile devices. More and more applications are developed using acceleration sensor, but there is not a general method for implementation. This paper provides a general solution to acceleration sensor application based on Android platform, in order to improve design and implementation efficiency and save time. This paper analyzes the principles of the Android acceleration sensor in depth, describes how to design the movement style in detail according to different application scenes and different screen orientations, and implements a general program framework of acceleration sensor application. Besides, this paper uses gravity induction phenomenon of a ball as an example, shows the entire workflow of how to develop an acceleration sensor application using this program framework.