WO2014067308A1 - 基于安卓系统的功能查询模块实现方法、系统及手机 - Google Patents
基于安卓系统的功能查询模块实现方法、系统及手机 Download PDFInfo
- Publication number
- WO2014067308A1 WO2014067308A1 PCT/CN2013/080823 CN2013080823W WO2014067308A1 WO 2014067308 A1 WO2014067308 A1 WO 2014067308A1 CN 2013080823 W CN2013080823 W CN 2013080823W WO 2014067308 A1 WO2014067308 A1 WO 2014067308A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- function
- module
- query
- configuration file
- switch
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000001413 cellular effect Effects 0.000 title abstract 2
- 238000012545 processing Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 6
- 230000007547 defect Effects 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Definitions
- the present invention relates to the field of mobile terminals, and in particular, to a method, system and mobile phone for implementing a function query module based on an Android system.
- the Android (Android) system widely used in mobile phones is an intelligent mobile terminal operating system launched by Google.
- the system needs to describe a specific definition file for different function switches, and the definition files are distributed in different positions of different modules. Therefore, each time you turn on or off a system function, you need to find the specific location where the switch definition file of the function is stored, and then query or control the corresponding function to enable or disable the corresponding function.
- This type of operation is not only time consuming and labor intensive, but can also result in the omission of certain functions being turned on or off.
- the technical problem to be solved by the present invention is to provide a method, a system and a mobile phone for implementing the function query module based on the Android system, aiming at enabling the developer or the user to uniformly manage the Android function, and the operation is intuitive and simple. At the same time, it also optimizes the management of system function switches.
- a method for implementing a function query module based on an android system comprising the steps of:
- the control generates a configuration file for each functional module in the system, and the configuration file can uniformly control all the function switch definitions scattered in the corresponding function module code, and integrate all the configuration files to generate a function query module.
- the function query module provides an external query interface externally capable of querying all function switches in the system;
- the system receives the query instruction sent by the user through the external query interface provided by the function query module, and controls whether the corresponding function of the query is enabled according to the query instruction;
- the step A further includes the steps of: presetting a configuration file in the system capable of traversing all the configuration files in the specified directory, and controlling a module for converting the configuration description of the function switch in the configuration file into the corresponding Java code. Builder.
- the android system-based function query module implementation method wherein the query instruction input by the user in the step B specifically includes: a function module name where the function to be queried is located, and a name of the function.
- step A specifically includes the following steps:
- the control generates a configuration file for each functional module in the system, and the configuration file can uniformly control the switches of all functions included in the corresponding functional module;
- A2 converting a configuration description of the function switch in all the configuration files into a corresponding Java code by using a preset module generator
- A3. Combine the converted java code with the java code for querying the function switch to generate a function query module, and provide a function externally through the function query module to query whether all system functions are enabled. External query interface.
- step A2 specifically includes the following steps:
- the module generator traverses all configuration files under the specified directory, and controls to parse the configuration files one by one;
- the control converts the parsed data into corresponding Java code according to a certain rule.
- the android system-based function query module implementation method wherein the configuration file described in the step A1 is a file in an XML format.
- a function query module implementation system based on android system which comprises:
- the first management module is configured to generate a configuration file for each function module in the system, where the configuration file can uniformly control all function switch definitions scattered in the corresponding function module code, and integrate all the configuration files to generate a function.
- the query module provides an external query interface externally capable of querying all function switches in the system through the function query module;
- the second management module is configured to: when the switch that needs the query function is needed, receive a query instruction that is sent by the user through the external query interface provided by the function query module, and control whether the corresponding function of the query is enabled according to the query instruction;
- the module generator is configured to traverse the configuration file under the specified directory, and control the parsing of the configuration file one by one; and convert the parsed data into corresponding Java code according to certain rules.
- a first unit configured to separately generate, for each function module, a configuration file, where the configuration file is used to uniformly configure a switch of all functions included in the corresponding function module;
- a module generator for controlling the preset, converting a configuration description of the function switch in the configuration file into a corresponding Java code
- a third unit configured to combine and edit the java code converted by the module generator and the java code for function switch query, control to generate a function query module, and the function query module provides an external query for all Whether the android function is enabled for the external query interface.
- the query instruction specifically includes: a function module name in which a function to be queried is located, and a name of the function.
- configuration file is a file in an XML format.
- a mobile phone comprising the android system based function query module implementation system.
- the invention provides a method, a system and a mobile phone for implementing a function query module based on an android system, which realizes unified management and query of all functions by generating a function query module, which greatly provides convenience for developers or users.
- the function of the switch control and management operation of the function is more intuitive and simple, and the defects of some functions of the switch are easily missed during the decentralized management, and the centralized processing and the simple operation mode of the system function switch of the present invention are compared with the current
- the phenomenon of the function switch management of the Android system greatly facilitates the system developer and the user.
- FIG. 1 is a flow chart of an embodiment of a method for implementing a function query module based on an android system according to the present invention.
- FIG. 2 is a schematic diagram of a function query module generated in an embodiment of a function query module based on the android system of the present invention.
- FIG. 3 is a sample code of a DTD grammar rule in an implementation method of a function query module based on an android system according to the present invention.
- FIG. 4 is a schematic diagram of an example code for querying a function switch through an external query interface in an implementation method of a function query module based on an Android system according to the present invention.
- FIG. 5 is a schematic diagram of an internal framework of an implementation method of a function query module based on an Android system according to the present invention.
- FIG. 6 is a structural block diagram of an embodiment of an android function query system according to the present invention.
- FIG. 7 is a structural block diagram of a first management module in an android function query system according to the present invention.
- FIG. 1 is a flowchart of an embodiment of a method for implementing a function query module based on an Android system according to the present invention.
- the method includes the following steps:
- the system receives the query instruction of the specified function of the query input by the user through the external query interface provided by the function query module, and controls whether the corresponding function of the query is enabled according to the query instruction.
- the query instruction input by the user specifically includes two pieces of information: a name of a function module in which the function to be queried is located, and a name of the function.
- step S1 specifically includes the following steps:
- a configuration file is generated for each function module in the android system in advance, and the configuration file is used to uniformly define switches for all functions included in the corresponding function module; preferably, the configuration described in this embodiment is
- the files are in XML format to more clearly express the switch definitions of each function contained in each function module and their respective hierarchical relationships, which is easy for developers to read and understand.
- a corresponding one of the configuration files is generated for each functional module, so that the functional modules in the system respectively have a configuration file to describe the switches of all the functions they contain, so that the modules of the entire system can be The level is clearer.
- the module generator can traverse all the configuration files in the specified directory and control the generation of the function query module.
- the specific process is: the module generator traverses all the configuration files under the specified directory, parses the configuration files one by one; and converts the parsed data into corresponding Java code according to certain rules.
- the combination edits the obtained java code by the module generator and the java code for the function switch query, thereby generating the function query module, and the function query module provides a general external query interface for The receiving user queries the query command of the specified function switch to control whether the corresponding function of the query is enabled.
- the function module corresponding to each configuration file is identified by the class "class” tag, and the "class” tag bit further includes two attributes: the attribute "name” and The property "package”.
- the attribute "name” is used to identify the name of the corresponding function module
- the attribute "package” is used to classify and manage the corresponding function module according to the structure.
- the class "class” of the tag identification function module a plurality of sub-modules are allowed to be nested, and the sub-module is identified by a "subclass” tag, and the "subclass” tag contains only one attribute "name” for describing Corresponds to the name of the submodule.
- a specific function switch definition can be configured in the function module and the submodules it contains.
- the “feature” tag is used to identify the specific function in the function module.
- the “feature” tag contains two attributes: The attribute "name” and the attribute "value”, wherein the attribute "name” is used to describe the name of the specific function, and the attribute "value” is used to describe the on or off of the corresponding function, so the attribute "value” allows the set value. Can only be true or false.
- the grammar rules generated by the configuration file described in this embodiment please refer to the DTD based on the DTD (Document) Sample code for Type Definition, the syntax of the tag.
- the conversion rule that the module generator parses the configuration file and converts the parsed data into a corresponding Java code according to a certain rule in the embodiment includes:
- a corresponding Java code for querying the function switch is required, and the Java code of the query function switch is edited in the form of an external interface, and the specific definition may be Similar to public Static boolean isSupport(String moduleName, String featureName).
- the implementation of the external query interface may employ the example code shown in FIG.
- the java statement generated by the conversion of the configuration file and the external query interface Java code for querying the function switch are combined and edited according to the java syntax to obtain a java package, and the java package is the external query interface.
- Query function module
- the function query module when the function query module queries whether the specific function is enabled, the external query interface in the function query module is invoked, and the specific function that the user needs to query is received through the interface.
- the schematic diagram of its internal frame code is shown in Figure 5.
- the embodiment of the present invention further provides a function query module implementation system based on the android system. As shown in FIG. 6, the system specifically includes the following components:
- the first management module 610 is configured to uniformly configure all the switches of the android function, and control to generate a function query module, and uniformly place the switch definitions of the functions scattered around the function in the function query module, and pass the
- the function query module provides an external query interface that can be used to query whether all android functions are enabled. For details, refer to the above embodiment.
- the second management module 620 is configured to: when the switch that needs to query the function is used, receive a query instruction that is sent by the user through the external query interface, and control whether the corresponding function of the query is enabled according to the query instruction. Refer specifically to the above embodiments.
- system further includes a module generator 630, configured to traverse the configuration file under the specified directory, and parse the configuration file one by one; and convert the parsed data into corresponding ones according to certain rules.
- module generator 630 configured to traverse the configuration file under the specified directory, and parse the configuration file one by one; and convert the parsed data into corresponding ones according to certain rules.
- Java code Refer specifically to the above embodiments.
- the first management module 610 specifically includes:
- the first unit 611 is configured to generate a configuration file for each function module in the android system, where the configuration file is used to uniformly configure switches for all functions included in the corresponding function module; and specifically refer to the foregoing embodiment.
- a second unit 612 configured to control the module generator 630 to convert a configuration description of a switch in the configuration file to a corresponding Java code; specifically refer to the foregoing embodiment.
- the third unit 613, the java code for converting the module generator 630 and the code for the function switch query are combined and edited to generate a function query module, and the function query module provides an external query for all Whether the external function of the android function is enabled; specifically referring to the above embodiment
- the invention also provides a mobile phone, which comprises the android system-based function query module implementation system described in the above embodiments.
- the present invention provides a method, system and mobile phone for implementing a function query module based on an android system, which realizes unified management and query of all functions of android by generating a function query module, which is greatly developed for developers.
- the user provides convenience, so that the control and management operations of the function switch become more intuitive and simple, and the defects of some function switches are easily omitted in the decentralized management, and the centralized processing and shortcut of the system function switch by the invention are simple and convenient.
- the operation mode compares the existing phenomena in the function management of the Android system, which greatly facilitates the system developers and users.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Stored Programmes (AREA)
Abstract
本发明公开了一种基于安卓系统的功能查询模块实现方法、系统及手机,所述方法包括步骤:控制对所有android功能的开关进行统一配置并生成一个功能查询模块,且通过所述功能查询模块向外部提供一个能够用于查询所有android功能开关的外部查询接口;需要查询功能开关时,系统通过所述功能查询模块提供的所述外部查询接口接收用户传入的查询指令,根据所述查询指令控制查询对应功能是否开启。通过本发明这种对系统功能开关集中式的处理和简捷的操作方式,对比目前Android系统功能开关管理中存在的现象,极大的方便了系统开发者及使用用户。
Description
技术领域
本发明涉及移动终端领域,尤其涉及的是一种基于安卓系统的功能查询模块实现方法、系统及手机。
背景技术
随着移动通信技术的发展和人们生活水平的不断提高,各种移动终端如手机的使用越来越普及,手机已经成为人们日常生活中不可缺少的通讯工具。
目前手机中广泛采用的Android(安卓)系统是谷歌推出的一种智能的移动终端操作系统,在Android系统的开发过程中,会面临不同情况下对不同的系统功能进行开启或关闭的需要,而现有技术中系统对不同功能的开关需要特定的定义文件进行描述,且所述定义文件分布在不同模块的不同位置。因此每次开启或关闭一个系统功能时都需要先查找对所述功能的开关定义文件所存放的具体位置,再通过对所述定义文件查询或控制对应功能的开启或关闭,当需要频繁操作系统中多个不同功能的开关时,这种操作方式不仅费时费力,而且还可能导致遗漏对某些功能的开启或关闭。
因此,现有技术还有待于改进和发展。
发明内容
本发明要解决的技术问题在于,针对现有技术的上述缺陷,提供一种基于安卓系统的功能查询模块实现方法、系统及手机,旨在使开发者或用户能够统一管理Android功能,操作直观简便,同时也优化了对系统功能开关的管理。
本发明解决技术问题所采用的技术方案如下:
一种基于android系统的功能查询模块实现方法,其中,包括步骤:
A、控制分别为系统中的各功能模块生成一个配置文件,所述配置文件能统一控制所有散落在对应功能模块代码中的功能开关定义,整合所有所述配置文件生成一个功能查询模块,通过所述功能查询模块向外部提供一个能查询系统中所有功能开关的外部查询接口;
B、当需要查询功能的开关时,系统通过所述功能查询模块提供的所述外部查询接口接收用户传入的查询指令,根据所述查询指令控制查询对应功能是否开启;
所述步骤A之前还包括步骤:在系统中预置一个能够遍历指定目录下的所有所述配置文件,并控制将所述配置文件中对功能的开关的配置描述转化为对应的Java代码的模块生成器。
所述基于android系统的功能查询模块实现方法,其中,所述步骤B中所述的用户传入的查询指令具体包括:需要查询的功能所在的功能模块名字,以及所述功能的名字。
所述基于android系统的功能查询模块实现方法,其中,所述步骤A具体包括步骤:
A1、控制分别为系统中的各功能模块生成一个配置文件,所述配置文件能统一控制对应功能模块所包含的所有功能的开关;
A2、通过预置的模块生成器将所有所述配置文件中对功能开关的配置描述转化为对应的Java代码;
A3、将所述转化得到的java代码和用于查询功能开关的java代码进行组合编辑,生成一个功能查询模块,且通过所述功能查询模块向外部提供一个能够用于查询所有系统功能是否开启的外部查询接口。
所述基于android系统的功能查询模块实现方法,其中,所述步骤A2具体包括步骤:
A21、通过所述模块生成器遍历指定目录下面的所有配置文件,并控制对所述配置文件逐个进行解析;
A22、控制将解析得到的数据按照一定的规则转化为对应的Java代码。
所述基于android系统的功能查询模块实现方法,其中,所述步骤A1中所述的配置文件为XML格式的文件。
一种基于android系统的功能查询模块实现系统,其中,包括:
第一管理模块、用于控制分别为系统中的各功能模块生成一个配置文件,所述配置文件能统一控制所有散落在对应功能模块代码中的功能开关定义,整合所有所述配置文件生成一个功能查询模块,通过所述功能查询模块向外部提供一个能查询系统中所有功能开关的外部查询接口;
第二管理模块、用于当需要查询功能的开关时,接收用户通过所述功能查询模块提供的所述外部查询接口传入的查询指令,根据所述查询指令控制查询对应功能是否开启;
模块生成器,用于遍历指定目录下面的配置文件,并控制对所述配置文件逐个进行解析;以及用于将解析得到的数据按照一定的规则转化为对应的Java代码。
所述的系统,其中,所述第一管理模块具体包括:
第一单元、用于控制为每个功能模块分别生成一个的配置文件,所述配置文件用于统一配置对应功能模块所包含的所有功能的开关;
第二单元、用于控制预置的模块生成器将所述配置文件中对功能开关的配置描述转化为对应的Java代码;
第三单元、用于组合编辑所述模块生成器转化得到的java代码和用于功能开关查询的java代码,控制生成一个功能查询模块,且所述功能查询模块向外部提供一个能够用于查询所有android功能是否开启的外部查询接口。
所述的系统,其中,所述查询指令具体包括:需要查询的功能所在的功能模块名字,以及所述功能的名字。
所述的系统,其中,所述的配置文件为XML格式的文件。
一种手机,包含所述的基于android系统的功能查询模块实现系统。
本发明所提供的一种基于android系统的功能查询模块实现方法、系统及手机,其通过生成一个功能查询模块实现了对所有功能的统一管理和查询,极大地为开发者或用户提供了方便,使功能的开关控制和管理操作变得更加直观简便,避免了分散管理时容易漏掉开关某些功能的缺陷,通过本发明这种对系统功能开关的集中式处理和简捷的操作方式,对比目前Android系统功能开关管理中存在的现象,极大的方便了系统开发者及使用用户。
附图说明
图1是本发明一种基于android系统的功能查询模块实现方法的实施例的流程图。
图2是本发明一种基于android系统的功能查询模块实现方法实施例中生成功能查询模块示意图。
图3是本发明一种基于android系统的功能查询模块实现方法实施例中DTD语法规则的示例代码。
图4是本发明一种基于android系统的功能查询模块实现方法实施例中通过外部查询接口查询功能开关的示例代码。
图5是本发明一种基于android系统的功能查询模块实现方法实施例的内部框架示意图。
图6是本发明一种android功能查询系统的实施例的结构框图。
图7是本发明一种android功能查询系统中第一管理模块的结构框图。
具体实施方式
为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
请参见图1,图1是本发明一种基于android系统的功能查询模块实现方法的实施例的流程图。本实施例中,所述方法包括以下步骤:
S1、预先对所有android功能的开关进行统一配置,并生成一个功能查询模块,通过所述功能查询模块向外部提供一个能够用于查询所有android功能的开关的通用外部查询接口。即将原本散落在各处的对功能的开关定义集中到所述生成的功能查询模块中,以统一管理Android系统中的所有的功能的开关。
S2、系统通过所述功能查询模块提供的所述外部查询接口接收用户传入的查询指定功能的查询指令,根据所述查询指令控制查询对应功能是否开启。本实施例中,所述的用户传入的查询指令具体包括两个信息:需要查询的功能所在的功能模块的名字,以及所述功能的名字。
进一步的,本实施例具体实施过程中,如图2所示,所述步骤S1具体包括步骤:
001、预先为android系统中各个功能模块分别生成一个的配置文件,所述配置文件用于统一对相应功能模块所包含的所有功能的开关进行定义;较佳的,本实施例中所述的配置文件采用XML格式的文件,以更加清晰的表达出各个功能模块中所包含的每一个功能的开关定义以及他们各自的层级关系,便于开发人员阅读和理解。
需要说明的是,为各个功能模块中生成对应的一个所述配置文件,以使系统中的功能模块都对应有一个配置文件来描述其所包含的所有功能的开关,这样可使整个系统的模块层次更加清晰。
002、然后通过预置在系统中的模块生成器将所述配置文件中对功能的开关的定义描述转化为对应的Java代码;因此,本实施例中,所述步骤S1之前需要开发一个模块生成器并预置在系统中,所述模块生成器能够遍历指定目录下的所有配置文件并控制生成所述功能查询模块。具体过程为:通过所述模块生成器遍历指定目录下面的所有配置文件,对所述配置文件逐个进行解析;再将解析得到的数据按照一定的规则转化为对应的Java代码。
003、最后组合编辑通过模块生成器转化得到的java代码和用于功能开关查询的java代码,由此生成所述功能查询模块,且所述功能查询模块提供了一个通用的外部查询接口,用于接收用户查询指定功能开关的查询指令进而控制查询对应功能是否开启。
较佳的,本实施例中,在所述配置文件中,用类“class”标记识别各配置文件对应的功能模块,在“class”标记位中又包含有2个属性:属性“name”和属性“package”。其中属性“name”用于标识对应功能模块的名字,属性“package”用于把对应功能模块按结构进行分类管理。进一步的,在所述标记识别功能模块的类“class”中允许嵌套多个子模块,子模块用“subclass”标记识别,所述“subclass”标记中只包含一个属性“name”,用于描述对应子模块的名字。在功能模块和其所包含的子模块中可以配置具体的对功能开关的定义,本实施例中用“feature”标记识别功能模块中的具体功能,所述“feature”标记中包含2个属性:属性“name”和属性“value”,其中属性“name”用于描述所述具体功能的名字,属性“value”用于描述对应功能的开或关,因此所述属性“value”允许设置的值只能是true或false。为了更清楚的表达本实施例所述的配置文件生成的语法规则,请参见图3给出的基于DTD(Document
Type Definition ,标记符的语法规则)的示例代码。
基于上述所述的配置文件,本实施例中所述模块生成器解析所述配置文件并将解析得到的数据按照一定的规则转化为对应的Java代码的转化规则具体包括:
将从属性“package”中获得的内容转化生成为java的包名;
将从标记“class”中的“name”属性中获取的内容转化生成为以“public
final”修饰的类;
将从标记“subclass”中的“name”属性中获取的内容转化生成为以“public final
static”修饰的类;
将从标记“feature”中获取的内容转化生成为类似“public static boolean
[name] = [value];”的java语句。
进一步的,要生成所述具有外部查询接口的查询功能模块,还需有相应的用于查询功能开关的Java代码,以一个外部接口的形式编辑所述查询功能开关的Java代码,具体的定义可以类似于public
static boolean isSupport(String moduleName, String
featureName)。所述外部查询接口的实现可以采用图4所示的示例代码。
最后,将上述由配置文件转换生成的java语句以及所述用于查询功能开关的外部查询接口Java代码按照java语法进行组合编辑,得到一个java包,所述java包即所述具有外部查询接口的查询功能模块。
进一步的,生成所述功能查询模块之后,通过所述功能查询模块查询具体功能是否开启时,调用所述功能查询模块中的外部查询接口,通过所述接口接收用户传入的需要查询的具体功能所在的模块名字和具体功能的名字,控制查询对应的功能是否开启。其内部框架代码示意图如图5所示。
由上可见,经过上述基于android系统的功能查询模块实现方法,实现了对android所有功能的统一管理和查询,极大地为开发者或用户提供了方便,使功能开关的控制和管理操作变得更加直观简便,避免了分散管理时容易漏掉某些功能的开关的缺陷,通过本发明这种对android功能集中式的处理和简捷的查询操作方式,极大的方便了系统开发者及使用用户。
本发明实施例还提供了一种基于android系统的功能查询模块实现系统,如图6所示,所述系统具体包括如下组成部分:
第一管理模块610、用于对所有android功能的开关进行统一配置,并控制生成一个功能查询模块,将原本散落在各处的功能的开关定义统一放置在所述功能查询模块,并通过所述功能查询模块向外部提供一个能够用于查询所有android功能是否开启的外部查询接口;具体参照上述实施例所述。
第二管理模块620、用于当需要查询功能的开关时,接收用户通过所述外部查询接口传入的查询指令,并根据所述查询指令控制查询对应功能是否开启。具体参照上述实施例所述。
进一步的,所述系统还包括模块生成器630,用于遍历指定目录下面的所述配置文件,并对所述配置文件逐个进行解析;以及用于将解析得到的数据按照一定的规则转化为对应的Java代码。具体参照上述实施例所述。
较佳的,如图7所示,所述第一管理模块610具体包括:
第一单元611、用于控制为android系统中每个功能模块分别生成一个的配置文件,所述配置文件用于统一配置对应功能模块所包含的所有功能的开关;具体参照上述实施例所述。
第二单元612、用于控制所述模块生成器630将所述配置文件中对功能的开关的配置描述转化为对应的Java代码;具体参照上述实施例所述
第三单元613、用于将所述模块生成器630转化得到的java代码和用于功能开关查询的代码进行组合编辑,生成功能查询模块,所述功能查询模块向外部提供一个能够用于查询所有android功能是否开启的外部查询接口;具体参照上述实施例所述
本发明还提供了一种手机,所述手机中包含上述实施例所述的基于android系统的功能查询模块实现系统。
综上所述,本发明所提供的一种基于android系统的功能查询模块实现方法、系统及手机,其通过生成一个功能查询模块实现了对android所有功能的统一管理和查询,极大地为开发者或用户提供了方便,使功能开关的控制和管理操作变得更加直观简便,避免了分散管理时容易漏掉某些功能开关的缺陷,通过本发明这种对系统功能开关集中式的处理和简捷的操作方式,对比目前Android系统功能开关管理中存在的现象,极大的方便了系统开发者及使用用户。
应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。
Claims (15)
- 一种基于android系统的功能查询模块实现方法,其特征在于,包括步骤:A、控制分别为系统中的各功能模块生成一个配置文件,所述配置文件能统一控制所有散落在对应功能模块代码中的功能开关定义,整合所有所述配置文件生成一个功能查询模块,通过所述功能查询模块向外部提供一个能查询系统中所有功能开关的外部查询接口;B、当需要查询功能的开关时,系统通过所述功能查询模块提供的所述外部查询接口接收用户传入的查询指令,根据所述查询指令控制查询对应功能是否开启;所述步骤A之前还包括步骤:在系统中预置一个能够遍历指定目录下的所有所述配置文件,并控制将所述配置文件中对功能的开关的配置描述转化为对应的Java代码的模块生成器。
- 根据权利要求1所述基于android系统的功能查询模块实现方法,其特征在于,所述步骤B中所述的用户传入的查询指令具体包括:需要查询的功能所在的功能模块名字,以及所述功能的名字。
- 根据权利要求1所述基于android系统的功能查询模块实现方法,其特征在于,所述步骤A中所述的配置文件为XML格式的文件。
- 根据权利要求1所述基于android系统的功能查询模块实现方法,其特征在于,所述步骤A中,为各个功能模块中生成对应的一个所述配置文件,以使系统中的功能模块都对应有一个配置文件来描述其所包含的所有功能的开关。
- 一种基于android系统的功能查询模块实现系统,其特征在于,包括:第一管理模块、用于控制分别为系统中的各功能模块生成一个配置文件,所述配置文件能统一控制所有散落在对应功能模块代码中的功能开关定义,整合所有所述配置文件生成一个功能查询模块,通过所述功能查询模块向外部提供一个能查询系统中所有功能开关的外部查询接口;第二管理模块、用于当需要查询功能的开关时,接收用户通过所述功能查询模块提供的所述外部查询接口传入的查询指令,根据所述查询指令控制查询对应功能是否开启;模块生成器,用于遍历指定目录下面的配置文件,并控制对所述配置文件逐个进行解析;以及用于将解析得到的数据按照一定的规则转化为对应的Java代码。
- 根据权利要求5所述的系统,其特征在于,所述查询指令具体包括:需要查询的功能所在的功能模块名字,以及所述功能的名字。
- 根据权利要求5所述的系统,其特征在于,所述的配置文件为XML格式的文件。
- 一种基于android系统的功能查询模块实现方法,其特征在于,包括步骤:A、控制分别为系统中的各功能模块生成一个配置文件,所述配置文件能统一控制所有散落在对应功能模块代码中的功能开关定义,整合所有所述配置文件生成一个功能查询模块,通过所述功能查询模块向外部提供一个能查询系统中所有功能开关的外部查询接口;B、当需要查询功能的开关时,系统通过所述功能查询模块提供的所述外部查询接口接收用户传入的查询指令,根据所述查询指令控制查询对应功能是否开启;所述步骤A之前还包括步骤:在系统中预置一个能够遍历指定目录下的所有所述配置文件,并控制将所述配置文件中对功能的开关的配置描述转化为对应的Java代码的模块生成器;所述步骤A具体包括步骤:A1、控制分别为系统中的各功能模块生成一个配置文件,所述配置文件能统一控制对应功能模块所包含的所有功能的开关;A2、通过预置的模块生成器将所有所述配置文件中对功能开关的配置描述转化为对应的Java代码;A3、将所述转化得到的java代码和用于查询功能开关的java代码进行组合编辑,生成一个功能查询模块,且通过所述功能查询模块向外部提供一个能够用于查询所有系统功能是否开启的外部查询接口。
- 根据权利要求8所述基于android系统的功能查询模块实现方法,其特征在于,所述步骤A2具体包括步骤:A21、通过所述模块生成器遍历指定目录下面的所有配置文件,并控制对所述配置文件逐个进行解析;A22、控制将解析得到的数据按照一定的规则转化为对应的Java代码。
- 根据权利要求8所述基于android系统的功能查询模块实现方法,其特征在于,所述步骤B中所述的用户传入的查询指令具体包括:需要查询的功能所在的功能模块名字,以及所述功能的名字。
- 根据权利要求8所述基于android系统的功能查询模块实现方法,其特征在于,所述步骤A中所述的配置文件为XML格式的文件。
- 根据权利要求8所述基于android系统的功能查询模块实现方法,其特征在于,所述步骤A中,为各个功能模块中生成对应的一个所述配置文件,以使系统中的功能模块都对应有一个配置文件来描述其所包含的所有功能的开关。
- 一种基于android系统的功能查询模块实现系统,其特征在于,包括:第一管理模块、用于控制分别为系统中的各功能模块生成一个配置文件,所述配置文件能统一控制所有散落在对应功能模块代码中的功能开关定义,整合所有所述配置文件生成一个功能查询模块,通过所述功能查询模块向外部提供一个能查询系统中所有功能开关的外部查询接口;第二管理模块、用于当需要查询功能的开关时,接收用户通过所述功能查询模块提供的所述外部查询接口传入的查询指令,根据所述查询指令控制查询对应功能是否开启;模块生成器,用于遍历指定目录下面的配置文件,并控制对所述配置文件逐个进行解析;以及用于将解析得到的数据按照一定的规则转化为对应的Java代码;所述第一管理模块具体包括:第一单元、用于控制为每个功能模块分别生成一个的配置文件,所述配置文件用于统一配置对应功能模块所包含的所有功能的开关;第二单元、用于控制预置的模块生成器将所述配置文件中对功能开关的配置描述转化为对应的Java代码;第三单元、用于组合编辑所述模块生成器转化得到的java代码和用于功能开关查询的java代码,控制生成一个功能查询模块,且所述功能查询模块向外部提供一个能够用于查询所有android功能是否开启的外部查询接口。
- 根据权利要求13所述的系统,其特征在于,所述查询指令具体包括:需要查询的功能所在的功能模块名字,以及所述功能的名字。
- 根据权利要求13所述的系统,其特征在于,所述的配置文件为XML格式的文件。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210422849.9A CN102929626B (zh) | 2012-10-30 | 2012-10-30 | 基于安卓系统的功能查询模块实现方法、系统及手机 |
CN201210422849.9 | 2012-10-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014067308A1 true WO2014067308A1 (zh) | 2014-05-08 |
Family
ID=47644438
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2013/080823 WO2014067308A1 (zh) | 2012-10-30 | 2013-08-05 | 基于安卓系统的功能查询模块实现方法、系统及手机 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102929626B (zh) |
WO (1) | WO2014067308A1 (zh) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102929626B (zh) * | 2012-10-30 | 2016-06-22 | Tcl通讯(宁波)有限公司 | 基于安卓系统的功能查询模块实现方法、系统及手机 |
CN103701905B (zh) * | 2013-12-27 | 2017-04-26 | 北京猎豹移动科技有限公司 | 一种模式配置的方法、模式配置装置及服务器 |
CN106528223A (zh) * | 2016-10-27 | 2017-03-22 | 北京小米移动软件有限公司 | 读取变量值的方法及装置 |
CN110096262A (zh) * | 2019-03-16 | 2019-08-06 | 平安城市建设科技(深圳)有限公司 | 城市系统的生成方法、装置、终端及计算机可读存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1949902A (zh) * | 2006-11-01 | 2007-04-18 | 康佳集团股份有限公司 | 一种手机配置方法 |
CN101345967A (zh) * | 2008-08-15 | 2009-01-14 | 深圳华为通信技术有限公司 | 一种功能控制方法以及嵌入式终端 |
CN101354696A (zh) * | 2008-09-08 | 2009-01-28 | 北京航空航天大学 | 基于电信领域共享信息模型的数据整合与应用服务系统 |
CN102929626A (zh) * | 2012-10-30 | 2013-02-13 | Tcl通讯(宁波)有限公司 | 基于安卓系统的功能查询模块实现方法、系统及手机 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7698332B2 (en) * | 2006-03-13 | 2010-04-13 | Microsoft Corporation | Projecting queries and images into a similarity space |
-
2012
- 2012-10-30 CN CN201210422849.9A patent/CN102929626B/zh not_active Expired - Fee Related
-
2013
- 2013-08-05 WO PCT/CN2013/080823 patent/WO2014067308A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1949902A (zh) * | 2006-11-01 | 2007-04-18 | 康佳集团股份有限公司 | 一种手机配置方法 |
CN101345967A (zh) * | 2008-08-15 | 2009-01-14 | 深圳华为通信技术有限公司 | 一种功能控制方法以及嵌入式终端 |
CN101354696A (zh) * | 2008-09-08 | 2009-01-28 | 北京航空航天大学 | 基于电信领域共享信息模型的数据整合与应用服务系统 |
CN102929626A (zh) * | 2012-10-30 | 2013-02-13 | Tcl通讯(宁波)有限公司 | 基于安卓系统的功能查询模块实现方法、系统及手机 |
Also Published As
Publication number | Publication date |
---|---|
CN102929626A (zh) | 2013-02-13 |
CN102929626B (zh) | 2016-06-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2014067308A1 (zh) | 基于安卓系统的功能查询模块实现方法、系统及手机 | |
WO2013078899A1 (zh) | 一种基于手机的软件处理方法及手机 | |
WO2013131396A1 (zh) | 应用程序功能菜单的定制方法及装置 | |
WO2018149356A1 (zh) | 一种基于rsp的lpa应用实现方法、实现系统及终端 | |
WO2018214320A1 (zh) | 数据库业务逻辑监控方法、系统、及存储介质 | |
WO2019041856A1 (zh) | 家电控制方法、系统、控制终端、及存储介质 | |
WO2015135260A1 (zh) | 一种智能电视访问电视节目和应用程序的方法及系统 | |
WO2013037258A1 (zh) | 一种无线通讯设备对近期使用应用程序的提示方法及系统 | |
WO2013170653A1 (zh) | 一种屏幕锁解锁系统及方法 | |
WO2020155359A1 (zh) | 家电设备的控制方法、服务器、家电设备及存储介质 | |
WO2018120681A1 (zh) | 数据同步方法、装置、系统、数据处理服务器和存储介质 | |
WO2020133741A1 (zh) | 控制外设的方法、电视及可读存储介质 | |
WO2020147385A1 (zh) | 数据录入方法、装置、终端及计算机可读存储介质 | |
WO2013174172A1 (zh) | 一种文件信息预览方法及系统 | |
WO2011150814A1 (zh) | 信息处理方法及用户设备 | |
WO2015103838A1 (zh) | 一种基于手机的二维码编码和解码的方法及系统 | |
WO2014069820A1 (en) | Broadcast receiving apparatus, server and control methods thereof | |
WO2017148142A1 (zh) | 桌面图标文件夹的名称切换方法、装置及电子设备 | |
WO2017181786A1 (zh) | 数据分析处理的方法、装置、计算机设备及存储介质 | |
WO2016072636A1 (en) | User device, driving method of user device, apparatus for providing service and driving method of apparatus for providing service | |
WO2016119414A1 (zh) | 一种基于二维码的文件共享方法、系统及移动终端 | |
WO2018201774A1 (zh) | 数据审批方法、装置、设备和计算机可读存储介质 | |
WO2017012417A1 (zh) | 多屏互动设备之间的控制方法、多屏互动设备及系统 | |
WO2018036329A1 (zh) | 一种基于移动终端的剪贴板控制方法及系统 | |
WO2017016264A1 (zh) | 一种智能手表的表冠及智能手表的操作方法 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13852094 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 13852094 Country of ref document: EP Kind code of ref document: A1 |