CN104965692B - The method and system of striding course display data in desktop application - Google Patents

The method and system of striding course display data in desktop application Download PDF

Info

Publication number
CN104965692B
CN104965692B CN201410193846.1A CN201410193846A CN104965692B CN 104965692 B CN104965692 B CN 104965692B CN 201410193846 A CN201410193846 A CN 201410193846A CN 104965692 B CN104965692 B CN 104965692B
Authority
CN
China
Prior art keywords
user interface
desktop application
data
interface information
function module
Prior art date
Application number
CN201410193846.1A
Other languages
Chinese (zh)
Other versions
CN104965692A (en
Inventor
郭永智
李斌
罗程
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to CN201410193846.1A priority Critical patent/CN104965692B/en
Publication of CN104965692A publication Critical patent/CN104965692A/en
Application granted granted Critical
Publication of CN104965692B publication Critical patent/CN104965692B/en

Links

Abstract

The present invention provides a kind of method and system of the striding course display data in desktop application, the described method comprises the following steps:The user interface information for specifying function module in independent utility is obtained, and the user interface information is added in the user interface container of desktop application;Obtain the message data of the specified function module;The message data is loaded in the user interface information after having added to desktop application, and is shown the user interface information for being loaded with message data in desktop application by the user interface container.A kind of method and system of striding course display data in desktop application of the present invention, reduce and check new information the time it takes, greatly improve the efficiency of Message Processing, also avoid the appearance of Caton phenomenon.

Description

The method and system of striding course display data in desktop application

Technical field

The present invention relates to network communication fields, more particularly to a kind of method of the striding course display data in desktop application And a kind of system of the striding course display data in desktop application.

Background technology

Currently, desktop application and independent utility are installed and used respectively, there is independence between two programs.For example, User is just playing the message for receiving a circle of friends when game suddenly, in order to view the message, biography on mobile terminals User, which needs to exit game, in system method returns to desktop, and the figure of related independent utility is then clicked on the desktop of mobile terminal Mark waits for the independent utility to start, and the catalogue of circle of friends message display is switched to after start completion and could carry out message and check.

As it can be seen that in traditional method, in order to view message in time, needs to spend the long operating time, lead Cause the less efficient of Message Processing;Even if it is the poor mobile phone of a performance, so many switching in the short time Operation, it is possible to cause the appearance of Caton phenomenon.

Invention content

Based on this, the present invention provides a kind of method and system of the striding course display data in desktop application, can improve The efficiency of Message Processing.

To achieve the above object, the present invention adopts the following technical scheme that:

A method of the striding course display data in desktop application includes the following steps:

The user interface information for specifying function module in independent utility is obtained, and the user interface information is added to desktop In the user interface container of application;

Obtain the message data of the specified function module;

The message data is loaded in the user interface information after having added to desktop application, and passes through the user Interface chamber shows the user interface information for being loaded with message data in desktop application.

A kind of system of the striding course display data in desktop application, including:

User interface information acquisition module, for obtaining the user interface information for specifying function module in independent utility, and The user interface information is added in the user interface container of desktop application;

Message data acquisition module, the message data for obtaining the specified function module;

Display module, for loading the message data in the user interface information after having added to desktop application, And the user interface information for being loaded with message data is shown in desktop application by the user interface container.

It can be seen from above scheme the present invention a kind of striding course display data in desktop application method and be System will specify the user interface information of function module and message data to share in desktop application, then in independent utility The user interface information for being loaded with message data is shown in desktop application by the user interface container of desktop application. Scheme through the invention can directly show the specified function module of independent utility, need not so cut on the table Message can be carried out on the table and check by changing to the interface of independent utility, and new information the time it takes is checked to reduce, The efficiency for greatly improving Message Processing also avoids the appearance of Caton phenomenon.

Description of the drawings

Fig. 1 is a kind of method flow schematic diagram of the striding course display data in desktop application in the embodiment of the present invention;

Fig. 2 is the schematic diagram that shared data and user interface information are realized in the embodiment of the present invention;

Fig. 3 is a kind of system structure diagram of the striding course display data in desktop application in the embodiment of the present invention;

Fig. 4 is the structural schematic diagram for the computer system that can realize the embodiment of the present invention.

Specific implementation mode

In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.

The description of specific distinct unless the context otherwise, the present invention in element and component, the shape that quantity both can be single Formula exists, and form that can also be multiple exists, and the present invention is defined not to this.Although step in the present invention with label into It has gone arrangement, but is not used to limit the precedence of step, unless expressly stated the order of step or holding for certain step Based on row needs other steps, otherwise the relative rank of step is adjustable.

It is shown in Figure 1, a method of the striding course display data in desktop application includes the following steps:

Step S101 obtains UI (User Interface, user interface) information that function module is specified in independent utility, And the UI information is added in the UI containers of desktop application.

Step S102 obtains the message data of the specified function module.

Step S103 loads the message data in the UI information after having added to desktop application, and by described UI containers show the UI information for being loaded with message data in desktop application, thereby realize and show certain on the table The purpose (such as directly displaying circle of friends on the table) of the specified function module of independent utility.

In one of the embodiments, the independent utility can be SNS (Social Networking Services, Social network services) application, the desktop application can be the Android desktop application etc. under android (i.e. Android) system. The solution of the present invention is described in detail by taking Android system as an example below:

In order to show the function module of independent utility on the table, need to share two parts:UI information and message count According to.UI information is exactly the arrangement that the interface seen of user is shown, as circle of friends UI information in have head portrait control, text control Part, web page interlinkage control etc., these control combinations get up be exactly UI layout arrangement.As a preferable implementation Example, described obtain in independent utility specify the process of the UI information of function module to can specifically include following steps:

Step S1011, when receiving the instruction for showing the specified function module of independent utility in desktop application, according to this The packet name of independent utility obtains context object.Wherein, packet name indicates the unique mark of each application program in Android system, on Hereafter object, that is, context objects;

Step S1012 obtains the ID of user interface according to the context object;

Step S1013 loads corresponding UI information according to the title of the ID and specified function module.It is loaded into UI letters It can be put into the window of desktop application and show after breath.Specific code can be as follows:

String packageName=" com.tencent.mm ";

Context theirContext=this.createPackageContext (packageName, Context.CONTEXT_RESTRICTED);

Resources res=theirContext.getResources ();

Int id=res.getIdentifier (" sns_layout ", " layout ", packageName);

LayoutInflater inflater=(LayoutInflater)

theirContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);

View=inflater.inflate (id, null);

By above-mentioned operation, there is the UI information of independent utility on desktop, but that is a static layout, it is true Just share this function, it is also necessary to message data acquisition come and realize message data shared.As a preferable implementation The process of example, the message data for obtaining the specified function module in of the invention can specifically include following steps:Described in inquiry Data sharing interface (generally URI (Uniform Resource Identifier, the universal resource identifier of specified function module Symbol) interface), the message data of the specified function module can be obtained by the data sharing interface.

In addition, the striding course for message data transmits, it can all start a backstage in desktop and independent utility Service is serviced, and is responsible for the transmission of message data by this service.By taking SNS is applied as an example, as shown in Fig. 2, specific transmit Mode can use the intent components that be provided of Android system to be transmitted, and intent components, which can transmit, all realizes sequence The data type of rowization, but the size of data that single transmits is no more than 30kb.

As a preferable embodiment, the present invention will be loaded with the user interface information of message data in desktop application In shown after, can also include the following steps:The data sharing interface is monitored, when detecting new information number According to when the message data in desktop application is updated.Further, exist in one of the embodiments, when receiving user It, can also be by described when message (such as the message such as reply, comment) inputted on the user interface information in desktop application Data sharing interface transmits the message to the independent utility, and uploads to corresponding server by the independent utility.It is logical The above operation is crossed, after UI information and message data are all shared, so that it may specified in SNS applications directly to use on the table Function module.Such as long as a new information is brushed out in circle of friends, this new information will be shown in desktop application at once, And it can be carried out all operations that could be executed in circle of friends such as replying, comment on the table.

Identical as a kind of above-mentioned method of the striding course display data in desktop application, the present invention also provides one kind in desktop The system of striding course display data in, as shown in figure 3, including:

User interface information acquisition module 101, for obtaining the user interface information for specifying function module in independent utility, And the user interface information is added in the user interface container of desktop application;

Message data acquisition module 102, the message data for obtaining the specified function module;

Display module 103, for loading the message count in the user interface information after having added to desktop application According to, and shown the user interface information for being loaded with message data in desktop application by the user interface container.

As a preferable embodiment, the user interface information acquisition module may include:

Context object acquisition module shows that independent utility specifies function module for working as to receive in desktop application When instruction, context object is obtained according to the packet name of the independent utility;

ID acquisition modules, the ID for obtaining user interface according to the context object;

Load-on module, for loading corresponding user interface information according to the title of the ID and specified function module.

As a preferable embodiment, the message data acquisition module may include:

Enquiry module, the data sharing interface for inquiring the specified function module, is obtained by the data sharing interface Take the message data of the specified function module.

As a preferable embodiment, a kind of system of striding course display data in desktop application of the invention may be used also To include:

It monitors and update module, for monitoring the data sharing interface, when detecting new information data pair Message data in desktop application is updated.

As a preferable embodiment, a kind of system of striding course display data in desktop application of the invention may be used also To include:

Transmission module, for when receiving the message that user is inputted on the user interface information in desktop application, The independent utility is transmitted the message to by the data sharing interface, and corresponding clothes are uploaded to by the independent utility Business device.

One kind of a kind of other technical characteristics of the system of above-mentioned striding course display data in desktop application and the present invention The method of striding course display data is identical in desktop application, and it will not go into details herein.

Fig. 4 is the module map for the computer system 1000 that can realize the embodiment of the present invention.The computer system 1000 An only example for being suitable for the invention computer environment is not construed as proposing appointing to the use scope of the present invention What is limited.Computer system 1000 can not be construed to need to rely on or the illustrative computer system 1000 with diagram One or more of component combination.

Computer system 1000 shown in Fig. 4 is the example of a computer system suitable for the present invention.Have Other frameworks of different sub-systems configuration can also use.Such as there is big well known personal digital assistant, smart phone, puts down The similar devices such as plate computer, portable media player, set-top box, notebook can be adapted for some embodiments of the present invention. But it is not limited to equipment enumerated above.

As shown in figure 4, computer system 1000 includes processor 1010, memory 1020 and system bus 1022.Including Various system components including memory 1020 and processor 1010 are connected on system bus 1022.Processor 1010 is one For executing the hardware of computer program instructions by arithmetic sum logical operation basic in computer system.Memory 1020 It is one to be used to temporarily or permanently store calculation procedure or the physical equipment of data (for example, program state information).System is total Line 1020 can be any one in the bus structures of following several types, including memory bus or storage control, outer If bus and local bus.Processor 1010 and memory 1020 can be by system bus 1022 into row data communication.Wherein Memory 1020 includes read-only memory (ROM) or flash memory (being all not shown in figure) and random access memory (RAM), RAM Typically refer to the main memory for being loaded with operating system and application program.

Computer system 1000 further includes display interface 1030 (for example, graphics processing unit), display 1040 (example of equipment Such as, liquid crystal display), audio interface 1050 (for example, sound card) and audio frequency apparatus 1060 (for example, loud speaker).Show equipment 1040 and audio frequency apparatus 1060 be media device for experiencing multimedia content.

Computer system 1000 generally comprises a storage device 1070.Storage device 1070 can from a variety of computers It reads to select in medium, computer-readable medium refers to any available medium that can be accessed by computer system 1000, Including mobile and fixed two media.For example, computer-readable medium includes but not limited to, flash memory (miniature SD Card), CD-ROM, digital versatile disc (DVD) or other optical disc storages, cassette, tape, disk storage or other magnetic storages are set Any other medium that is standby, or can be used for storing information needed and being accessed by computer system 1000.

Computer system 1000 further includes input unit 1080 and input interface 1090 (for example, I/O controller).User can With by input unit 1080, such as the touch panel equipment in keyboard, mouse, display device 1040, input instruction and information arrive In computer system 1000.Input unit 1080 is typically connected to by input interface 1090 on system bus 1022, but It can also be connected by other interfaces or bus structures, such as universal serial bus (USB).

Computer system 1000 can carry out logical connection with one or more network equipment in a network environment.Network is set Standby can be PC, server, router, smart phone, tablet computer or other common network nodes.Department of computer science System 1000 is connected by LAN (LAN) interface 1100 or mobile comm unit 1110 with the network equipment.LAN (LAN) Refer in finite region, such as family, school, computer laboratory or using the network media office building, interconnection composition Computer network.WiFi and twisted-pair feeder wiring Ethernet are two kinds of technologies of most common structure LAN.WiFi is a kind of It can make 1000 swapping data of computer system or be connected to the technology of wireless network by radio wave.Mobile comm unit 1110 are answered and are made a phone call by radio communication diagram while capable of being moved in a wide geographic area.In addition to logical Other than words, mobile comm unit 1110 is also supported to carry out in 2G, 3G or the 4G cellular communication system for providing mobile data service Internet access.

It should be pointed out that other includes than the computer system of 1000 more or fewer subsystems of computer system It can be suitably used for inventing.For example, computer system 1000 may include that can exchange the bluetooth unit of data in short distance, for shining The imaging sensor of phase, and the accelerometer for measuring acceleration.

As detailed above, the striding course in desktop application can be executed by being suitable for the invention computer system 1000 The specified operation of the method for display data.Computer system 1000 is run in computer-readable medium by processor 1010 The form of software instruction executes these operations.These software instructions from storage device 1070 or can pass through lan interfaces 1100 are read into from another equipment in memory 1020.The software instruction being stored in memory 1020 makes processor 1010 hold The method of the above-mentioned striding course display data in desktop application of row.In addition, being combined by hardware circuit or hardware circuit soft Part instruction also can equally realize the present invention.Therefore, realize that the present invention is not limited to the combinations of any specific hardware circuit and software.

By above scheme as can be seen that the present invention a kind of striding course display data in desktop application method and be System will specify the user interface information of function module and message data to share in desktop application, then in independent utility The user interface information for being loaded with message data is shown in desktop application by the user interface container of desktop application. Scheme through the invention can directly show the specified function module of independent utility, need not so cut on the table Message can be carried out on the table and check by changing to the interface of independent utility, and new information the time it takes is checked to reduce, The efficiency for greatly improving Message Processing also avoids the appearance of Caton phenomenon.

Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (8)

1. a kind of method of the striding course display data in desktop application, which is characterized in that include the following steps:
The user interface information for specifying function module in independent utility is obtained, and the user interface information is added to desktop application User interface container in, arrangement that the user interface information is shown by the interface that user sees;
Obtain the message data of the specified function module;
The message data is loaded in the user interface information after having added to desktop application, and passes through the user interface Container shows the user interface information for being loaded with message data in desktop application;
Wherein, the process for obtaining the user interface information of specified function module in independent utility includes:
When receiving the instruction for showing the specified function module of independent utility in desktop application, according to the packet name of the independent utility Context object is obtained, packet name indicates the unique mark of each application program in Android system;
The ID of user interface is obtained according to the context object;
Corresponding user interface information is loaded according to the title of the ID and specified function module.
2. the method for the striding course display data according to claim 1 in desktop application, which is characterized in that described in acquisition The process of the message data of specified function module includes:
The data sharing interface for inquiring the specified function module obtains the specified function module by the data sharing interface Message data.
3. the method for the striding course display data according to claim 2 in desktop application, which is characterized in that will load Further include step after the user interface information of message data is shown in desktop application:
The data sharing interface is monitored, the message data in desktop application is carried out when detecting new information data Update.
4. the method for the striding course display data according to claim 2 in desktop application, which is characterized in that will load Further include step after the user interface information of message data is shown in desktop application:
When receiving the message that user is inputted on the user interface information in desktop application, connect by the data sharing Mouth transmits the message to the independent utility, and uploads to corresponding server by the independent utility.
5. a kind of system of the striding course display data in desktop application, which is characterized in that including:
User interface information acquisition module, for obtaining the user interface information for specifying function module in independent utility, and should User interface information is added in the user interface container of desktop application, the interface institute that the user interface information is seen for user The arrangement of displaying;
Message data acquisition module, the message data for obtaining the specified function module;
Display module for loading the message data in the user interface information after having added to desktop application, and leads to The user interface container is crossed to show the user interface information for being loaded with message data in desktop application;
Wherein, the user interface information acquisition module includes:
Context object acquisition module, for working as the instruction for receiving and showing that independent utility specifies function module in desktop application When, context object is obtained according to the packet name of the independent utility, packet name indicates unique mark of each application program in Android system Know;
ID acquisition modules, the ID for obtaining user interface according to the context object;
Load-on module, for loading corresponding user interface information according to the title of the ID and specified function module.
6. the system of the striding course display data according to claim 5 in desktop application, which is characterized in that the message Data acquisition module includes:
Enquiry module, the data sharing interface for inquiring the specified function module obtain institute by the data sharing interface State the message data of specified function module.
7. the system of the striding course display data according to claim 6 in desktop application, which is characterized in that further include:
Monitoring and update module, for monitoring the data sharing interface, when detecting new information data to desktop Message data in is updated.
8. the system of the striding course display data according to claim 6 in desktop application, which is characterized in that further include:
Transmission module, for when receiving the message that user is inputted on the user interface information in desktop application, passing through The data sharing interface transmits the message to the independent utility, and uploads to corresponding service by the independent utility Device.
CN201410193846.1A 2014-05-08 2014-05-08 The method and system of striding course display data in desktop application CN104965692B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410193846.1A CN104965692B (en) 2014-05-08 2014-05-08 The method and system of striding course display data in desktop application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410193846.1A CN104965692B (en) 2014-05-08 2014-05-08 The method and system of striding course display data in desktop application

Publications (2)

Publication Number Publication Date
CN104965692A CN104965692A (en) 2015-10-07
CN104965692B true CN104965692B (en) 2018-09-14

Family

ID=54219727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410193846.1A CN104965692B (en) 2014-05-08 2014-05-08 The method and system of striding course display data in desktop application

Country Status (1)

Country Link
CN (1) CN104965692B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930149B (en) * 2016-04-15 2019-01-01 郑州悉知信息科技股份有限公司 A kind of display methods and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999334A (en) * 2012-11-15 2013-03-27 广东欧珀移动通信有限公司 Android platform-based shortcut implementation method, device and terminal
CN103064735A (en) * 2011-10-24 2013-04-24 联想(北京)有限公司 Display process method, display device and electronic equipment
CN103294351A (en) * 2012-02-24 2013-09-11 联想(北京)有限公司 Display method and electronic device
CN103513972A (en) * 2012-06-25 2014-01-15 联想(北京)有限公司 Display method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064735A (en) * 2011-10-24 2013-04-24 联想(北京)有限公司 Display process method, display device and electronic equipment
CN103294351A (en) * 2012-02-24 2013-09-11 联想(北京)有限公司 Display method and electronic device
CN103513972A (en) * 2012-06-25 2014-01-15 联想(北京)有限公司 Display method and electronic equipment
CN102999334A (en) * 2012-11-15 2013-03-27 广东欧珀移动通信有限公司 Android platform-based shortcut implementation method, device and terminal

Also Published As

Publication number Publication date
CN104965692A (en) 2015-10-07

Similar Documents

Publication Publication Date Title
US8868637B2 (en) Page rendering for dynamic web pages
US20100287605A1 (en) Method and apparatus of providing personalized virtual environment
US8627204B2 (en) Custom optimization of web pages
US8200626B1 (en) Mobile device file management
CN102170633A (en) Targeting application based on mobile operator
US20120062576A1 (en) Method and apparatus for rendering content
CA2870106C (en) Method, system, and apparatus for exchanging data between client devices
JP6159332B2 (en) Dynamic content feed filtering
JP2010205111A (en) System, and method for reproducing context, first terminal device, second terminal device, context obtaining device or storage device, program thereof
US9813870B2 (en) Using location-based request data for identifying beacon locations
EP3262529A1 (en) Topically aware word suggestions
JP5732173B2 (en) Method, apparatus and computer program product for displaying items on multiple floors of a multilevel map
AU2011227209A1 (en) Customizing content displayed for a user based on user preferences of another user
CN103475667A (en) Method, device and system for controlling access router
JP5675793B2 (en) Method and apparatus for classifying content
KR20120089100A (en) Method and System for Distributing Business Application and Contents for Mobile Equipment using Application Store and Wireless AP
US20140365922A1 (en) Electronic apparatus and method for providing services thereof
US8381096B2 (en) Managing list tailoring for a mobile device
CN105468416A (en) Application program clearing method and terminal
US9317623B2 (en) Dynamic webpage image
US9449154B2 (en) Method and apparatus for granting rights for content on a network service
US20130091197A1 (en) Mobile device as a local server
US8606329B2 (en) Method and apparatus for rendering web pages utilizing external rendering rules
US20140244786A1 (en) Techniques for Sharing Application States
CN104219617B (en) Service acquisition method and device

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
GR01 Patent grant