With the development of sensor technology, more intuitive operation and interaction is widely used on the Android platform for mobile devices, which prompts us to design and develop more user-friendly applications on the Android platform. Android Devices’sensors include acceleration sensors, gyro sensors, direction sensors,magnetic sensors etc. But the data obtained by a single sensor can not meet all mobile applications somatosensory’s desired attitude and heading data ,as well as position data, in particular for applications of high static accuracy and high dynamic precision. In this paper, the steps and methods of developing multiple-sensor application based on Android are put forward. Package the fusion processing functions as a dynamic link library to obtain the required data for the research of the application .Specific contents are as follows: (1)Introduce the technology used in this application based on the Android application framework and build the development environment, implement topackage the interfaceof function with JNI (Java Native Interface), as well as generate and call the shared libraries with Android NDK (Native Development Kit). (2) Elaborate the steps of development and the method of implenmentation of compass,spirit level,dynamic cube’s trace view and the draw of trajectory with the result data and OpenGLES based on Android platform. (3) Develop the software of PC server-side, implement the function of receiving real-time data of the position coordinates of the mobile client and sending the relevant data by socket .At the same time both ends draw the trajectory in sync according to the location coordinate data. Experimental results show that the system achieve the required function todemonstrate the application, and can be extended to other applications of mobiledevices.
修改评论