Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for synchronously binding services

A technology for binding and service management, applied in the field of synchronous binding services, which can solve problems such as frequent calls and complex development processes, and achieve the effect of improving efficiency

Active Publication Date: 2018-06-12
BEIJING QIHOO TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in this asynchronous method, every time an IBinder object is obtained, it must be realized by passing callbacks, receiving callbacks, etc., frequent calls, and the development process is more complicated

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 and device for synchronously binding services
  • Method and device for synchronously binding services
  • Method and device for synchronously binding services

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0078] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0079] In the Android system, different inter-process communication can be realized through the Binder mechanism. Android abstracts the Binder mechanism and defines an IBinder object or interface, which is an abstraction of cross-process objects. IBinder defines a set of communication protocols that use the Binder mechanism to implement cross-process communication, which can be located in the "frameworks\base\inculde\binder\IBinder...

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 provides a synchronous service binding method and apparatus. The synchronous service binding method is applied to a client for service binding, and the synchronous service binding method comprises the steps of obtaining an IBinder object of a service management module running in a resident process through a special communication channel; obtaining a service interfaces of a to-be-bound service from the service management module based on the obtained IBinder object of the service management module; and establishing a binding relation between the client and the service interface of the to-be-bound service so as to provide the binding service for the client. Therefore, according to the embodiments of the synchronous service binding method and apparatus, the service interface of the to-be-bound service can be directly obtained from the service management; an operation that the IBinder object of the to-be-bound service is obtained from a transmission callback or an interface callback mode, and then the IBinder object of the to-be-bound service is further called to obtain the service interface of the to-be-bound service is not required, so that the efficiency of the binding service for the client is improved.

Description

technical field [0001] The invention relates to the technical field of mobile terminals, in particular to a method and device for synchronously binding services. Background technique [0002] In the Android (Android) system, a service (BindService) is usually bound in an asynchronous manner. For example, to bind a counter service (CounterService) inside the Android application process, the meaning of binding here is to obtain the CounterService interface inside the MainActivity of this application, which can include the following steps: [0003] 1) The MainActivity of the application (the default Activity of the application) calls the BindService function to notify the ActivityManagerService (the system-level service manages all activities) that it wants to start the CounterService service, and the ActivityManagerService starts the CounterService inside the process where the MainActivity is located , and call its onCreate function; [0004] 2) After the ActivityManagerServ...

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 Patents(China)
IPC IPC(8): G06F9/46G06F9/52
CPCG06F9/46G06F9/52
Inventor 刘昕宋照春张炅轩姚彤
Owner BEIJING QIHOO TECH CO LTD