CN103716460B - A kind of preset application based on Android system and a key exhalation processing method - Google Patents
A kind of preset application based on Android system and a key exhalation processing method Download PDFInfo
- Publication number
- CN103716460B CN103716460B CN201310696394.4A CN201310696394A CN103716460B CN 103716460 B CN103716460 B CN 103716460B CN 201310696394 A CN201310696394 A CN 201310696394A CN 103716460 B CN103716460 B CN 103716460B
- Authority
- CN
- China
- Prior art keywords
- key
- apk
- preset
- application
- android system
- 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
Abstract
The present invention relates to based on android system field, particularly relate to a kind of preset application based on Android system and a key exhalation processing method <b>.</b> the present invention is directed to the problem of prior art, provides a kind of preset application based on Android system and a key exhalation processing method.The present invention is based in Android platform, in the corresponding type of manufacturer, some specific application preset and xml configuration file, store the important attribute of preset application program and the path of other xml files in xml file.Secondly, in factory menu, increase the entrance installing preset application, when user selects to install application by this entrance, system can complete the file copy of preset application according to preset xml file, and completes the installation to preset application.Finally, the remote controller of intelligent terminal adds the button of preset application, this button is corresponding a kind of specific application only, starts corresponding application after user pushes button.
Description
Technical field
The present invention relates to based on android system field, particularly relate to a kind of preset application based on Android system and a key exhalation processing method.
Background technology
Along with the fast development of android system, increasing intelligent terminal carries Android platform.In order to meet the demand of user to application-specific in specific intelligence terminal, manufacturer needs these application preset on this kind equipment to facilitate user installation, and the key call out function realizing application comes user-friendly.But android system itself does not have the manipulation ability to preset application, the software version compatibility problem of multiclass product can not be solved.Therefore, invent a kind of control method to pre-installed applications, and realize a key call out function of application.Namely in a series products, pre-installed applications only has specific type could install the application of prepackage.This method well achieves the compatibility of software version.
Summary of the invention
Technical problem to be solved by this invention is: for prior art factory pre-set APK and a key exhalation problem, provides a kind of preset application based on Android system and a key exhalation processing method.The present invention is based in Android platform, in the corresponding type of manufacturer, some specific application preset and xml configuration file, store the important attribute of preset application (preset APK) and the path of other xml files in xml file.
the technical solution used in the present invention is as follows:
A kind of preset application processing method based on Android system comprises:
Step 1: the xml configuration file that factory pre-set APK and APK is corresponding is positioned in the factory pre-set file APP in intelligent terminal factory menu jointly;
Step 2: android system installed by intelligent terminal, starts intelligent terminal and enters the preset application of option of factory menu, carry out the parsing of xml configuration file, and according to parsing content, eligible factory pre-set APK being copied to application can under execution route;
Step 3: record this reproducting content to key application mapping table, restart intelligent terminal;
In step 4:Android system, system program receives the key value of intelligent terminal one key exhalation button, then go to resolve key application mapping table, the factory pre-set APK number that this key is corresponding is judged according to analysis result, if number is greater than 1, corresponding list of breathing out, otherwise directly start corresponding factory pre-set APK.
Preferably, the Xml configuration file content in described step 1 comprises preset software vendor title, manufacturer's customization type designation, manufacturer's customization type asterisk wildcard, the external path of factory pre-set software application, a key exhalation list of application.
Preferably, in described step 2, xml configuration file parsing detailed process is:
Step 21: resolve xml configuration file, obtain two-level node, described first nodes is the number of root node, and two-level node is the node of preset APK trade name;
Step 22: resolve two-level node one by one, namely according to preset APK trade name, is stored into the external path of the manufacturer of its correspondence customization type designation, manufacturer's customization type asterisk wildcard, factory pre-set APK and a key exhalation list of application in a structure.
Step 23: read manufacturer's customization type designation and mate with the current type of intelligent terminal from this structure, if mated, copies to application and under execution route, otherwise can not do any action by preset APK.
This reproducting content is recorded to key application mapping table concrete steps in described step 3:
Step 31: factory pre-set APK being copied to application can after execution route, the preset APK trade name write key application mapping table by corresponding for eligible preset APK:
Step 32: by the bag name of preset APK corresponding for preset APK manufacturer write key application mapping table:
Step 33: by under identification nodes corresponding for the bag name of preset application write button key:
Preferably, resolve key application mapping table concrete steps in described step 4 and comprise reading key application mapping table by row, inquiry mark, if find to be designated mark corresponding to button key, then go to read mark content below, count the number of corresponding factory pre-set APK.
Preferably, the external path of described factory pre-set APK refers to the store path of the corresponding factory pre-set APK of external hardware and xml configuration file.
Preferably, a described key exhalation button key value refers to button key value corresponding to manufacturer's customization key
.
in sum, owing to have employed technique scheme, the invention has the beneficial effects as follows:
1) the present invention is solved simply, easily and Android platform is manipulated preset application and a key by a kind of breathe out method of application-specific of preset application and a key and to breathe out the difficult problem of application, effectively solve the compatibling problem of software version, reduce the branch of software code.Whole manipulation is convenient, flexible, significantly can improve Consumer's Experience.Contribute to applying the fusion with android system simultaneously.
2) the xml configuration file that factory pre-set APK and APK is corresponding is positioned in the factory pre-set file APP in intelligent terminal factory menu jointly; Intelligent terminal carries out the parsing of xml configuration file, and according to parsing content, eligible factory pre-set APK being copied to application can under execution route; System resource is effectively utilized.
3) in android system, system program receives the key value of intelligent terminal one key exhalation button, then go to resolve key application mapping table, the factory pre-set APK number that this key is corresponding is judged according to analysis result, if number is greater than 1, corresponding list of breathing out, otherwise directly start corresponding factory pre-set APK, make to design different processing methods to different preset APK, effectively complete the prefabricated APK of manufacturer.In factory menu, increase the entrance installing preset application, when user selects to install application by this entrance, system can complete the file copy of preset application according to preset xml file, and completes the installation to preset application.Finally, the remote controller of intelligent terminal adds the button of preset application, this button is corresponding a kind of specific application only, starts corresponding application after user pushes button.
Embodiment
All features disclosed in this specification, or the step in disclosed all methods or process, except mutually exclusive feature and/or step, all can combine by any way.
Arbitrary feature disclosed in this specification (comprising any accessory claim, summary and accompanying drawing), unless specifically stated otherwise, all can be replaced by other equivalences or the alternative features with similar object.That is, unless specifically stated otherwise, each feature is an example in a series of equivalence or similar characteristics.
A kind of preset application processing method based on Android system comprises:
Step 1: the xml configuration file that factory pre-set APK and APK is corresponding is positioned in the factory pre-set file APP in intelligent terminal factory menu jointly; Xml configuration file content comprises preset software vendor title, manufacturer's customization type designation, manufacturer's customization type asterisk wildcard, the external path of factory pre-set software application, a key exhalation list of application
Step 2: android system installed by intelligent terminal, starts intelligent terminal and enters the preset application of option of factory menu, carry out the parsing of xml configuration file, and according to parsing content, eligible factory pre-set APK being copied to application can under execution route; Detailed process is:
Step 21: resolve xml configuration file, obtain two-level node, described first nodes is the number of root node, and two-level node is the node of preset APK trade name;
Step 22: resolve two-level node one by one, namely according to preset APK trade name, is stored into the external path of the manufacturer of its correspondence customization type designation, manufacturer's customization type asterisk wildcard, factory pre-set APK and a key exhalation list of application in a structure.
Step 23: read manufacturer's customization type designation and mate with the current type of intelligent terminal from this structure, if mated, copies to application and under execution route, otherwise can not do any action by preset APK.
Step 3: record this reproducting content to key application mapping table, restart intelligent terminal;
In step 4:Android system, system program receives the key value of intelligent terminal one key exhalation button, then go to resolve key application mapping table, the factory pre-set APK number that this key is corresponding is judged according to analysis result, if number is greater than 1, corresponding list of breathing out, otherwise directly start corresponding factory pre-set APK.
Wherein, this reproducting content is recorded in described step 3 to key application mapping table concrete steps:
Step 31: factory pre-set APK being copied to application can after execution route, the preset APK trade name write key application mapping table by corresponding for eligible preset APK:
Step 32: by the bag name of preset APK corresponding for preset APK manufacturer write key application mapping table:
Step 33: by under identification nodes corresponding for the bag name of preset application write button key:
Preferably, resolve key application mapping table concrete steps in described step 4 and comprise reading key application mapping table by row, inquiry mark, if find to be designated mark corresponding to button key, then go to read mark content below, count the number of corresponding factory pre-set APK.
The external path of described factory pre-set APK refers to the store path of the corresponding factory pre-set APK of external hardware and xml configuration file.
A described key exhalation button key value refers to button key value corresponding to manufacturer's customization key.
The present invention is not limited to aforesaid embodiment.The present invention expands to any new feature of disclosing in this manual or any combination newly, and the step of the arbitrary new method disclosed or process or any combination newly.
Claims (7)
1., based on preset application and the key exhalation processing method of Android system, it is characterized in that comprising:
Step 1: the xml configuration file that factory pre-set APK and APK is corresponding is positioned in the factory pre-set file APP in intelligent terminal factory menu jointly, and described APK is the abbreviation of Androidapplicationpackage;
Step 2: android system installed by intelligent terminal, starts intelligent terminal and enters the preset APK option of factory menu, carry out the parsing of xml configuration file, and according to parsing content, eligible factory pre-set APK being copied to application can under execution route;
Step 3: record this reproducting content to key application mapping table, restart intelligent terminal;
In step 4:Android system, system program receives the key value of intelligent terminal one key exhalation button, then go to resolve key application mapping table, the factory pre-set APK number that this key is corresponding is judged according to analysis result, if number is greater than 1, corresponding list of breathing out, otherwise directly start corresponding factory pre-set APK.
2. a kind of preset application based on Android system according to claim 1 and a key exhalation processing method, is characterized in that the Xml configuration file content in described step 1 comprises preset APK trade name, manufacturer's customization type designation, manufacturer's customization type asterisk wildcard, the external path of factory pre-set APK, a key exhalation list of application.
3. a kind of preset application based on Android system according to claim 1 and a key exhalation processing method, is characterized in that in described step 2, xml configuration file parsing detailed process is:
Step 21: resolve xml configuration file, obtain two-level node, first nodes is the number of root node, and two-level node is the node of preset APK trade name;
Step 22: resolve two-level node one by one, namely according to preset APK trade name, is stored in a structure by the external path of the manufacturer of its correspondence customization type designation, manufacturer's customization type asterisk wildcard, factory pre-set APK and a key exhalation list of application;
Step 23: read manufacturer's customization type designation and mate with the current type of intelligent terminal from this structure, if mated, copies to application and under execution route, otherwise can not do any action by preset APK.
4. a kind of preset application based on Android system according to claim 1 and a key exhalation processing method, is characterized in that recording this reproducting content in described step 3 to key application mapping table concrete steps:
Step 31: factory pre-set APK being copied to application can after execution route, the preset APK trade name write key application mapping table by corresponding for eligible preset APK:
Step 32: by the bag name of preset application corresponding for preset APK manufacturer write key application mapping table:
Step 33: by under identification nodes corresponding for the bag name of preset APK write button key.
5. a kind of preset application based on Android system according to claim 1 and a key exhalation processing method, it is characterized in that resolving key application mapping table concrete steps in described step 4 comprises reading key application mapping table by row, inquiry mark, if find to be designated mark corresponding to button key, then go to read mark content below, count the number of corresponding factory pre-set APK.
6. a kind of preset application based on Android system according to claim 1 and a key exhalation processing method, is characterized in that the external path of factory pre-set APK refers to the store path of the corresponding factory pre-set APK of external hardware and xml configuration file.
7. a kind of preset application based on Android system according to claim 1 and a key exhalation processing method, is characterized in that a described key exhalation button key value refers to button key value corresponding to manufacturer's customization key.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310696394.4A CN103716460B (en) | 2013-12-18 | 2013-12-18 | A kind of preset application based on Android system and a key exhalation processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310696394.4A CN103716460B (en) | 2013-12-18 | 2013-12-18 | A kind of preset application based on Android system and a key exhalation processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103716460A CN103716460A (en) | 2014-04-09 |
CN103716460B true CN103716460B (en) | 2015-12-30 |
Family
ID=50409018
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310696394.4A Active CN103716460B (en) | 2013-12-18 | 2013-12-18 | A kind of preset application based on Android system and a key exhalation processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103716460B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107832092A (en) * | 2017-11-24 | 2018-03-23 | 四川长虹电器股份有限公司 | Suitable for the software platform and processing method of individual demand |
CN112929872B (en) * | 2021-01-21 | 2022-11-25 | 读书郎教育科技有限公司 | System and method for realizing Android terminal preinstallation application in factory based on WIFI |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102083239A (en) * | 2009-11-30 | 2011-06-01 | 中国移动通信集团云南有限公司 | Method and system for data processing |
CN102833399A (en) * | 2012-08-10 | 2012-12-19 | 广东欧珀移动通信有限公司 | Application program selection method and device |
-
2013
- 2013-12-18 CN CN201310696394.4A patent/CN103716460B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102083239A (en) * | 2009-11-30 | 2011-06-01 | 中国移动通信集团云南有限公司 | Method and system for data processing |
CN102833399A (en) * | 2012-08-10 | 2012-12-19 | 广东欧珀移动通信有限公司 | Application program selection method and device |
Also Published As
Publication number | Publication date |
---|---|
CN103716460A (en) | 2014-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111651224B (en) | Systems and methods for identifying, indexing, and navigating to depth states of mobile applications | |
US9727327B1 (en) | Software distribution framework | |
WO2017101663A1 (en) | Application guiding method and apparatus, and terminal | |
WO2017016117A1 (en) | Playback system playback list switching control method and apparatus | |
US8910113B2 (en) | Methods and systems for visual code refactoring | |
CN107391104B (en) | Client and reactive native code update dependence management method, device and system | |
CN105335183A (en) | Software upgrade method and system | |
CN110321131B (en) | Service component packaging method, system and server | |
US8965890B2 (en) | Context sensitive media and information | |
CN103607644A (en) | Screensaver program self-defining method for Android TVs | |
CN103716460B (en) | A kind of preset application based on Android system and a key exhalation processing method | |
CN102968337A (en) | Application program cleaning method and system | |
US20180189165A1 (en) | Method for assisting with debugging, and computer system | |
CN104484240A (en) | Method and device for storing terminal data | |
CN108445788B (en) | Hotel scene control method and related device | |
CN112052052A (en) | Touch method and device for key value, terminal and storage medium | |
CN103955384A (en) | Individual customization supporting method based on multi-tenant mode | |
CN104052626A (en) | Method, device and system for configuring network element data | |
CN103699404B (en) | A kind of method of the corresponding multiple prefabricated application programs of same movement different type of machines | |
CN105657551A (en) | Method and apparatus used by smart television to respond to analog key | |
CN105760755B (en) | A kind of partition method of Visual Studio expanding packets | |
CN113138790B (en) | Customized integration method and device for Android set top box and integrated development system for set top box | |
CN107402749B (en) | Method and device for realizing picture loading library | |
CN105744328B (en) | The method of application is fast opened on TV | |
CN105468379B (en) | A kind of script file execution method and device |
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 |