CN101924798B - Transparent Android component loading method and system based on file types - Google Patents
Transparent Android component loading method and system based on file types Download PDFInfo
- Publication number
- CN101924798B CN101924798B CN2010102749543A CN201010274954A CN101924798B CN 101924798 B CN101924798 B CN 101924798B CN 2010102749543 A CN2010102749543 A CN 2010102749543A CN 201010274954 A CN201010274954 A CN 201010274954A CN 101924798 B CN101924798 B CN 101924798B
- Authority
- CN
- China
- Prior art keywords
- file
- module
- request
- component
- type
- 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.)
- Active
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a transparent Android component loading method based on file types, belonging to the field of mobile computing. The method disclosed in the invention mainly comprises the following steps of: A, uploading components to a component library via a component feeding tool; B, setting the address and the port of a server of the component library by a mobile phone client; C, after receiving a request for opening a file in a certain type by a mobile phone user or a cell phone application, obtaining component information supporting the file in the type from a component request server by the mobile phone client; D, handing over the received component information to the user for selection, obtaining the component from the component request server and mounting the component after the component information is determined by the user by the mobile client; and E, informing a file type analyzing module for re-analysis after the mounting is finished and finally calling the newly mounted component to open the file. The invention relives users from the complex processes of searching for application names for supporting a certain type, downloading and applying and mounting the application, and effectively improves the user experience.
Description
Technical field
The invention provides a kind of on Android operating system a kind of method based on file type transparent loading member; Specifically be exactly that the file type of operating is as required searched the member of supporting the type at this machine and component base; If this locality does not have then from the component base dynamic load, belongs to the mobile computing field.
Background technology
Android operating system is Google company in the title based on the mobile phone operating system of increasing income of Linux platform of issue on November 5th, 2007; This platform is made up of operating system, middleware, user interface and application software, and being known as is first real opening of making for portable terminal and complete mobile software.
Have relatively independent function in software component (software component) software systems, can clear and definite identification, interface specified, with linguistic context obvious dependence is arranged by stipulations, can independently dispose, but and the composite software entity that how provides by the third party.Software component must carry the function of usefulness, and follows certain component model.Reusable component is meant to have the member that reusable is worth.
The user of current use Android operating system is when other application program need be opened certain type file on file browser on the mobile phone or the mobile phone; If do not support such file format on this mobile phone; Then the user must confirm to support the software of the type, ability normal browsing this document manually is installed then, in this course; Need online repeatedly to search; And the installation that need manually use, open the request that this document could respond the user after the completion once more, influence user's experience.
Summary of the invention
In this article; Member refers to and uses componentization instrument that we realize that the APK file that can move on the Android operating system is carried out the software kit after the componentization; Comprise in the member after the componentization original APK file, application name, applied version number, use the type of supporting that opens file, the description of application etc.; The component library management personnel are responsible for executable application program in the Android operating system is carried out componentization, and are uploaded to user's component base.
The objective of the invention is to provides a kind of method based on file type transparent loading member for Android operating system; Make the user when opening certain type file; Needn't remove to be concerned about the local software of support of whether having installed,, then necessarily can open as long as have in the component base.
System of the present invention is made up of client, member request server and component base server; Client is arranged in the PackageManagerService (program build-in services) of Framework layer, has comprised that server is provided with module, file type analyzing module, file acquisition module, member installed module and desktop refresh module.The member request server is positioned on the PC, comprises monitoring module, element type processing module and document transmission module; The component base server is responsible for generation, storage, the also request of responsible response member request server of member.When cellphone subscriber or application program of mobile phone need be opened certain type file; Through calling ActivityManager requirement start-up parameter is the Intent of file type, file path; At first can support the member of this document type in the start-up course through the inquiry of the file type analyzing module among the PackageManagerService; If find, then use this member to open file; Otherwise send the request of include file type to the member request server; After the member request server receives request, component invoking type of process module, this module is inquired about according to type from component base; If can find, then call document transmission module with this component back client; After the file type analyzing module of client received this member, the component invoking installed module was installed, and called file type analyzing module again, and just can open file this moment.
The flow chart of the present invention's correspondence is as shown in Figure 1, and the detailed technology scheme is following:
A. component base server receiving member is uploaded, and the built-in program of component base can be packaged as self-defining member form with application in the upload procedure;
1. the component library management personnel use the web interface tool that component base carries or use in batches that uploading tools is uploaded to component base with the APK file that the user may use.The user only need upload the APK file; The built-in program of component base can extract the name, applied version number of application, the description of using etc. from the APK file; Be packaged as self-defining member form with the APK file, finally upload in the database of component base;
2. the component library management personnel also can use the information of member in the web interface tool inquiry component storehouse that component base carries;
B. the server of mobile phone end is provided with module when not connecting the member request server, can show not connect the not warning of upper member request server, and click can be provided with member request server address and port;
C. cell-phone customer terminal receives after cellphone subscriber or application program of mobile phone open certain type the request of file, connects the request of obtaining the component information of supporting the type file from the member request server through socket;
1. the file type analyzing module of client is searched in this locality whether the file of supporting the type is installed, if find, then directly opening file gets final product;
2. if do not find, the request that file type analyzing module is sent the include file type to the member request server, specific as follows:
I. this module is at first obtained mobile phone operating system information (version number of And roid operating system) and user label name;
Ii. this module is set up one with long-distance structural components request server end and is connected, and the sign that will comprise above-mentioned information, the file type that will open and this request is encapsulated as a bag, sends to the member request server;
Iii. next this module waits for the response of long-distance structural components request server;
3. after the monitoring module of member request server receives the request of client-requested support particular type member, create
Response thread component invoking type of process module, the concrete processing as follows:
1. after this module receives the request of certain cell-phone customer terminal, create a thread and handle this request, this module continues to wait for that receiving the next one asks this thread dispatching element type processing module after the work of completion establishment thread;
2. the element type processing module extracts ID and carries out authentication from the bag of receiving, and records in the system journal;
3. build list table processing module version number that from the bag of receiving, extracts Android operating system and the file type that will open is as parameter; Inquiry is fit to all component information of this version number and file type from component base; Each member that retrieves identifies the UUID taking-up with the name of member, the version number and the member of member in component base; The number of components that finds adds that all information forms a bag, if do not inquire then send 0 (not having);
4. the information in the above-mentioned bag is sent it back cell-phone customer terminal;
D. cell-phone customer terminal is selected by the user according to the component information that can open the type file that receives, and confirms that the back obtains member and installation from the member request server;
1. after the file type analyzing module of mobile phone end obtains bag that the member request server beams back, if the first character of this bag is 0, the failure that then opens file, otherwise operate:
If i. have more than a qualified member, then pop-up window is selected by the user;
Ii. after the user selects, call the file acquisition module, the UUID and the request mark of ID, selected member sent to the member request server;
2. continue to wait for the response of member request server with the file acquisition module;
3. after the monitoring module of member request server receives the request of client-requested member, create response thread dispatching document transmission module, the concrete processing as follows:
I. after this module receives the request of certain cell-phone customer terminal, create a thread and handle this request, this module continues to wait for that receiving the next one asks this thread dispatching document transmission module after the work of completion establishment thread;
Ii. document transmission module extracts ID and carries out authentication from the bag of receiving, and records in the system journal;
Iii. document transmission module obtains the member file according to the member UUID in the bag that receives from component base;
Iv. this member file is sent it back cell-phone customer terminal;
4. after the file acquisition module of mobile phone end obtains bag that the member request server beams back, this member is stored in the local cache, and the component invoking installed module carries out member and installs:
I. the file acquisition module bag that will receive is stored in the temporary file catalogue on the mobile phone SD card;
Ii. send the installation application request to the PackageManager of Android operating system service;
The iii.PackageManager service is called the desktop refresh module after installing and finishing;
5. the desktop refresh module is upgraded member state in the build list table, refreshes desktop icons;
E. resolve again in that the Inform when done file type analyzing module is installed, and the member that finally calls new installation opens file.
Of the present inventionly comprise that is also realized a system for carrying out said process, as shown in Figure 2.This system is made up of client, member request server and component base server; Client is arranged in the PackageManagerService (program build-in services) of Framework layer, has comprised that server is provided with module, file type analyzing module, file acquisition module, member installed module and desktop refresh module.The main file type of resolving user's select File of accomplishing is communicated by letter with member request server end, and is obtained file.The member request server is positioned on the PC, comprises monitoring module, element type processing module and document transmission module; Be responsible for response from the request of client and according to request and component base server communication, send file and give client.The component base server is responsible for generation, storage, the also request of responsible response member request server of member.
-server is provided with module: the IP and the port that are used to be provided with the member request server;
-file type analyzing module: be responsible for whether supporting the file of the type,, send request to the member request server if do not support at local search;
-file acquisition module:, obtain required member file from server according to user's request;
-member installed module: be used for installing the member of downloading after accomplishing;
-desktop refresh module: after the installation, refresh the program listing and other information that is associated of mobile phone desktop;
-monitor module: be mainly used in and receive the client sent request;
-element type processing module: from the member of component base server lookup support the type,, then assemble this component information, beam back client if support this document type;
-document transmission module:, beam back the file of being asked to client according to the request of receiving;
-component base server: be responsible for accepting the user and upload member, the inquiry of Web interface tool is provided, and the request of respective members request server.
Description of drawings
Fig. 1: method flow diagram of the present invention
Fig. 2: system construction drawing of the present invention
Embodiment
Through instance the present invention is done further explanation below; But it should be noted that; The purpose of publicizing and implementing example is to help further to understand the present invention; But it will be appreciated by those skilled in the art that: in the spirit and scope that do not break away from the present invention and appended claim, various replacements and to revise all be possible.Therefore, the present invention should not be limited to the disclosed content of embodiment, and the scope that the present invention requires to protect is as the criterion with the scope that claims define.
Following execution mode uses HTC G2, and the Android operating system version is 1.6.
A. according to the data type dynamic load member of visiting (the pdf file of opening in the Email attachment with the user is an example, use in the component base to have the member of supporting the type file, but cell-phone customer terminal does not have installation)
1. upload this application to component base;
2. the user opens mail (this mail comprises a pdf annex, and mobile phone was not installed the application program of supporting pdf in the past) through Mail Clients;
3. after the user clicks this annex, the startActivity method be can call, file type (minetype) and file path are provided with in this method;
Resolve this document type 4.startActivity call PackageManager according to file type when resolving in the meeting calling system, because the application of supporting pdf is not installed by system, therefore meeting failure in this process;
5. send request to the member request server this moment: gettp:pdf;
6. the member request server is inquired about the member of supporting the pdf form in component base, finds the PDF reader member of supporting Android operating system, and sends it back client;
7. just it is stored in this locality after receiving the member that the member request server is sent to, and calls PackageManager (during do not need user interactive) is installed automatically;
8. use new program of installing to open this pdf file after accomplishing.
Claims (4)
1. the Android member transparent loading method based on file type is characterized in that, may further comprise the steps:
A) component base server receiving member is uploaded, and the built-in program of component base can be packaged as self-defining member form with application in the upload procedure;
B) server of cell-phone customer terminal is provided with module when not connecting the member request server, can show not connect the not warning of upper member request server, and click can be provided with member request server address and port;
C) cell-phone customer terminal receives after cellphone subscriber or application program of mobile phone open certain type the request of file, connects from member request server end through socket and obtains the component information of supporting the type file, and concrete implementation method is:
C1. the file type analyzing module of cell-phone customer terminal is searched in this locality whether the file of supporting the type is installed, if find, then directly opens file;
If c2. do not find, the request that file type analyzing module is sent the include file type to the member request server, specific as follows:
I. at first obtain mobile phone operating system information and user label name;
Ii. this document type parsing module is set up a socket with long-distance structural components request server end and is connected, and will comprise the sign that above-mentioned information adds this request and be encapsulated as a bag, sends to member request server end;
Iii. next this document type parsing module waits for the response of long-distance structural components request server end;
C3. after the monitoring module of member request server receives the request of cell-phone customer terminal request support particular type member, create response thread component invoking type of process module, the concrete processing as follows:
I. after receiving the request of certain cell-phone customer terminal, create a thread and handle this request, this module continues to wait for that receiving the next one asks this thread dispatching element type processing module after the work of completion establishment thread;
Ii. the build list table processing module extracts ID and carries out authentication from the bag of receiving, and records in the system journal;
Iii. build list table processing module version number that from the bag of receiving, extracts Android operating system and the file type that will open is as parameter; Inquiry is fit to all component information of this version number and file type from component base; Each member that retrieves identifies the UUID taking-up with the name of member, the version number and the member of member in component base; The number of components that finds adds that all information forms a bag, if do not inquire then send 0;
Iv. the information in the above-mentioned bag is connected through socket and send it back cell-phone customer terminal;
D) cell-phone customer terminal is transferred to the user to the component information that can open the type file that receives and is selected, and confirms that the back obtains member and installs from the member request server;
E) resolve again in that the Inform when done file type analyzing module is installed, and the member that finally calls new installation opens file.
2. the method for claim 1 is characterized in that, the concrete steps of said step a) are following:
A1. the component library management personnel use the information of member in the web interface tool instrument inquiry component storehouse that component base carries;
A2. the component library management personnel use the web interface tool that component base carries or use in batches that uploading tools is uploaded to component base with application program member APK file;
A3. the built-in program of component base can extract the name, applied version number of application, the description of using from the APK file, is packaged as self-defining member form with the APK file, is saved in the database of component base.
3. the method for claim 1 is characterized in that, the implementation method of said step d) is:
D1. after the file type analyzing module of cell-phone customer terminal obtains bag that the member request server beams back, if the first character of this bag is 0, the failure that then opens file, otherwise operate, concrete steps are following:
If i. have more than a qualified member, then pop-up window is selected by the user;
Ii. after the user selects, call the file acquisition module, the UUID and the request mark of ID, selected member sent to the member request server;
D2. continue to wait for the response of member request server with the file acquisition module;
D3. after the monitoring module of member request server receives the request of cell-phone customer terminal request member, create response thread dispatching document transmission module, the concrete processing as follows:
I. after this module receives the request of certain cell-phone customer terminal, create a thread and handle this request, this module continues to wait for that receiving the next one asks this thread dispatching document transmission module after the work of completion establishment thread;
Ii. document transmission module extracts ID and carries out authentication from the bag of receiving, and records in the system journal;
Iii. document transmission module obtains the member file according to the member UUID in the bag that receives from component base;
Iv. this member file is sent it back cell-phone customer terminal;
D4. after the file acquisition module of cell-phone customer terminal obtains bag that the member request server beams back, this member is stored in the local cache, and the component invoking installed module carries out member concrete the processing as follows is installed:
I. the file acquisition module bag that will receive is stored in the temporary file catalogue on the mobile phone SD card;
Ii. send the installation application request to the PackageManager of Android operating system service;
The iii.PackageManager service is called the desktop refresh module after installing and finishing.
4. the Android member transparent loading system based on file type is characterized in that, the implementation method of this system according to claim 1, this system comprises following module:
-server is provided with module: the IP and the port that are used to be provided with the member request server;
-file type analyzing module: be responsible for whether supporting the file of the type,, send request to the member request server if do not support at local search;
-file acquisition module:, obtain required member file from server according to user's request;
-member installed module: be used for installing the member of downloading after accomplishing;
-desktop refresh module: after the installation, refresh the program listing and other information that is associated of mobile phone desktop;
-monitor module: be mainly used in and receive the cell-phone customer terminal sent request;
-element type processing module: from the member of component base server lookup support the type,, then assemble this component information, beam back cell-phone customer terminal if support this document type;
-document transmission module:, beam back the file of being asked to cell-phone customer terminal according to the request of receiving;
-component base server: be responsible for accepting the user and upload member, the inquiry of Web interface tool is provided, and the request of respective members request server;
Relation between each module is following:
1) cell-phone customer terminal is arranged in the PackageManager service of Framework layer, has comprised that server is provided with module, file type analyzing module, file acquisition module, member installed module and desktop refresh module; The main file type of resolving user's select File of accomplishing is communicated by letter with member request server end, and is obtained file;
2) the member request server is positioned on the PC, comprises monitoring module, element type processing module and document transmission module; Be responsible for response from the request of cell-phone customer terminal and according to request and component base server communication, send file and give cell-phone customer terminal;
3) the component base server is responsible for generation, storage, the also request of responsible response member request server of member.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102749543A CN101924798B (en) | 2010-09-08 | 2010-09-08 | Transparent Android component loading method and system based on file types |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102749543A CN101924798B (en) | 2010-09-08 | 2010-09-08 | Transparent Android component loading method and system based on file types |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101924798A CN101924798A (en) | 2010-12-22 |
CN101924798B true CN101924798B (en) | 2012-11-21 |
Family
ID=43339437
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010102749543A Active CN101924798B (en) | 2010-09-08 | 2010-09-08 | Transparent Android component loading method and system based on file types |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101924798B (en) |
Families Citing this family (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102073541B (en) * | 2010-12-28 | 2015-05-20 | 中兴通讯股份有限公司 | Data access method and mobile terminal |
CN102053836B (en) * | 2010-12-31 | 2013-04-10 | 广东欧珀电子工业有限公司 | Implementation method of version management tool for Android application development |
CN102799468B (en) * | 2011-05-27 | 2016-08-03 | 腾讯科技(深圳)有限公司 | The method and apparatus opening unknown file |
CN102436350B (en) * | 2011-12-06 | 2014-11-12 | 北京航空航天大学 | Remote application window display method, server and user terminal |
CN102541733B (en) * | 2011-12-26 | 2015-10-07 | 成都三零瑞通移动通信有限公司 | Software fast scanning method under a kind of Android |
CN102682057B (en) * | 2012-01-11 | 2015-07-08 | 广东欧珀移动通信有限公司 | Management method for generative paths of data files of Android application program |
CN102541569A (en) * | 2012-01-31 | 2012-07-04 | 上海量明科技发展有限公司 | Method and system for achieving transmitting of document-corresponding program and customer side |
CN102841750B (en) * | 2012-07-18 | 2014-12-03 | 腾讯科技(深圳)有限公司 | File opening method and device |
CN102831010A (en) * | 2012-08-30 | 2012-12-19 | 腾讯科技(深圳)有限公司 | Method and device for opening unknown file |
US9727321B2 (en) | 2012-10-11 | 2017-08-08 | Netflix, Inc. | System and method for managing playback of streaming digital content |
US9565475B2 (en) | 2012-10-11 | 2017-02-07 | Netflix, Inc. | System and method for managing playback of streaming digital content |
CN103106094A (en) * | 2013-03-06 | 2013-05-15 | 广东欧珀移动通信有限公司 | File opening method and intelligent mobile terminal |
CN103401896B (en) * | 2013-07-15 | 2016-06-22 | 四川公用信息产业有限责任公司 | Method and system are shared in a kind of many Android client service |
CN103530156B (en) * | 2013-10-17 | 2016-11-16 | 北京奇虎科技有限公司 | Dynamic load and the method and device of caller |
CN104516693A (en) * | 2014-12-22 | 2015-04-15 | 宇龙计算机通信科技(深圳)有限公司 | Wireless printing method and system |
CN104715008A (en) * | 2014-12-30 | 2015-06-17 | 上海孩子国科教设备有限公司 | Method, terminal and system for achieving document sending format indicating |
CN105897830A (en) * | 2015-12-01 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | File opening tool recommending client, server, system and method |
CN107483412B (en) * | 2017-07-25 | 2020-03-06 | 中国科学院声学研究所 | HTML5web worker migration method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1564129A (en) * | 2004-04-02 | 2005-01-12 | 清华大学 | Method of packing member and consistent visit |
CN101078995A (en) * | 2007-06-08 | 2007-11-28 | 北京大学 | Method for accessing information service in component operation support platform |
CN101277304A (en) * | 2008-03-21 | 2008-10-01 | 北京航空航天大学 | Management system and management method for Web service operational environment based on rules |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AR052083A1 (en) * | 2005-01-07 | 2007-02-28 | Thomson Global Resources | SYSTEMS, METHODS AND SOFTWARE FOR DISTRIBUTED LOADING OF DATABASES |
-
2010
- 2010-09-08 CN CN2010102749543A patent/CN101924798B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1564129A (en) * | 2004-04-02 | 2005-01-12 | 清华大学 | Method of packing member and consistent visit |
CN101078995A (en) * | 2007-06-08 | 2007-11-28 | 北京大学 | Method for accessing information service in component operation support platform |
CN101277304A (en) * | 2008-03-21 | 2008-10-01 | 北京航空航天大学 | Management system and management method for Web service operational environment based on rules |
Also Published As
Publication number | Publication date |
---|---|
CN101924798A (en) | 2010-12-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101924798B (en) | Transparent Android component loading method and system based on file types | |
CN101924775B (en) | Android application component transparent loading method and system | |
US8935687B2 (en) | Incrementally updating a software appliance | |
US8924920B2 (en) | Providing a software appliance based on a role | |
US8458658B2 (en) | Methods and systems for dynamically building a software appliance | |
CN101502079B (en) | System and method for installing and configuring software applications on a mobile networked terminal | |
CA2495024C (en) | System and method for adaptable provisioning of generic application content | |
US7032011B2 (en) | Server based extraction, transfer, storage and processing of remote settings, files and data | |
CN102571940B (en) | Application program remote installation system, method, intelligent terminal, application server | |
CN100419684C (en) | Method for setting up short-cut of programe module in software and starting method therefor | |
CN100547545C (en) | The method and system that is used for the application fractionation of network edge calculating | |
CN104272292A (en) | Network resource deployment for cloud-based services | |
CN103036855B (en) | A kind of equipment that realizes of rights management and method | |
KR20090115168A (en) | Method of loading software in mobile and desktop environments | |
CN101895872A (en) | Method for conveniently downloading application program for mobile terminal | |
CN102457541A (en) | System and method for avoiding resource competition during starting diskless workstation | |
CN102662884B (en) | Device driving program configuration method based on network | |
US20120150547A1 (en) | Integration of crm applications to ecs application user interface | |
CN103077024A (en) | Device and method for supporting customization and running of software-as-a-service (SaaS) application processes | |
CN101853152A (en) | Method and system for generating graphical user interface | |
CN101375269A (en) | Download service for device drivers | |
KR101086620B1 (en) | Smart office system and server for managing the sames and method for managing the sames | |
US7818467B2 (en) | Method of indentifying devices in mobile and desktop environments | |
CN114168179A (en) | Micro-service management method, device, computer equipment and storage medium | |
US20120290913A1 (en) | Computerized tool, system and method for remote access to a computer program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |