System API setting and calling method and system based on Android system platform calling

A system platform and integrated system technology, applied in the field of system API setting and calling based on the Android system platform call, can solve the problems that it takes several hours to complete the compilation, the software compilation cannot pass, and the efficiency is low, so as to reduce the compilation time, The effect of improving development efficiency and high reusability

Active Publication Date: 2020-12-04
XIAMEN INTRETECH
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, developing an application or a desktop launcher on the Android system platform requires some special requirements, such as switching on and off, but these interfaces belong to system-level APIs, and using these system-level APIs will cause software compilation to fail. Currently, the commonly used The method is to call the system API in the form of reflection, but not all system-level APIs can be called by reflection. For example, the system API with hotspots cannot be called by reflection, and now Android is becoming more and more strict, Android9. If it is above 0, calling the system API through reflection is disabled
In the existing technology, the best way is to compile the application that calls the system API directly under the Android source code, and then it can be successfully compiled and used. However, the disadvantage of this method is that every time an application is released, it must be compiled under the Andriod source code. It often takes several hours to compile, which takes too long and is too inefficient

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
  • System API setting and calling method and system based on Android system platform calling

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] Such as figure 1 As shown in the flowchart, this specific embodiment discloses a system API setting method based on the Android system platform call, and realizes the setting of the system API through the following steps:

[0029] Integrate the system API, integrate the system API that the main application needs to call into a service program; the service program only includes services, and the development of the service program is compiled using conventional service program development software in the prior art. The service program includes services for integrating system APIs, and the service program only includes services and does not include UI. The service specifically integrates the system-level API required by the main application, which is feasible, and the service is also provided with a monitoring service. Invoke the required system API by listening to the broadcast sent by the main application. Specifically, a Service service can be created in the service p...

Embodiment 2

[0033] This specific embodiment provides a kind of method based on Android system platform calling system API, realizes calling system API by following steps:

[0034] S01, open the service in the service program on the system platform where the system API is set by the setting method as described in claim 1; specifically, the specific process can be to integrate the system API first, and integrate the system API that the main application needs to call Into a service program, the integration method can be to create a Service service in the service program, and create a BroadcastReceiver broadcast in the service. The monitoring broadcast created is set in the onReceive() method to monitor the type respectively. The type refers to the type of system API that needs to be called, which is used to monitor the specified broadcast sent by the main application. The type implements the system API corresponding to the call.

[0035] The service program code only needs to be compiled on...

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 discloses a system API (Application Program Interface) setting method based on Android system platform calling, which realizes the setting of a system API by the following steps: integrating the system API, namely integrating the system API required to be called by a main application into a service program; and compiling: compiling the integrated system API service program once underthe Android source code, and integrating the service program integrated with the system API needing to be called by the main application into a system platform. The invention further discloses an APIcalling method based on the setting method. The method has the advantages that the system API is integrated into the service program and is integrated into the system platform, and the system API required by broadcast calling sent by the main application is monitored through the service during calling, so that subsequent application publishing and quick compiling can be realized, the compiling time is shortened, and the development efficiency is greatly improved; and the program service comprises an integrated system API (Application Program Interface) which can be used by a plurality of application programs, so that the reusability is high, and the development is greatly facilitated.

Description

technical field [0001] The present invention relates to the technical field of software, in particular to a system API setting and calling method based on the Android system platform call. Background technique [0002] At present, developing an application or a desktop launcher on the Android system platform will have some special requirements, such as switching on and off, but these interfaces belong to system-level APIs, and using these system-level APIs will cause software compilation to fail. Currently, the commonly used The method is to call the system API in the form of reflection, but not all system-level APIs can be called by reflection. For example, the system API with hotspots cannot be called by reflection, and now Android is becoming more and more rigorous, Android9. A value above 0 disables calling system APIs through reflection. In the existing technology, the best way is to compile the application that calls the system API directly under the Android source co...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/41G06F8/71
CPCG06F8/41G06F8/71
Inventor 郭铭煌周春林黄妹玲黄智全李立锋刘奕成
Owner XIAMEN INTRETECH
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