CN106528304A - Shared adapter, configuration method and calling method and device thereof and mobile terminal - Google Patents

Shared adapter, configuration method and calling method and device thereof and mobile terminal Download PDF

Info

Publication number
CN106528304A
CN106528304A CN201610929209.5A CN201610929209A CN106528304A CN 106528304 A CN106528304 A CN 106528304A CN 201610929209 A CN201610929209 A CN 201610929209A CN 106528304 A CN106528304 A CN 106528304A
Authority
CN
China
Prior art keywords
unit
adapter
plug
share
sdk
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610929209.5A
Other languages
Chinese (zh)
Inventor
马子平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610929209.5A priority Critical patent/CN106528304A/en
Publication of CN106528304A publication Critical patent/CN106528304A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/541Interprogram communication via adapters, e.g. between incompatible applications

Abstract

The invention discloses a shared adapter, a configuration method, a calling method and device and a mobile terminal. The configuration method comprises the steps that a uniform interface is arranged for the newly-built shared adapter for calling; shared plug-in SDK parameters are configured for the shared adapter, wherein the parameters include availability of a shared plug-in SDK or unavailability of the shared plug-in SDK. By arranging the separate shared adapter in the mobile terminal, configuring the same interface for the shared adapter and integrating the shared plug-in SDK, the purposes of substituting, adding and deleting a certain shared plug-in SDK can be achieved through configuration of the SDK parameters, development time is shortened, the size of an APP is reduced, the APP can run more stably, and development cost is lowered.

Description

One kind shares adapter and its collocation method, call method and device and mobile terminal
Technical field
The present invention relates to technical field of mobile terminals, more particularly to one kind shares adapter and its collocation method, called side Method and device and mobile terminal.
Background technology
In the mobile Internet epoch, with popularizing for intelligent terminal, user constantly pursues the internet of high-quality Access experience, at any time, everywhere, the inquiry followed one's inclinations, obtain newest Domestic News, and can money oneself is interested, valuable News are shared with friend or household in time.
In order to improve the liveness of product, increase the use viscosity of user, the APP of intelligent terminal can integrated different the Tripartite shares plug-in unit (such as wechat, microblogging, QQ share).Due to the SDK and interface that each shares plug-in unit provider it is totally different, in order to Meet the difference of the Internet, applications business demand and product orientation, each application needs the integrated type and quantity for sharing plug-in unit all Difference.And these share the SDK of plug-in unit provider, architecture design, api interface, occupation mode are different, often increase or delete One kind shares plug-in unit, shares model before cannot being all multiplexed, and the software compatibility and configurability are poor.Further, since product The change of demand, may not use it is integrated share plug-in unit, each change for sharing demand all can be to software development band Larger workload is carried out, and has been difficult to safeguard.
The content of the invention
Present invention is primarily targeted at proposing that one kind shares adapter and its collocation method, call method and device and shifting Dynamic terminal, it is intended to solve existing mobile terminal it is newly-increased with delete third party and share that plug-in unit SDK is difficult, program is complicated, high cost Problem.
For achieving the above object, one kind that the present invention is provided shares adapter method to set up, comprises the steps of:
Unified interface is set for calling for newly-built adapter of sharing;
Share adapter configuration and share plug-in unit SDK parameters for described, the parameter comprising share plug-in unit SDK it is available or point Enjoy plug-in unit SDK unavailable.
Further, also comprising step:JAVA dynamic bases and static library are generated, the JAVA dynamic bases and static library are for more The individual APP for needing access to share plug-in unit is called.
For achieving the above object, the present invention also offer one kind shares adapter, comprising:
Interface unit, for arranging unified interface for calling for newly-built adapter of sharing;
Parameter configuration unit, for sharing adapter configuration and sharing plug-in unit SDK parameters for described, the parameter is comprising sharing Plug-in unit SDK is available or to share plug-in unit SDK unavailable.
Further, also include:
Database Unit, for generating JAVA dynamic bases and static library, the JAVA dynamic bases and static library supply multiple need Access and share the APP of plug-in unit and call.
For achieving the above object, the present invention a kind of method called and share adapter is also provided, it is characterised in that comprising with Lower step:
Adapter is shared in establishment;
Obtain the content and heading message of information to be shared;
Select certain to share plug-in unit SDK and share information;
Information to be shared is sent to the third-party platform specified;
Adapter is shared in release destruction.
Further, described " adapter is shared in establishment " includes:
Unified interface is set for calling to share adapter;
Share adapter configuration and share plug-in unit SDK parameters for described, the parameter comprising share plug-in unit SDK it is available or point Enjoy plug-in unit SDK unavailable.
For achieving the above object, the present invention also provides a kind of device for calling and sharing adapter, it is characterised in that include:
Creating unit, shares adapter for creating;
Acquiring unit, for obtaining the content and heading message of information to be shared;
Select unit, shares information for selecting certain to share plug-in unit SDK;
Transmitting element, for sending information to be shared to the third-party platform specified;
Unit is destroyed, shares adapter for discharging destruction.
Further, the adapter creating unit of sharing is included:
Interface unit, for arranging unified interface for calling to share adapter;
Parameter configuration unit, for sharing adapter configuration and sharing plug-in unit SDK parameters for described, the parameter is comprising sharing Plug-in unit SDK is available or to share plug-in unit SDK unavailable.
For achieving the above object, the present invention also provides a kind of mobile terminal, comprising:
Share adapter, for connecting APP, comprising:Interface unit, for for share adapter arrange unified interface for Call;And parameter configuration unit, for sharing adapter configuration and sharing plug-in unit SDK parameters for described, the parameter comprising point Enjoy that plug-in unit SDK is available or to share plug-in unit SDK unavailable;
APP, operates in terminal, for obtaining, parsing, showing online information, and after sharing plug-in adapter described in calling, Share the online information to the third-party platform for sharing plug-in unit SDK associations selected.
Further, the APP includes one or more in QQ, wechat, bean cotyledon, microblogging, Renren Network.
One kind proposed by the present invention shares adapter and its collocation method, call method and device and mobile terminal, passes through Share suitable device in mobile terminal increase to match somebody with somebody, be capable of achieving to replace, increase newly, delete certain mesh for sharing plug-in unit SDK by configuration parameter , can rapidly adapt to, switch multiple different SDK, it is easy to safeguard, reduce development cost, the development time of short developer, APP volumes are greatly reduced, make sharing contents more stable.
Description of the drawings
Fig. 1 is the hardware architecture diagram of an optional mobile terminal for realizing each embodiment of the invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is that one kind that the embodiment of the present invention one is provided shares adapter method to set up schematic flow sheet;
Fig. 4 is that the another kind that the embodiment of the present invention two is provided shares adapter method to set up schematic flow sheet;
Fig. 5 is that one kind that the embodiment of the present invention three is provided shares adapter structure schematic diagram;
Fig. 6 is that the another kind that the embodiment of the present invention four is provided shares adapter structure schematic diagram;
Fig. 7 is that a kind of of the offer of the embodiment of the present invention five calls the method flow schematic diagram for sharing adapter;
Fig. 8 is that a kind of of the offer of the embodiment of the present invention six calls the apparatus structure schematic diagram for sharing adapter;
Fig. 9 is a kind of mobile terminal structure schematic diagram that the embodiment of the present invention seven is provided.
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
The mobile terminal of each embodiment of the invention is realized referring now to Description of Drawings.In follow-up description, use For representing the suffix of such as " module ", " part " or " unit " of element only for being conducive to the explanation of the present invention, itself Not specific meaning.Therefore, " module " mixedly can be used with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP The mobile terminal of (portable media player), guider etc. and such as numeral TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for movement Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is that the hardware configuration of an optional mobile terminal for realizing each embodiment of the invention is illustrated.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups for illustrating Part.More or less of component can alternatively be implemented.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assemblies, and which allows mobile terminal 1 00 and wireless communication system Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module 112nd, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast from external broadcast management server via broadcast channel Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent The broadcast singal generated before the server or reception of broadcast singal and/or broadcast related information and/or broadcast related information And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting Signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Pass information can also be provided via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 is receiving.Broadcast singal can be present in a variety of manners, and for example, which can be with the electronics of DMB (DMB) The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast Receiver module 111 can receive signal broadcast by using various types of broadcast systems.Especially, broadcasting reception module 111 Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video Broadcast-hand-held (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111 may be constructed such that and be adapted to provide for extensively Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via broadcasting reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal can be logical including voice Words signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can including WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant ToothTM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115 is calculated from three or more satellites Range information and correct time information and for calculate Information application triangulation, so as to according to longitude, latitude Three-dimensional current location information is calculated highly accurately.Currently, defended using three for calculating the method for position and temporal information The error of star and the position that calculated by using other satellite correction and temporal information.Additionally, GPS module 115 Can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include 121 He of camera Microphone 1220, the static map that 121 pairs, camera is obtained by image capture apparatus in Video Capture pattern or image capture mode The view data of piece or video is processed.Picture frame after process is may be displayed on display unit 151.At Jing cameras 121 Carry out during picture frame after reason can be stored in memory 160 (or other storage mediums) or via wireless communication unit 110 Send, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould Sound (voice data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be by Such acoustic processing is voice data.Audio frequency (voice) data after process can be changed in the case of telephone calling model For the form output of mobile communication base station can be sent to via mobile communication module 112.Microphone 122 can implement all kinds Noise eliminate (or suppress) algorithm with eliminate (or suppression) receive and the noise that produces during sending audio signal or Person disturbs.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch Plate (for example, detection is due to the sensitive component of the change of touched and caused resistance, pressure, electric capacity etc.), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, and (for example, mobile terminal 1 00 opens or closes shape State), the position of mobile terminal 1 00, user is for the presence or absence of contact (that is, touch input), the mobile terminal of mobile terminal 1 00 100 orientation, the acceleration or deceleration movement of mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00 The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed The sliding-type phone is opened or is cut out.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 is coupled with external device (ED).
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for device of the connection with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage uses each of mobile terminal 1 00 for verifying user Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..In addition, the device with identification module (hereinafter referred to as " identifying device ") can take the form of smart card, therefore, know Other device can be connected with mobile terminal 1 00 via port or other attachment means.Interface unit 170 can be used for receive from The input (for example, data message, electric power etc.) of external device (ED) and the input for receiving is transferred in mobile terminal 1 00 One or more elements can be used for the transmission data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 can serve as allowing to pass through which by electricity Power provides the path of mobile terminal 1 00 from base or can serve as allowing from base the various command signals being input into pass through which It is transferred to the path of mobile terminal.Can serve as recognizing that mobile terminal is from the various command signals or electric power of base input The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio frequency and/or tactile manner Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include showing Unit 151, dio Output Modules 152, alarm unit 153 etc..
The information that display unit 151 is processed in may be displayed on mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity During words call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia files Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, illustrate video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when the display unit 151 and touch pad touch-screen with formation superposed on one another in the form of layer, display unit 151 can serve as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user from outside viewing, and this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific The embodiment wanted, mobile terminal 1 00 can include two or more display units (or other display devices), for example, move Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detection and touch Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal in call signal reception pattern, call mode, logging mode, It is when under the isotypes such as speech recognition mode, broadcast reception mode, that wireless communication unit 110 is received or in memory 160 The voice data transducing audio signal of middle storage and it is output as sound.And, dio Output Modules 152 can be provided and movement The audio output (for example, call signal receives sound, message sink sound etc.) of the specific function correlation that terminal 100 is performed. Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output so that event is notified to mobile terminal 1 00.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit 153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibrating Output is provided, when calling, message or some other entrance communication (incomingcommunication) are received, alarm list Unit 153 can provide tactile output (that is, vibrating) to notify to user.Tactile output as by providing, even if When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memory 160 can store software program for the process and control operation performed by controller 180 etc., Huo Zheke With the data (for example, telephone directory, message, still image, video etc.) for temporarily storing own Jing outputs or will export.And And, memory 160 can be storing the vibration of various modes with regard to exporting when touching and being applied to touch-screen and audio signal Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can perform memory with by network connection The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data The related control of communication, video calling etc. and process.In addition, controller 180 can be included for reproducing (or playback) many matchmakers The multi-media module 1810 of volume data, multi-media module 1810 can be constructed in controller 180, or it is so structured that and control Device processed 180 is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input for performing on the touchscreen or figure Piece is drawn input and is identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit Appropriate electric power needed for part and component.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implementing.For hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein At least one in electronic unit implementing, in some cases, can be implemented in controller 180 by such embodiment. For software is implemented, the embodiment of such as process or function can with allow to perform the single of at least one function or operation Software module is implementing.Software code can be come by the software application (or program) write with any appropriate programming language Implement, perform during software code can be stored in memory 160 and by controller 180.
So far, own Jing describes mobile terminal according to its function.Below, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is used as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
As shown in Figure 1 mobile terminal 1 00 may be constructed such that using via frame or packet transmission data it is all if any Line and wireless communication system and satellite-based communication system are operating.
The communication system that mobile terminal wherein of the invention is operable to is described referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. If back haul link can be constructed according to any one in the interface that Ganji knows, the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system can include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction Each subregion that line is covered is radially away from BS270.Or, each subregion can by for diversity reception two or more Antenna is covered.Each BS270 may be constructed such that the multiple frequency distribution of support, and each frequency distribution with specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed intersect can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to broadcsting transmitter (BT) 295 mobile terminal operated in system 100.Broadcasting reception module 111 is arranged at mobile terminal 1 00 to receive the broadcast sent by BT295 as shown in Figure 1 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps position multiple mobile terminals At least one of 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that be, it is possible to use any number of satellite obtains useful Location information.GPS module 115 is generally configured to coordinate to obtain the positioning wanted letter with satellite 300 as shown in Figure 1 Breath.Substitute GPS tracking techniques or outside GPS tracking techniques, it is possible to use can track the position of mobile terminal other Technology.In addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
Used as a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminal 1s 00 Signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.Each of the reception of certain base station 270 is anti- Processed in specific BS270 to link signal.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides call Resource allocation and the mobile management function of the coordination including the soft switching process between BS270.BSC275 is also by the number for receiving According to MSC280 is routed to, which is provided for the extra route service with PSTN290 formation interfaces.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS270 with by forward link signals It is sent to mobile terminal 1 00.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the invention is proposed.
Embodiment one
First embodiment of the invention proposes that one kind shares adapter method to set up, as shown in figure 3, comprising the following steps:
S101, is that newly-built adapter of sharing arranges unified interface for calling;
Specifically, the core work(such as share plug-in unit SDK completing data preparation, parse, share in order to access different APP Can, newly-built one is shared adapter, and is called for upper strata for the newly-built unified interface of adapter setting of sharing.
S102, be it is described share adapter configuration and share plug-in unit SDK parameters, the parameter is can use comprising plug-in unit SDK is shared Or to share plug-in unit SDK unavailable.
Specifically, it is that plug-in unit SDK parameters are shared in newly-built adapter configuration of sharing, typically, the third party that selection is used The plug-in unit SDK parameters of sharing of platform are set to 1, represent the third-party platform and can use, if sharing a certain third-party platform Plug-in unit SDK parameters are set to 0, then represent the third-party platform and be abandoned use;If increasing a third-party platform newly, increase newly One is shared plug-in unit SDK, and is set to 1.The third-party platform for being arranged to 1 shares plug-in unit SDK parameters, obtains from a certain APP The online information for taking can be called this to share adapter to share the third-party platform by sharing button and sharing.
Implementation above shares adapter method to set up, difference in prior art is shared plug-in unit SDK and is integrated in APP ends Mode change into be integrated in it is independent share on adapter, make increase, delete third-party platform share plug-in unit SDK change letter It is single, enhance flexibility, development cost be greatly reduced, also reduce the volume of APP relative to traditional APP, make APP relative to Traditional mode operation is more stable.
Embodiment two
Second embodiment of the invention proposes that another kind shares adapter method to set up, as shown in figure 4, comprising the following steps:
S201, arranges unified interface for calling to share adapter;
Wherein, the Core Feature such as share plug-in unit SDK completing data preparation, parse, share in order to access different APP, Newly-built one is shared adapter, and for it is newly-built share adapter unified interface be provided call for upper strata.
S202, be it is described share adapter configuration and share plug-in unit SDK parameters, the parameter is can use comprising plug-in unit SDK is shared Or to share plug-in unit SDK unavailable;
Specifically, it is that plug-in unit SDK parameters are shared in newly-built adapter configuration of sharing, typically, the third party that selection is used The plug-in unit SDK parameters of sharing of platform are set to 1, represent the third-party platform and can use, if sharing a certain third-party platform Plug-in unit SDK parameters are set to 0, then represent the third-party platform and be abandoned use;If increasing a third-party platform newly, increase newly One is shared plug-in unit SDK, and is set to 1.The third-party platform for being arranged to 1 shares plug-in unit SDK parameters, obtains from a certain APP The online information for taking can share the third-party platform by sharing button.
S203, generates JAVA dynamic bases and static library, and the JAVA dynamic bases need access to share for multiple with static library The APP of plug-in unit is called.
Wherein, java dynamic bases SharePluginAdapter.jar are used in APP, needs to access what is shared for multiple APP is used.
Specifically, Android.mk files are configured, LOCAL_MODULE=SharePluginAdapter is set, quoted and become Amount include $ (BUILD_STATIC_JAVA_LIBRARY);According to compiling attribute configuration, compiling generates a public dynamic Storehouse SharePluginAdapter.jar is used for multiple different platforms;The generation path of java static libraries:/out/target/ Entry name/system/framework/SharePluginAdapter.jar.
Quote in APP and share plug-in adapter, create single process be used to obtaining, parse, transmission information, with avoid because Share the exception of plug-in unit SDK for third party, the collapse for causing APP to apply;LOCAL_ is quoted in the Android.mk of APP PREBUILT_STATIC_JAVA_LIBRARY+=SharePluginAdapter.jar;During operation, plug-in unit adaptation is shared in establishment Device, obtains the content and heading message of information to be shared, selects certain to share SDK and share information, then sends to be shared Information finally discharges destruction and shares adapter to the platform specified.
Implementation above shares adapter method to set up, difference in prior art is shared plug-in unit SDK and is integrated in APP ends Mode change into be integrated in it is independent share on adapter, make increase, delete third-party platform share plug-in unit SDK change letter It is single, flexibility is enhanced, development cost is greatly reduced;Configuration JAVA dynamic bases and static library, have adapted to multiple needs and have accessed The APP for sharing plug-in unit is called, and further enhances the stability run when multiple APP are called.
Embodiment three
First embodiment of the invention proposes that one kind shares adapter, as shown in figure 5, including interface unit 1, parameter configuration list Unit 2.
Interface unit 1, for arranging unified interface for calling to share adapter;
Wherein, the Core Feature such as share plug-in unit SDK completing data preparation, parse, share in order to access different APP, Newly-built one is shared adapter, is called for upper strata for the newly-built unified interface of adapter configuration of sharing by interface unit 1.
Parameter configuration unit 2, for sharing adapter configuration and sharing plug-in unit SDK parameters for described, the parameter comprising point Enjoy that plug-in unit SDK is available or to share plug-in unit SDK unavailable.
Specifically, plug-in unit SDK parameters are shared for newly-built adapter configuration of sharing by parameter configuration unit 2, typically, will The plug-in unit SDK parameters of sharing of the third-party platform that selection is used are set to 1, represent the third-party platform and can use, if will be a certain The plug-in unit SDK parameters of sharing of third-party platform are set to 0, then represent the third-party platform and be abandoned use;If newly-increased one Third-party platform, then increase one newly and share plug-in unit SDK, and be set to 1.The third-party platform for being arranged to 1 shares plug-in unit SDK Parameter, the online information obtained from a certain APP can share the third-party platform by sharing button.
Implementation above shares adapter, difference in prior art is shared plug-in unit SDK is integrated in the mode at APP ends and change For be integrated in it is independent share on adapter, make increase, delete third-party platform share plug-in unit SDK change it is simple, enhance Flexibility, is greatly reduced development cost.
Example IV
Fourth embodiment of the invention proposes that another kind shares adapter, as shown in fig. 6, including:Interface unit 1, parameter is matched somebody with somebody Put unit 2 and Database Unit 3.
Wherein interface unit 1 and parameter configuration unit 2 are identical with embodiment three, will not be described here.
Database Unit 3, for generating JAVA dynamic bases and static library, the JAVA dynamic bases and static library supply multiple need Access and share the APP of plug-in unit and call.
Wherein, java dynamic bases SharePluginAdapter.jar are used in APP, needs to access what is shared for multiple APP is used.
Specifically, the configuration of Database Unit 3 Android.mk files, arrange LOCAL_MODULE= SharePluginAdapter, reference to variable include $ (BUILD_STATIC_JAVA_LIBRARY);Matched somebody with somebody according to compiling attribute Put, compiling generates public dynamic base SharePluginAdapter.jar and uses for multiple different platforms;Java is static The generation path in storehouse:/ out/target/ entry names/system/framework/SharePluginAdapter.jar.
Quote in APP and share plug-in adapter, create single process be used to obtaining, parse, transmission information, with avoid because Share the exception of SDK for third party, the collapse for causing APP to apply;LOCAL_PREBUILT_ is quoted in the Android.mk of APP STATIC_JAVA_LIBRARY+=SharePluginAdapter.jar;During operation, plug-in adapter is shared in establishment, and obtaining will The content and heading message of the information shared, selects certain to share SDK and shares information, then sends information to be shared to specified Platform, finally discharge destruction share adapter.
Implementation above shares adapter, difference in prior art is shared plug-in unit SDK is integrated in the mode at APP ends and change For be integrated in it is independent share on adapter, make increase, delete third-party platform share plug-in unit SDK change it is simple, enhance Flexibility, is greatly reduced development cost;Configuration JAVA dynamic bases and static library, need to access the APP for sharing plug-in unit for multiple Call, further enhance the stability run when multiple APP are called.
Embodiment five
Fifth embodiment of the invention proposition is a kind of to call the method for sharing adapter, as shown in fig. 7, comprising the steps of:
S301, establishment share adapter;
Wherein, create and share the process of adapter and include:Unified interface is set for calling for newly-built adapter of sharing; Share adapter configuration and share plug-in unit SDK parameters for described, the parameter is available or share plug-in unit comprising plug-in unit SDK is shared SDK is unavailable.
S302, obtains the content and heading message of information to be shared;
Wherein, an online information being obtained at a certain APP ends, needing to other APP or third-party platform to share, clicking on should In APP share button after, APP obtains the content and heading message of current online information to be shared.
S303, selects certain to share plug-in unit SDK and shares information;
Wherein, when upstate is configured to, the online information for sharing acquisition could be real for the selected plug-in unit SDK that shares It is existing.SDK values are to represent the APP for sharing plug-in unit SDK associations can use for 1, for example:
SupportSharePluginAllSDKType{
Support.share.sdk.wechat=1;
Support.share.sdk.sinablog=1;
Support.share.sdk.qq=1;
Support.share.sdk.douban=1;
}
S304, sends information to be shared to the third-party platform specified;
Wherein, the third-party platform is including but not limited in QQ, wechat, bean cotyledon, microblogging, Renren Network or many It is individual.
S304, release destruction share adapter.
Implementation above calls the method for sharing adapter, be configured to available sharing by calling to share in adapter Plug-in unit SDK, realizes that the quick, stable of online information is shared.
Embodiment six
Sixth embodiment of the invention proposition is a kind of to call the device for sharing adapter, as shown in figure 8, including:Creating unit 10th, acquiring unit 20, select unit 30, transmitting element 40, destruction unit 50.
Creating unit 10, shares adapter for creating;
Wherein, the creating unit 10 is included:Interface unit 1, for arranging unified interface for adjusting to share adapter With;Parameter configuration unit 2, for sharing adapter configuration and sharing plug-in unit SDK parameters for described, the parameter is comprising sharing plug-in unit SDK is available or to share plug-in unit SDK unavailable.As needed, Database Unit can also be included, the Database Unit is used for JAVA dynamic bases and static library are generated, the JAVA dynamic bases are called for multiple APP for needing access to share plug-in unit with static library.
Acquiring unit, for obtaining the content and heading message of information to be shared;
Select unit, shares information for selecting certain to share plug-in unit SDK;
Transmitting element, for sending information to be shared to the third-party platform specified;
Unit is destroyed, shares adapter for discharging destruction.
Implementation above calls the device for sharing adapter, be configured to available sharing by calling to share in adapter Plug-in unit SDK, realizes that the quick, stable of online information is shared.
Embodiment seven
Seventh embodiment of the invention proposes a kind of mobile terminal, as shown in figure 9, include sharing adapter and APP.
Share adapter, for connecting APP, comprising:Interface unit, for for share adapter arrange unified interface for Call;And parameter configuration unit, for sharing adapter configuration and sharing plug-in unit SDK parameters for described, the parameter comprising point Enjoy that plug-in unit SDK is available or to share plug-in unit SDK unavailable.
Further, Database Unit can also be included, for generating JAVA dynamic bases and static library, the JAVA is dynamic Call for multiple APP for needing access to share plug-in unit with static library in storehouse.
Wherein, java dynamic bases SharePluginAdapter.jar are used in APP, needs to access what is shared for multiple APP is used.
Specifically, Android.mk files are configured, LOCAL_MODULE=SharePluginAdapter is set, quoted and become Amount include $ (BUILD_STATIC_JAVA_LIBRARY);According to compiling attribute configuration, compiling generates a public dynamic Storehouse SharePluginAdapter.jar is used for multiple different platforms;The generation path of java static libraries:/out/target/ Entry name/system/framework/SharePluginAdapter.jar.
Quote in APP and share plug-in adapter, create single process be used to obtaining, parse, transmission information, with avoid because Share the exception of SDK for third party, the collapse for causing APP to apply;LOCAL_PREBUILT_ is quoted in the Android.mk of APP STATIC_JAVA_LIBRARY+=SharePluginAdapter.jar;During operation, plug-in adapter is shared in establishment, and obtaining will The content and heading message of the information shared, selects certain to share SDK and shares information, then sends information to be shared to specified Platform, finally discharge destruction share adapter.
APP, operates in terminal, for obtaining, parsing, showing online information, and after sharing adapter described in calling, shares The online information is to the third-party platform for sharing plug-in unit SDK associations selected.
The APP or third-party platform are including but not limited in QQ, wechat, bean cotyledon, microblogging, Renren Network or many It is individual.
The mobile terminal of implementation above, by be separately provided share adapter, configuration unified interface share plug-in unit with setting SDK parameters are available or unavailable, are capable of achieving quick replacement, increase newly, delete certain purpose for sharing plug-in unit SDK, can be quick Adapt to, switch multiple different SDK, it is easy to safeguard, reduce development cost;Share adapter for mobile terminal (iOS, Android, WP8) APP socialization sharing function is provided, be integrated with some it is conventional share class libraries and interface, shorten developer's Development time;Share adapter and different can share plug-in unit SDK (as QQ, wechat, Sina weibo, Tengxun are micro- so that self adaptation is integrated Rich, happy net, Renren Network, bean cotyledon etc.), increase according to demand, delete and share plug-in unit SDK, be greatly reduced APP volumes, make to share Content is more stable.
It should be noted that herein, term " including ", "comprising" or its any other variant are intended to non-row His property is included, so that a series of process, method, article or device including key elements not only include those key elements, and And also include other key elements being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that including being somebody's turn to do Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words The part for going out contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), use so that a station terminal equipment including some instructions (can be mobile phone, computer, clothes Business device, air-conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, it is every using this Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. one kind shares adapter method to set up, it is characterised in that comprise the steps of:
Unified interface is set for calling for newly-built adapter of sharing;
Share adapter configuration and share plug-in unit SDK parameters for described, the parameter is available or share slotting comprising plug-in unit SDK is shared Part SDK is unavailable.
2. it is according to claim 1 to share adapter method to set up, it is characterised in that also comprising step:Generate JAVA dynamic Storehouse and static library, the JAVA dynamic bases and static library are called for multiple APP for needing access to share plug-in unit.
3. one kind shares adapter, it is characterised in that include:
Interface unit, for arranging unified interface for calling for newly-built adapter of sharing;
Parameter configuration unit, for sharing adapter configuration and sharing plug-in unit SDK parameters for described, the parameter is comprising sharing plug-in unit SDK is available or to share plug-in unit SDK unavailable.
4. it is according to claim 3 to share adapter, it is characterised in that also to include:
Database Unit, for generating JAVA dynamic bases and static library, the JAVA dynamic bases and static library are connect for multiple needs The APP for entering to share plug-in unit is called.
5. it is a kind of to call the method for sharing adapter, it is characterised in that to comprise the steps of:
Adapter is shared in establishment;
Obtain the content and heading message of information to be shared;
Select certain to share plug-in unit SDK and share information;
Information to be shared is sent to the third-party platform specified;
Adapter is shared in release destruction.
It is 6. according to claim 5 to call the method for sharing adapter, it is characterised in that:" adapter is shared in establishment " Comprising:
Unified interface is set for calling to share adapter;
Share adapter configuration and share plug-in unit SDK parameters for described, the parameter is available or share slotting comprising plug-in unit SDK is shared Part SDK is unavailable.
7. it is a kind of to call the device for sharing adapter, it is characterised in that to include:
Creating unit, shares adapter for creating;
Acquiring unit, for obtaining the content and heading message of information to be shared;
Select unit, shares information for selecting certain to share plug-in unit SDK;
Transmitting element, for sending information to be shared to the third-party platform specified;
Unit is destroyed, shares adapter for discharging destruction.
It is 8. according to claim 7 to call the device for sharing adapter, it is characterised in that
The adapter creating unit of sharing is included:
Interface unit, for arranging unified interface for calling to share adapter;
Parameter configuration unit, for sharing adapter configuration and sharing plug-in unit SDK parameters for described, the parameter is comprising sharing plug-in unit SDK is available or to share plug-in unit SDK unavailable.
9. a kind of mobile terminal, it is characterised in that include:
Share adapter, for connecting APP, comprising:Interface unit, for arranging unified interface for adjusting to share adapter With;And parameter configuration unit, for sharing adapter configuration and sharing plug-in unit SDK parameters for described, the parameter is comprising sharing Plug-in unit SDK is available or to share plug-in unit SDK unavailable;
APP, operates in terminal, for obtaining, parsing, showing online information, and after sharing plug-in adapter described in calling, shares The online information is to the third-party platform for sharing plug-in unit SDK associations selected.
10. mobile terminal according to claim 9, it is characterised in that:The APP includes QQ, wechat, bean cotyledon, microblogging, people One or more in people's net.
CN201610929209.5A 2016-10-31 2016-10-31 Shared adapter, configuration method and calling method and device thereof and mobile terminal Pending CN106528304A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610929209.5A CN106528304A (en) 2016-10-31 2016-10-31 Shared adapter, configuration method and calling method and device thereof and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610929209.5A CN106528304A (en) 2016-10-31 2016-10-31 Shared adapter, configuration method and calling method and device thereof and mobile terminal

Publications (1)

Publication Number Publication Date
CN106528304A true CN106528304A (en) 2017-03-22

Family

ID=58292067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610929209.5A Pending CN106528304A (en) 2016-10-31 2016-10-31 Shared adapter, configuration method and calling method and device thereof and mobile terminal

Country Status (1)

Country Link
CN (1) CN106528304A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109831532A (en) * 2019-03-18 2019-05-31 北京字节跳动网络技术有限公司 Data sharing method, device, equipment and medium
CN111400068A (en) * 2020-03-17 2020-07-10 北京字节跳动网络技术有限公司 Interface control method and device, readable medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033743A (en) * 2010-09-02 2011-04-27 西安赛斐软件科技有限公司 System and method for expanding model driving development capability by applying plug-in
US20140181842A1 (en) * 2012-12-21 2014-06-26 Mobile Iron, Inc. Secure mobile app connection bus
CN103955482A (en) * 2014-04-03 2014-07-30 北京百度网讯科技有限公司 Service calling method and equipment in mobile terminal
CN103997452A (en) * 2013-02-20 2014-08-20 腾讯科技(深圳)有限公司 Information sharing method and apparatus among multiple platforms
CN104023069A (en) * 2014-06-13 2014-09-03 可牛网络技术(北京)有限公司 Method and equipment of sharing information
US20150074546A1 (en) * 2013-09-06 2015-03-12 Microsoft Corporation In-application customization
CN105740057A (en) * 2014-12-09 2016-07-06 阿里巴巴集团控股有限公司 Information processing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033743A (en) * 2010-09-02 2011-04-27 西安赛斐软件科技有限公司 System and method for expanding model driving development capability by applying plug-in
US20140181842A1 (en) * 2012-12-21 2014-06-26 Mobile Iron, Inc. Secure mobile app connection bus
CN103997452A (en) * 2013-02-20 2014-08-20 腾讯科技(深圳)有限公司 Information sharing method and apparatus among multiple platforms
US20150074546A1 (en) * 2013-09-06 2015-03-12 Microsoft Corporation In-application customization
CN103955482A (en) * 2014-04-03 2014-07-30 北京百度网讯科技有限公司 Service calling method and equipment in mobile terminal
CN104023069A (en) * 2014-06-13 2014-09-03 可牛网络技术(北京)有限公司 Method and equipment of sharing information
CN105740057A (en) * 2014-12-09 2016-07-06 阿里巴巴集团控股有限公司 Information processing method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109831532A (en) * 2019-03-18 2019-05-31 北京字节跳动网络技术有限公司 Data sharing method, device, equipment and medium
CN111400068A (en) * 2020-03-17 2020-07-10 北京字节跳动网络技术有限公司 Interface control method and device, readable medium and electronic equipment
CN111400068B (en) * 2020-03-17 2023-09-22 北京字节跳动网络技术有限公司 Interface control method and device, readable medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN104735255B (en) Multi-screen display method and system
CN104866265B (en) Multi-media file display method and device
CN105159533A (en) Mobile terminal and automatic verification code input method thereof
CN106557291B (en) Split screen processing method and processing device
CN105843478B (en) The icon display control method and device of rapid switch
CN106453939A (en) Streaming media access method and apparatus
CN104850325A (en) Mobile terminal application processing method and device
CN105204992A (en) Test script generating device and method
CN106598538A (en) Method and system for updating instruction set
CN106528576A (en) Page search method and system, and terminal
CN106445830A (en) Application program running environment detection method and mobile terminal
CN108829267A (en) A kind of vocabulary recommended method, equipment and computer can storage mediums
CN106506364A (en) A kind of cut-in method, client and routing server
CN104731508A (en) Audio playing method and device
CN105187621B (en) The method, apparatus and terminal of message notifying
CN106371704A (en) Fast application layout method for lock screen interface and terminal
CN106657643A (en) Mobile terminal and communication session display method
CN106455009A (en) A network search device and method
CN106484534A (en) Control method for the mobile terminal of displaying and control device
CN106453542A (en) Screen sharing apparatus and method
CN105791588A (en) Mobile terminal desktop setting device and mobile terminal desktop setting method
CN106055214B (en) The evaluation processing method and processing device of application software
CN107194243A (en) A kind of mobile terminal and the method for installing application program
CN105787030B (en) A kind of mobile terminal and its method for handling data
CN106603872A (en) Method for starting application according to association strategy, device and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170322