CN103973729A - Information processing method and information processing device - Google Patents

Information processing method and information processing device Download PDF

Info

Publication number
CN103973729A
CN103973729A CN201310033089.7A CN201310033089A CN103973729A CN 103973729 A CN103973729 A CN 103973729A CN 201310033089 A CN201310033089 A CN 201310033089A CN 103973729 A CN103973729 A CN 103973729A
Authority
CN
China
Prior art keywords
progress
file
download
network application
interface
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.)
Granted
Application number
CN201310033089.7A
Other languages
Chinese (zh)
Other versions
CN103973729B (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310033089.7A priority Critical patent/CN103973729B/en
Publication of CN103973729A publication Critical patent/CN103973729A/en
Application granted granted Critical
Publication of CN103973729B publication Critical patent/CN103973729B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an information processing method and an information processing device. The method is applied to an electronic device and used for enabling a network application installed in the electronic device to obtain file downloading information. The method comprises the step of receiving a progress obtaining request from the network application, wherein the progress obtaining request is used for obtaining the downloading progress of a first file; the step of reading the downloading progress of the first file; the step of generating the progress obtaining response used for feeding back the downloading progress of the first file; the step of sending the progress obtaining response to the network application. Thus, according to the information processing method and the information processing device, the network application installed in the electronic device can monitor the downloading progress of resources, and the requirement for the function of a developer in the application program designing process is met.

Description

Information processing method and information processor
Technical field
The present invention relates to field of computer technology, more specifically, the present invention relates to a kind of information processing method and information processor.
Background technology
Along with the development of computer technology and network technology, the use of diverse network application (Web App) in the electronic equipment such as notebook, panel computer (PAD), mobile phone, multimedia player, PDA(Personal Digital Assistant) is universal all the more.
Network application refers to that computer software is carried under browser support environment or uses browser supporting language and depend on the application program that network (Web) browser is played up, its popular the universal of web browser of giving the credit to a great extent.Generally speaking, network application is used HTML(Hypertext Markup Language), Cascading Style Sheet (CSS) and JavaScript language to develop.Just because of above-mentioned development environment, thus with native applications (Native App) differently, network application needn't download and install just can realize to be upgraded and safeguards, and has the cross-platform inherent attribute of support.Typical network application product for example comprises Web mailbox, Web shop, Wikis etc.
In recent years, due to the continuous growth of user individual functional requirement, on network, provide can downloaded resources kind further abundant.Meanwhile, because network application is experienced with respect to the better user of native applications, increasing user brings into use network application to replace native applications to manage the download of various resources gradually.For example, user can provide by apple (Apple) company apple application shop (Apple Store) directly searches, understands, downloads, to associated electronic device installation or from wherein unloading various application software.
But in the prior art, the diverse network application of installing in electronic equipment still cannot realize the download progress that monitors resource.Typically, in the time that user is using the Android browser (Browser) of equipping by acquiescence in the mobile phone of Android (Android) operating system to download certain file, this mobile phone can only be shown by man-machine interface the download progress of this file to user, and this browser itself cannot learn this information, by the developer who causes network application, the user when this application program of design experiences very big decline undoubtedly for this.
Therefore, need a kind of novel information processing method and information processor to solve the problems referred to above.
Summary of the invention
In order to solve the problems of the technologies described above, according to an aspect of the present invention, a kind of information processing method is provided, described method is applied to electronic equipment, and can obtain file Download Info for the network application that makes to install at described electronic equipment, described method comprises: obtain request from described network application reception progress, the request of obtaining of described progress is for obtaining the download progress of the first file; Read the download progress of described the first file; Generation progress is obtained response, and described progress is obtained response for returning to the download progress of described the first file; And send described progress to described network application and obtain response.
In addition, according to a further aspect in the invention, a kind of information processor is provided, described application of installation is in electronic equipment, and can obtain file Download Info for the network application that makes to install at described electronic equipment, described device comprises: obtain request reception unit, for obtaining request from described network application reception progress, the request of obtaining of described progress is for obtaining the download progress of the first file; Progress reading unit, for reading the download progress of described the first file; Response generation unit, obtains response for generation progress, and described progress is obtained response for returning to the download progress of described the first file; And obtain response transmitting element, obtain response for sending described progress to described network application.
Compared with prior art, adopt according to information processing method of the present invention and information processor, can read according to the request of obtaining from the progress of network application the download progress of described the first file, the progress generating for returning to described the first file download progress is obtained response, and finally sends described progress to described network application and obtain response.Therefore, in the present invention, can make the network application of installing in electronic equipment can monitor the download progress of resource, meet the functional requirement of developer in the time of design application.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, or understand by implementing the present invention.Object of the present invention and other advantages can be realized and be obtained by specifically noted structure in specification, claims and accompanying drawing.
Brief description of the drawings
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, for explaining the present invention, is not construed as limiting the invention together with embodiments of the present invention.In the accompanying drawings:
Fig. 1 illustrates according to information processing method of the present invention.
Fig. 2 illustrates according to information processor of the present invention.
Fig. 3 illustrates the information processing method according to the embodiment of the present invention.
Fig. 4 illustrates the information processor according to the embodiment of the present invention.
Fig. 5 illustrates the framework for Network application and development according to the embodiment of the present invention.
Fig. 6 illustrate according to the embodiment of the present invention, at the detailed step of the information processing method of realizing for the framework of Network application and development.
Fig. 7 illustrates according to the examples of program code of the first interface of the embodiment of the present invention.
Fig. 8 illustrates according to the examples of program code of the 3rd interface of the embodiment of the present invention.
Embodiment
Describe in detail with reference to the accompanying drawings according to each embodiment of the present invention.Here, it should be noted that in the accompanying drawings, identical Reference numeral is given and substantially had part identical or similar structures and function, and will omit being repeated in this description about them.
Hereinafter, describe according to information processing method of the present invention and information processor with reference to Fig. 1 and Fig. 2.
Fig. 1 illustrates according to information processing method of the present invention, and Fig. 2 illustrates according to information processor of the present invention.
Information processing method shown in Fig. 1 is applied to electronic equipment, and can obtain file Download Info for the network application that makes to install at described electronic equipment.This information processing method is realized by the information processor shown in Fig. 2.Particularly, described information processor 100 comprises: obtain request reception unit 110, progress reading unit 120, response generation unit 130 and obtain response transmitting element 140.
As shown in Figure 1, described information processing method comprises:
In step S110, obtain request from described network application reception progress, the request of obtaining of described progress is for obtaining the download progress of the first file.
Here, this receiving step can complete by obtaining request reception unit 110.
In step S120, read the download progress of described the first file.
Here, this read step can be completed by progress reading unit 120.
In step S130, generation progress is obtained response, and described progress is obtained response for returning to the download progress of described the first file.
Here, this generation step can be completed by response generation unit 130.
In step S140, send described progress to described network application and obtain response.
Here, this forwarding step can complete by obtaining response transmitting element 140.
As can be seen here, adopt according to information processing method of the present invention and information processor, can read according to the request of obtaining from the progress of network application the download progress of described the first file, the progress generating for returning to described the first file download progress is obtained response, and finally sends described progress to described network application and obtain response.Therefore, in the present invention, can make the network application of installing in electronic equipment can monitor the download progress of resource, meet the functional requirement of developer in the time of design application.
Hereinafter, describe according to the information processing method of the embodiment of the present invention and information processor with reference to Fig. 3 and Fig. 4.
Fig. 3 illustrates the information processing method according to the embodiment of the present invention, and Fig. 4 illustrates the information processor 100 according to the embodiment of the present invention.
The illustrated information processing method of Fig. 3 can be realized by the illustrated information processor 100 of Fig. 4.As illustrated in Fig. 4, with the same ground in Fig. 2, this information processor 100 comprises: obtain request reception unit 110, progress reading unit 120, response generation unit 130 and obtain response transmitting element 140.In addition, preferably, this information processor 100 can also comprise: first interface generation unit 115, the 3rd interface generation unit 145, download request receiving element 150, file download unit 160, progress computing unit 170 and/or progress record unit 180.
This information processor 100 can be applied to one or more electronic equipments, and at least one operating system is installed in described electronic equipment, and in this operating system, at least one network application is installed.This information processor 100 makes the network application of installing in described electronic equipment can obtain file Download Info, and described file down operation can be initiated by this network application, also can be initiated by other network applications.
In the first example, this electronic equipment can be mobile phone, Android (Android) operating system of company of Google (Google) can be installed in this mobile phone, and this network application can be the network application of installing in Android operating system, for example Android browser (Android Browser).
In the second example, this electronic equipment can be personal computer, form (Windows) operating system of company of Microsoft (Microsoft) can be installed in this personal computer, and this network application can be the network application of installing in Windows operating system, for example 360 safety desktops.
In the 3rd example, this electronic equipment can be panel computer, the iOS operating system of apple (Apple) company can be installed in this panel computer, and this network application can be the network application of installing in iOS operating system, for example apple application shop (Apple Store).
In addition, this information processor 100 can communicate by any mode and this electronic equipment.
In one example, this information processor 100 can be used as a software module and/or hardware unit and is integrated in this electronic equipment, and in other words, this electronic equipment can comprise this information processor 100.For example, in the time that electronic equipment is mobile phone, a software module in the operating system that this information processor 100 can be this mobile phone, or can be aimed at the application program that this mobile phone is developed; Certainly, this information processor 100 can be one of numerous hardware units of this mobile phone equally.
Alternatively, in another example, this information processor 100 can be also the equipment separating with this electronic equipment, and this information processor 100 can be connected to this electronic equipment by wired and/or wireless network, and carrys out control information transmission according to the data format of agreement.
In addition, this information processor 100 has the defined Network application and development framework of W3C.This Network application and development architecture definition for example, for based on webpage development technology (, HTML or HTML5, CSS3, JavaScript) and service end technology is (for example, JAVA, PHP, ASP) carry out the framework of developing network application program, its objective is and develop a kind of application program based on Web, for issuing a complex set of content and function to vast end user.Below, by this framework being briefly described as an example of Android operating system example for Network application and development.
Fig. 5 illustrates the framework for Network application and development according to the embodiment of the present invention.
As illustrated in Fig. 5, Network application and development framework comprises four layers, is respectively from top to bottom operating system (OS) layer, browser kernel layer, HTML developer's layer and user's layer.
Operating system layer is supervisory computer hardware resource, control other programs operations and provide the set of the systems soft ware at interactive operation interface for user, it is the key components of electronic equipment, is in charge of the basic tasks such as order of priority, control inputs and output equipment, operational network and managing file system with allocate memory, decision systems resource supply and demand.In this example, this operating system layer can be Android operating system, and it for example can at least comprise download manager (Download Manager) function and download viewer (Download Observer) function etc.
Browser kernel layer is a kind of browser engine (or being referred to as webpage mechanism for resolving), is responsible for the explanation (as HTML, JavaScript) to webpage grammer and plays up Webpage.In this example, this browser kernel layer can at least comprise WebKit assembly and WebView assembly, and wherein, WebKit assembly is the nucleus module of browser, and it can be called as renderer, and generally includes WebCore typesetting engine and JSCore engine; And WebView assembly is the layer for encapsulating WebKit assembly.
HTML developer's layer is for the exploitation service of software interface is provided to the developer of network application, its institute towards to liking the developer of network application.For example, developer can for example, carry out the software interface of developing network application program based on various webpage development technology (, HTML or HTML5, CSS3, JavaScript) in this layer, to ensure that network application carries out with end user with open arms alternately.
User's layer is for to using the end user of network application to issue this network application achieved various contents and function, its institute towards to liking the user of network application.
In addition, this operating system layer and this browser kernel layer can also be referred to as execution environment or the running environment (EE) of network application.
Below, to in following scene, specifically describe embodiments of the invention, wherein this electronic equipment is the mobile phone that uses Android operating system, this network application is the Android browser of default installation in mobile phone, and this information processing method is applied to and makes this Android browser can obtain file Download Info.
But, it should be noted that, the invention is not restricted to this.This electronic equipment can be the electronic equipment of any type, and it includes but not limited to: notebook, panel computer, mobile phone, multimedia player, personal digital assistant etc.This operating system can be also the operating system of any type, and it includes but not limited to: Android, Windows, iOS, Linux, form phone (WP) etc.In like manner, except the browser of default installation in the operating system platform of electronic equipment, this network application can be also the network application of other any types.In addition, can also make the network application of installing in an electronic equipment can obtain the progress msg of the file download of being initiated by other network applications of this network application or native applications by being applied to according to the information processing method of the embodiment of the present invention.
As illustrated in Fig. 3, comprise according to the information processing method of the embodiment of the present invention:
In step S210, download the first file according to file download request.
For example, when user wants with the electronic equipment for oneself (to download a certain resource from network, use the mobile phone of Android operating system) while carrying out personalized customization, first he/her can start preassembled network application therein (for example, Android browser) in this electronic equipment.Then, this user can, according to self-demand, select oneself to wish the various network resources using by browse network.For example, this user can directly open the Internet resources downloading page that certain content server provides in the network application having started.Next, this user can select to have the resource file (for example, the first file) of own required function in the downloading page of Internet resources, and clicks corresponding download link.
After the resource downloading order receiving from user, this network application is to information processor 100 Transmit message download requests, in this file download request, include the download link of respective resources file, to make this information processor 100 to initiate the down operation for user-selected resource file according to this download link.
Correspondingly, in order to realize above-mentioned down operation, in information processor 100, download request receiving element 150 receives this file download request from this network application, then, file download unit 160(for example, download manager) download described the first file according to described file download request.
Particularly, this file download unit 160 receives the file download request from this network application from download request receiving element 150, according to this file download request of the format analysis of making an appointment, from wherein extracting the download link of resources to be downloaded file, and visit content server according to this download link, so that the resource file that download user is selected from content server.
In step S220, the download progress of record the first file.
After this file download unit 160 starts downloaded resources file from content server, progress computing unit 170 calculates the download progress of described the first file, and notice progress record unit 180 records the download progress of described the first file in the first database.
Particularly, at this file download unit 160 from content server before formal downloaded resources file, total size that this file download unit 160 can be first obtains this resource file from content server (for example, here suppose that this resource file is 256 kilobytes (KB)), and this total size is sent to this progress computing unit 170.
Then, this file download unit 160 starts downloaded resources file.For example, this file download unit 160 can be downloaded this resource file as a basic block using 256KB from content server, this file download unit 160 can be termly be notified the size of downloading part of described the first file to this progress computing unit 170 simultaneously, or also can often successfully download to that a basic block just notifies described the first file to this progress computing unit 170 download size partly.
Correspondingly, this progress computing unit 170 calculates the download progress of described the first file according to size shared ratio in total size of described the first file of downloading part of described the first file.And, this progress computing unit 170 is also for this download progress is further sent to progress record unit 180, so that this progress record unit 180 records the download progress of described the first file in the storage devices such as tables of data, database or a data file.
Like this, this information processor 100 is with regard to generation and the record of the download progress of first file that is successfully over.
In step S230, obtain request from network application reception progress.
Next, in the time that network application is wanted to obtain file Download Info to utilizes this information to complete some specific operation, this network application can generate a progress and obtain request, described progress is obtained and is asked for obtaining the download progress of the first file, and the request of obtaining of this progress is sent to information processor 100.
In this information processor 100, obtain request reception unit 110 and obtain request from described network application reception progress, to obtain the download progress of the first file of being downloaded by file download unit 160.
Particularly, obtaining before request reception unit 110 obtains request from described network application reception progress, preferably, first interface generation unit 115 for example, by (generating the first form in described network application, JavaScript form) progress request function and in execution environment, register described progress request function, generate first interface, described first interface is for providing the adaptable interface from described network application to execution environment.Then, this obtains request reception unit 110 and can obtain request from described network application reception progress with first interface.
Next, this obtains request reception unit 110 and obtains request according to this progress of format analysis of making an appointment, from wherein extracting relevant information, to determine this network application and will obtain the download progress information of which or multiple resource files.For example, in this example, this obtains request reception unit 110 can determine this network application and expect to obtain the download progress of the first file.
In step S240, read the download progress of the first file.
After described network application reception progress is obtained request, this obtains request reception unit 110 and for example notifies progress reading unit 120(, downloads viewer) read the download progress of described the first file.
Particularly, described progress reading unit 120 use the second interfaces read the download progress of described the first file from described the first database, and described the second interface is for providing the adaptable interface from execution environment to described the first database.In one example, this second interface can be the system function of Android operating system for access hardware storage device.
Then, for example, this progress reading unit 120 can read the download progress of described the first file in real time from the first database; Or can, obtaining when request whenever obtaining request reception unit 110 from described network application reception progress, from the first database, read the download progress of described the first file; Or also can, in the time that progress record unit 180 has upgraded the download progress of described the first file in the first database, carry out above-mentioned read operation etc.
In step S250, generation progress is obtained response.
After progress reading unit 120 reads out the download progress of described the first file, response generation unit 130 generation progresses are obtained response, and described progress is obtained response for returning to the download progress of described the first file.
In step S260, obtain response to network application transmission progress.
Finally, obtaining response transmitting element 140 sends described progress to described network application and obtains response.
Particularly, before obtaining response transmitting element 140 carry out above-mentioned transmit operation, preferably, the 3rd interface generation unit 145 for example, by (generating the second form in described network application, Android application layer Java form) progress response function and in execution environment, register described progress response function, generate the 3rd interface, described the 3rd interface is for providing the adaptable interface from execution environment to described network application., described the 3rd interface is the contradirectional interface of described first interface.Then, this obtains response transmitting element 140 use the 3rd interface and sends described progress to described network application and obtain response.
Correspondingly, this network application receives and obtains response from the progress of this information processor 100, obtain response according to this progress of the format analysis of making an appointment, from wherein extracting the download progress information about the first file, to can utilize after a while this download progress to complete a series of operation.
In one example, according to accessed download progress, this network application can, after the first file download is complete, automatically installs or move this first file, or this first file is forwarded to a certain network address (for example, net dish) etc. automatically.
In another example, according to accessed download progress, this network application can be designed as in the time that the first file downloads to 95%, ejects prompting frame to user, or download interface is automatically switched to foremost and shown.
As can be seen here, adopt according to the information processing method of the embodiment of the present invention and information processor, can download one or more files according to the file download request from network application, record the download progress of each file, and read the download progress of one or more files to be checked according to the request of obtaining from the progress of network application, generate for returning about the progress of these download progresses and obtain response, and finally send described progress to described network application and obtain response, so that network application completes the designed various functions of developer according to download progress.Therefore, in the present invention, can make network application except native applications, that install in electronic equipment also can monitor the download progress of resource, and complete various set functions according to this download progress, for developer provides the more function of horn of plenty to realize time point when the developing application, the user who has greatly promoted them experiences.
It should be noted that, although illustrated according to information processing method of the present invention and information processor with a specific embodiment hereinbefore, the invention is not restricted to this.
Obviously, this download request receiving element 150, this file download unit 160, this progress computing unit 170 and this progress record unit 180 can be separated with the information processor according to the embodiment of the present invention, and be individually formed a file downloading device, to be specifically designed to the required resource file of download user.At this moment, will not be used further to file down operation according to the information processor of the embodiment of the present invention, but can communicate with this file downloading device, to be specifically designed to the download progress from wherein obtaining one or more files.That is to say, according to omitting step S210-S220 in the information processing method of the embodiment of the present invention.
In addition, first interface generation unit 115, the 3rd interface generation unit 145 also can be separated with the information processor according to the embodiment of the present invention, and be individually formed an interface generation apparatus, to be specifically designed to the adaptable interface generating from network application to execution environment and/or from execution environment to network application.Alternatively, this adaptable interface also can pre-define, and can directly omit like this first interface generation unit 115 and the 3rd interface generation unit 145.At this moment, will not be used further to generate adaptable interface according to the information processor of the embodiment of the present invention, but directly utilize these adaptable interfaces to travel to and fro between network application and execution environment transmission information.
In order to make principle of the present invention clear understandable, will in an example of Network application and development framework, the information processing method according to the embodiment of the present invention be described in further detail below.
Fig. 6 illustrate according to the embodiment of the present invention, at the detailed step of the information processing method of realizing for the framework of Network application and development.
With reference to figure 6, this framework that is used for Network application and development for example uses Android operating system, and it comprises from top to bottom successively: network application (it is corresponding to the HTML developer's layer in Fig. 5), WebView assembly and WebKit assembly (it is corresponding to the browser kernel layer in Fig. 5), download manager (Download Manager) and download viewer (Download Observer) (it is corresponding to the operating system layer in Fig. 5) and the first database as hardware storage apparatus.
As described in background technology, in the prior art, Android system realizes the download of data file with DownloadManager function, but the download of this data file completes the only native applications in execution environment layer and just can monitor, and network application in JavaScript layer cannot be monitored.For this reason, the present invention proposes to come to the download progress of the user notification file of network application by new event.
Particularly, as illustrated in Fig. 6, step S211-S213(its corresponding to the step S210 in Fig. 3) in, network application in JavaScript layer is via the predefined function between JavaScript layer and EE, notify the Download Manager function in Android operating system (Android layer) to download some or multiple data files (for example, the first file) by WebView assembly and WebKit assembly.
Step S221(its corresponding to the step S220 in Fig. 3) in, basic block of the every download of Download Manager function in Android operating system just calculates the download progress of a current data file, and by means of hardware access function, by the database language such as SQL (SQL), this download progress is written in the first database.
Step S231(its corresponding to the step S230 in Fig. 3) in, the network application in JavaScript layer initiates download progress inquiry request to execution environment layer by first interface.In practice, above-mentioned first interface can be realized with computer program code by specific function.
Fig. 7 illustrates according to the examples of program code of the first interface of the embodiment of the present invention.
With reference to figure 7, in Android layer, use webview.addJavaScriptInterface () to carry out registration function lenovoee.postmsg (string), user can be visited by window.lenovoee.postmsg () in network application layer.So just realize the message transmission from JavaScript layer to Android layer.
Depend on the parameter that this function is entrained, the network application in JavaScript layer can ask to read the download progress of one or more files to be checked.
For example, when the parameter entrained when this function is " query_last_installed_zip ", the download progress of the data file of nearest download is read in this network application request; And in the time that the entrained parameter of this function is " query_all_installed_zip ", the download progress of the data file of all downloads is read in this network application request.
Step S241-S242(its corresponding to the step S240 in Fig. 3) in, in Android layer, because WebView assembly adopts Android application layer Java form, and Download Manager function also uses Java form, so can carry out Java direct communication between the two, to make this Download Manager function by means of the hardware access function in Android operating system, from this first database, read out the download progress of this network application one or more files to be checked.
Step S251(its corresponding to the step S250 in Fig. 3) in, in Android layer, this Download Manager function can transmit above-mentioned download progress by Java direct communication to this WebView assembly again.
Step S261(its corresponding to the step S260 in Fig. 3) in, execution environment layer transmits the download progress of one or more files to be checked to the network application in JavaScript layer by the 3rd interface.With first interface similarly, in practice, the 3rd above-mentioned interface can be realized with computer program code by specific function.
Fig. 8 illustrates according to the examples of program code of the 3rd interface of the embodiment of the present invention.
With reference to figure 8, at network application layer, can use JavaScript exploitation function lenovoee_postmsg (string), and at android layer, can be by webview.loadUrl (" JavaScript:lenovoee_postmsg ("+data+ ") ") call this function.So just realize the message transmission from Android layer to JavaScript layer.
Depend on the parameter that this function is entrained, Android layer can return to the network application in JavaScript layer the download progress of one or more files.
For example, when the parameter entrained when this function is " last_installed_zip ", this network application can be known the download progress of the data file of nearest download; And in the time that the entrained parameter of this function is " all_installed_zip ", this network application can be known the download progress of the data file of all downloads, wherein branch is as the identifier of cutting apart compressed package title (zip name).
In another example, according to above-mentioned principle of the present invention, can also provide a new event " downloadfinish(has downloaded) " at JavaScript layer, complete so that informing network is applied the download of certain data file.Particularly, event can be with following parameter:
Url: indicate the hyperlink of download file;
Title: the title that indicates download file; And/or
Result: indicate this file and download success or failed download etc.
Therefore, in this example, can make network application except Android operating system native applications, that install in electronic equipment also can easily monitor the download progress of resource.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential hardware platform by means of software and realize, and can certainly all implement by software or hardware.Based on such understanding, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, disk, CD etc., comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) carry out the method described in some part of each embodiment of the present invention or embodiment.
Describe each embodiment of the present invention in the above in detail.But, it should be appreciated by those skilled in the art that without departing from the principles and spirit of the present invention, can carry out various amendments to these embodiment, combination or sub-portfolio, and such amendment should fall within the scope of the present invention.

Claims (18)

1. an information processing method, described method is applied to electronic equipment, and can obtain file Download Info for the network application that makes to install at described electronic equipment, it is characterized in that, and described method comprises:
Obtain request from described network application reception progress, the request of obtaining of described progress is for obtaining the download progress of the first file;
Read the download progress of described the first file;
Generation progress is obtained response, and described progress is obtained response for returning to the download progress of described the first file; And
Send described progress to described network application and obtain response.
2. according to the method for claim 1, it is characterized in that, the described step of obtaining request from described network application reception progress comprises:
Obtain request from described network application reception progress with first interface, described first interface is for providing the adaptable interface from described network application to execution environment.
3. according to the method for claim 2, it is characterized in that, described method also comprises:
By generating the progress request function of the first form and register described progress request function in described network application in execution environment, generate described first interface.
4. according to the method for claim 3, it is characterized in that, described electronic equipment is the electronic equipment that uses Android operating system, and described execution environment comprises WebView assembly and WebKit assembly, and described the first form is JavaScript.
5. according to the method for claim 1, it is characterized in that, described method also comprises:
Receive file download request;
Download described the first file according to described file download request;
Calculate the download progress of described the first file according to total size of the size of downloading part of described the first file and described the first file; And
In the first database, record the download progress of described the first file.
6. according to the method for claim 5, it is characterized in that, described in read the download progress of described the first file step comprise:
From described the first database, read the download progress of described the first file with the second interface, described the second interface is for providing the adaptable interface from execution environment to described the first database.
7. according to the method for claim 1, it is characterized in that, describedly send described progress to described network application and obtain the step of response and comprise:
Send described progress with the 3rd interface to described network application and obtain response, described the 3rd interface is for providing the adaptable interface from execution environment to described network application.
8. according to the method for claim 7, it is characterized in that, described method also comprises:
By generating the progress response function of the second form and register described progress response function in described network application in execution environment, generate described the 3rd interface.
9. method according to Claim 8, is characterized in that, described electronic equipment is the electronic equipment that uses Android operating system, and described execution environment comprises WebView assembly and WebKit assembly, and described the second form is Android application layer Java.
10. an information processor, described application of installation is in electronic equipment, and can obtain file Download Info for the network application that makes to install at described electronic equipment, it is characterized in that, and described device comprises:
Obtain request reception unit, for obtaining request from described network application reception progress, the request of obtaining of described progress is for obtaining the download progress of the first file;
Progress reading unit, for reading the download progress of described the first file;
Response generation unit, obtains response for generation progress, and described progress is obtained response for returning to the download progress of described the first file; And
Obtain response transmitting element, obtain response for sending described progress to described network application.
11. according to the device of claim 10, it is characterized in that, described in obtain request reception unit first interface and obtain request from described network application reception progress, described first interface is for providing the adaptable interface from described network application to execution environment.
12. according to the device of claim 11, it is characterized in that, described device also comprises:
First interface generation unit, for by generating the progress request function of the first form in described network application and register described progress request function in execution environment, generates described first interface.
13. according to the device of claim 12, it is characterized in that, described electronic equipment is the electronic equipment that uses Android operating system, and described execution environment comprises WebView assembly and WebKit assembly, and described the first form is JavaScript.
14. according to the device of claim 10, it is characterized in that, described device also comprises:
Download request receiving element, for receiving file download request;
File download unit, for downloading described the first file according to described file download request;
Progress computing unit, for calculating the download progress of described the first file according to total size of the size of downloading part of described the first file and described the first file; And
Progress record unit, for recording the download progress of described the first file at the first database.
15. according to the device of claim 14, it is characterized in that, described progress reading unit reads the download progress of described the first file from described the first database with the second interface, described the second interface is for providing the adaptable interface from execution environment to described the first database.
16. according to the device of claim 10, it is characterized in that, the described response transmitting element that obtains sends described progress with the 3rd interface to described network application and obtains response, and described the 3rd interface is used for providing the adaptable interface from execution environment to described network application.
17. according to the device of claim 16, it is characterized in that, described device also comprises:
The 3rd interface generation unit, for by generating the progress response function of the second form in described network application and register described progress response function in execution environment, generates described the 3rd interface.
18. according to the device of claim 17, it is characterized in that, described electronic equipment is the electronic equipment that uses Android operating system, and described execution environment comprises WebView assembly and WebKit assembly, and described the second form is Android application layer Java.
CN201310033089.7A 2013-01-28 2013-01-28 Information processing method and information processing unit Active CN103973729B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310033089.7A CN103973729B (en) 2013-01-28 2013-01-28 Information processing method and information processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310033089.7A CN103973729B (en) 2013-01-28 2013-01-28 Information processing method and information processing unit

Publications (2)

Publication Number Publication Date
CN103973729A true CN103973729A (en) 2014-08-06
CN103973729B CN103973729B (en) 2018-07-03

Family

ID=51242773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310033089.7A Active CN103973729B (en) 2013-01-28 2013-01-28 Information processing method and information processing unit

Country Status (1)

Country Link
CN (1) CN103973729B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017120869A1 (en) * 2016-01-14 2017-07-20 赵政荣 Method of remotely operating software installation, and software installation system
CN107193565A (en) * 2017-05-22 2017-09-22 北京思序软件有限公司 Across the mobile terminal primary APP of exploitation method
CN108037914A (en) * 2017-12-26 2018-05-15 福建中金在线信息科技有限公司 A kind of method and device of Android primary system combination js exploitations
CN108614886A (en) * 2018-05-03 2018-10-02 北京搜狐互联网信息服务有限公司 A kind of generation method and device of subject of Web site
CN109558186A (en) * 2017-09-27 2019-04-02 阿里巴巴集团控股有限公司 A kind of page display method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102426579A (en) * 2011-08-25 2012-04-25 中兴通讯股份有限公司 Web mode-based method for importing/exporting file
CN102685729A (en) * 2011-02-14 2012-09-19 微软公司 Background transfer service for applications on mobile devices

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685729A (en) * 2011-02-14 2012-09-19 微软公司 Background transfer service for applications on mobile devices
CN102426579A (en) * 2011-08-25 2012-04-25 中兴通讯股份有限公司 Web mode-based method for importing/exporting file

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017120869A1 (en) * 2016-01-14 2017-07-20 赵政荣 Method of remotely operating software installation, and software installation system
CN107193565A (en) * 2017-05-22 2017-09-22 北京思序软件有限公司 Across the mobile terminal primary APP of exploitation method
CN107193565B (en) * 2017-05-22 2021-02-26 北京思序软件有限公司 Method for developing native APP (application) across mobile terminals
CN109558186A (en) * 2017-09-27 2019-04-02 阿里巴巴集团控股有限公司 A kind of page display method and device
CN109558186B (en) * 2017-09-27 2022-06-28 阿里巴巴集团控股有限公司 Page display method and device
CN108037914A (en) * 2017-12-26 2018-05-15 福建中金在线信息科技有限公司 A kind of method and device of Android primary system combination js exploitations
CN108614886A (en) * 2018-05-03 2018-10-02 北京搜狐互联网信息服务有限公司 A kind of generation method and device of subject of Web site
CN108614886B (en) * 2018-05-03 2021-10-15 北京云站科技有限公司 Website theme generation method and device

Also Published As

Publication number Publication date
CN103973729B (en) 2018-07-03

Similar Documents

Publication Publication Date Title
US10924574B2 (en) Systems and methods for managing loading priority or sequencing of fragments of a web object
US11233841B2 (en) Systems and methods for configuration-based optimization by an intermediary
KR102132137B1 (en) Custom optimization of web pages
EP2916243B1 (en) Method, apparatus, server and system for implementing web application
CN104106048B (en) The resource for having installed application is updated using cache is applied
TWI703463B (en) Information display method, device and intelligent terminal
US9946526B2 (en) Development and hosting for platform independent applications
US9081757B2 (en) Systems and methods for tracking and updating hosted applications
US20140282371A1 (en) Systems and methods for creating or updating an application using a pre-existing application
WO2014036142A2 (en) Systems and methods for tracking and updating hosted applications
US20140236756A1 (en) Systems and methods for integrated recommendations
US11341589B2 (en) Method and system for providing a cooperative working environment that facilitates management of property
CN107656768B (en) Method and system for controlling page jump
US9749440B2 (en) Systems and methods for hosted application marketplaces
JP2015501478A (en) System and method for displaying advertisements within an ad unit
CN103973729A (en) Information processing method and information processing device
US9158520B2 (en) Development of platform independent applications
US20170192941A1 (en) Computer-Automated Generation of Application Deep Links
CN106997298A (en) A kind of application resource acquisition methods and device
US10986202B2 (en) Systems and methods for managing loading of services from at least one server
KR20120101841A (en) Method and apparatus for linking application and browser
WO2012148867A1 (en) Web-based app builder for mobile devices with automatic updates
EP3785119B1 (en) System and method for governing client-side services
US20130132459A1 (en) Information-sharing computer system and corresponding method
Desruelle CMS-driven development of adaptive mobile web applications using progressive enhancement techniques

Legal Events

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