Method for optimizing mobile application by utilizing access cost model of API (Application Programming Interface) of Android system

A cost model and mobile application technology, applied in the field of mobile computing, can solve the problems of being difficult to apply to mobile sensing applications and not considering time overhead, etc., to achieve wide applicability and reduce energy consumption

Active Publication Date: 2013-12-25
PEKING UNIV
View PDF4 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Existing work of this type generally only considers power consumption overhead, but does not consider time overhead when measuring the cost of acquiring sensory information for

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for optimizing mobile application by utilizing access cost model of API (Application Programming Interface) of Android system
  • Method for optimizing mobile application by utilizing access cost model of API (Application Programming Interface) of Android system
  • Method for optimizing mobile application by utilizing access cost model of API (Application Programming Interface) of Android system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0035] A. Obtain the access cost model of the Sensing API in a specific Android mobile phone platform. The implementation method is:

[0036] A1. Select the SensingAPI collection on the mobile phone platform (that is, a set of system APIs for collecting sensor data);

[0037] A2. Write a test program for the selected Sensing API set, the test program can periodically and frequently access the specified API, and can measure the time delay of accessing the specified API;

[0038]A3. Run the above test program on the mobile phone platform, record the time delay of accessing each Sensing API by the test program, and use external power consumption measurement tools such as Power Monitor to measure the system power consumption of accessing the specified API in real time;

[0039] A4. Use the delay data and power consumption data obtained in step A3 to obtain the access cost model of the Sensing API on the platform;

[0040] B. Based on the access cost model obtained in step A, writ...

Embodiment 1

[0055] The present invention will be further elaborated below through a specific embodiment.

[0056] The smart phone platform targeted by this embodiment is Google Nexus S, running the Android 2.3.6 operating system. During the measurement of the access cost model, an external Power Monitor meter device is used to monitor the current and power consumption of the mobile phone in real time. During the test, the mobile phone uses an external power supply, the voltage is constant at 3.7V, the screen remains always on and the brightness remains unchanged, no other applications are running at the same time when testing a certain sensor, and no other sensors are turned on at the same time.

[0057] The acquisition of sensing information on the Android platform is mainly achieved by querying the output values ​​and related states of various built-in sensors and network interfaces. The main built-in sensors and some network interfaces in the Android platform are listed below.

[005...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a method for optimizing a mobile application by utilizing an access cost model of an API (Application Programming Interface) of an Android system. Firstly, an access cost model which is used for an MSA (Mobile Sensing Application) to access a Sensing API on a specific intelligent mobile phone platform is measured by utilizing a power consumption measurement tool and a Sensing API testing program; then an energy consumption optimization access interface is provided on the basis of the access cost model, is marked as an Sensing API* and is enabled to replace the corresponding Sensing API; and the MSA accesses sensing data by the Sensing API* to reduce energy consumption of the system. By the method for optimizing the mobile application on the basis of the access cost model of the API of the Android system, which is provided by the invention, energy consumption cost of the mobile sensing application can be effectively reduced; and meanwhile, a Sensing API redirection mechanism implemented by code instrumentation enables the method disclosed by the invention to have wider applicability.

Description

technical field [0001] The invention provides a method for optimizing a mobile application program, in particular to a method for optimizing a mobile application program by using an Android system API access cost model, and belongs to the field of mobile computing. Background technique [0002] Smartphones have facilitated the development and application of mobile sensing technologies. Smartphones are generally embedded with a wealth of sensors, including acceleration sensors, gyroscopes, distance sensors, GPS, cameras, microphones, etc. Mobile applications can use these sensors to determine the user's status, location, and environmental information, thereby enhancing user experience. For example, maps, navigation applications, and social networking mobile applications need to perceive the user's location information, and pedometers need to perceive the user's movement status . Such mobile sensing applications usually use sensor access interfaces provided by mobile operati...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/44G06F1/32H04M1/73H04W52/02
CPCY02D30/70
Inventor 郭耀孔俊俊谌国风陈向群
Owner PEKING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products