[go: up one dir, main page]

CN103455342B - The method and device that a kind of theme calls - Google Patents

The method and device that a kind of theme calls Download PDF

Info

Publication number
CN103455342B
CN103455342B CN201310224007.7A CN201310224007A CN103455342B CN 103455342 B CN103455342 B CN 103455342B CN 201310224007 A CN201310224007 A CN 201310224007A CN 103455342 B CN103455342 B CN 103455342B
Authority
CN
China
Prior art keywords
theme
classloader
data
mobile terminal
interface class
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.)
Expired - Fee Related
Application number
CN201310224007.7A
Other languages
Chinese (zh)
Other versions
CN103455342A (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.)
Guangzhou Jiubang Digital Technology Co Ltd
Original Assignee
Guangzhou Jiubang Digital Technology Co 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 Guangzhou Jiubang Digital Technology Co Ltd filed Critical Guangzhou Jiubang Digital Technology Co Ltd
Priority to CN201310224007.7A priority Critical patent/CN103455342B/en
Publication of CN103455342A publication Critical patent/CN103455342A/en
Application granted granted Critical
Publication of CN103455342B publication Critical patent/CN103455342B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

The present invention provides a kind of method that theme calls, including: mobile terminal carries out structure verification to the file data of storage, determine uninstalled subject data, described mobile terminal creates Classloader corresponding to described uninstalled subject data and theme interface class data, described mobile terminal is by theme interface class data described in described Classloader dynamic load, and show the theme interface after described loading, complete described in calling of theme is not installed.Correspondingly, the present invention also provides for the device that a kind of theme calls, and solves need to be mounted so that the theme problem that causes mobile terminal resource to waste, has saved the resource of mobile terminal, improve Consumer's Experience.

Description

The method and device that a kind of theme calls
Technical field
The present invention relates to areas of information technology, be specifically related to the method and device that a kind of theme calls.
Background technology
Mobile terminal topic is the interface that user touches at first when using mobile terminal device, and the theme of usual smart mobile terminal platform is provided with several functions module in zones of different, such as mobile terminal note, incoming call prompting, dialing, alarm clock etc..All must pass through mobile terminal topic owing to carrying out any operation with mobile terminal, therefore, the setting of mobile terminal topic is to embody individual subscriber hobby and represent the window of individual character.User is no longer satisfied with carrying at a few money mobile terminals switching between user interface, and proposes more diversified mobile terminal desktop demand.To this end, mobile terminal topic related service is also gradually being upgraded, not only occur in that the standby wall paper that can freely change, have also appeared some mobile terminal topic plug-in units that can replace.These mobile terminal topics are encapsulated in theme installation kit, as Android (Android) system uses APK(Android Package) installation kit, issue on the resource platform that user can obtain, download for user.
In prior art, realize the loading of theme bag or call, needing the installation theme packet procedures through standard, for each theme, mobile terminal is required to just can use first installing, Consumer's Experience can be caused to decline, and installing and need there is the amount of storage of mobile phone EMS memory certain taking, the theme once installed is too much, then mobile phone resources is few, correspondingly operational efficiency step-down, causes the wasting of resources of mobile terminal.
Summary of the invention
It is an object of the invention to overcome weak point of the prior art, it is provided that the method and device that a kind of theme calls, solve need to be mounted so that the theme problem that causes mobile terminal resource to waste, saved the resource of mobile terminal, improve Consumer's Experience.
The embodiment of the present invention provides a kind of method that theme calls, including:
Mobile terminal carries out structure verification to the file data of storage, determines uninstalled subject data;
Described mobile terminal creates Classloader corresponding to described uninstalled subject data and theme interface class data;
Described mobile terminal is by theme interface class data described in described Classloader dynamic load, and shows the theme interface after described loading, complete described in calling of theme is not installed.
The embodiment of the present invention also provides for the device that a kind of theme calls, it is characterised in that including:
Determine unit, for the file data of storage is carried out structure verification, determine uninstalled subject data;
Creating unit, for creating Classloader corresponding to described uninstalled subject data and theme interface class data;
Loading unit, for by theme interface class data described in described Classloader dynamic load;
Display unit, for showing the theme interface after described loading, complete described in calling of theme is not installed.
The method and device provided by the embodiment of the present invention, mobile terminal carries out structure verification to the file data of storage, determine uninstalled subject data, create Classloader corresponding to described uninstalled subject data and theme interface class data, by theme interface class data described in described Classloader dynamic load, and show the theme interface after described loading, calling of theme is not installed described in completing, solve need to be mounted so that the theme problem that causes mobile terminal resource to waste, save the resource of mobile terminal, improve Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, in describing embodiment below, the required accompanying drawing used is briefly described, apparently, accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method flow diagram of the embodiment of the present invention one;
Fig. 2 is the device composition diagram of the embodiment of the present invention two.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained on the premise of not making creative work, broadly fall into the scope of protection of the invention.
Embodiment one
Fig. 1 is the method flow diagram of embodiment one, as it is shown in figure 1, the method that theme calls is as follows:
S101. mobile terminal carries out structure verification to the file data of storage, determines uninstalled subject data;
Mobile terminal storage file data, on safe digital card (Secure Digital Memory Card, SD) card, by scanning the file that SD card is specified, obtains the file data of storage.
It should be noted that mobile terminal determines uninstalled subject data, specific as follows:
Mobile terminal is verified whether described file data meets and described default is not installed theme form, filters out the file data not installing theme form described in meeting, described in meet described in not install the file data of theme form be described uninstalled subject data.Such as, the name form of the theme bag preset is
" com.jiubang.goscreenlock.theme.* ", * is any character, then need to filter the file data of the entitled above-mentioned name form of file, and this document data are does not installs subject data.
The most described mobile terminal creates Classloader corresponding to described uninstalled subject data and theme interface class data;
Described mobile terminal can create Classloader corresponding to described uninstalled subject data and theme interface class data by the method creating example.
The most described mobile terminal is by theme interface class data described in described Classloader dynamic load, and shows the theme interface after described loading, complete described in calling of theme is not installed.
At described mobile terminal by theme interface class data described in described Classloader dynamic load, and before showing the theme interface after described loading, also include:
Described mobile terminal creates the routing information of described theme interface class data, so that described Classloader carries out dynamic load according to described routing information to described theme interface class data.
Theme interface class data described in terminal dynamic load, specific as follows:
Described mobile terminal creates preliminary examination Classloader, is loaded the Classloader of described establishment by described preliminary examination Classloader, according to the routing information of described theme interface class data, loads described theme interface class data by the Classloader of described establishment.
Dynamic load is the technology of a kind of operationally installation procedure assembly.The dynamic link that many operating systems use is exactly a kind of Dynamic loading technique.After using dynamic link, the symbolic reference in program can just replace to corresponding machine address after program is loaded into internal memory.
In standard implementation, java compiler is that each class of java program generates a class file, and this file uses the class file format of java virtual machine JVM definition to preserve, JVM load and explain execution.In JVM specification, load and link the process being defined as two mutual recurrence.Load and refer to that JVM finds corresponding class file, and the process being installed in running environment by class file according to the class name specified or interface name.Connect and refer to that class file is verified and resolves the process of symbolic reference by JVM.
The important feature that java class loads is exactly lazy loading (lazy load), and the most only when to use this class, system just can load this class.Java class is responsible for loading by Classloader, and classloader class is exactly a basic Classloader.
Can be with the presence of multiple Classloaders in a JVM, they form a tree-shaped framework, root node is initial classes loader (the primordial class loader), it is responsible for realizing the basic function from local loading classes, its right child node is Classloader ClassLoader_URL1, it itself it is a java class, need to be loaded in JVM by other Classloader, load it is exactly initial classes loader, then it can load again other Classloader, such as ClassLoader_URL2, result in formation of the structure of a level.
Each Classloader may serve to loading classes, and same class can in different Classloaders repeated loading, but the most only allow to load once on same class loader.In JVM, each class being loaded is determined by two information, and one is the name of class, a Classloader being to load this class.Having three kinds of methods can load a class: 1, the loading classes method directly invoking a classloader example carrys out loading classes, then the Classloader of this class is exactly invoked classloader example;2, utilize the forName static method of class to load a class, this method both can specify a Classloader, it is also possible to does not specifies;3, create an object with new keyword or perform the static method of a class, system can load such with the Classloader of acquiescence, and Classloader of its acquiescence is carried out the Classloader that the class of this creation method is corresponding.
The method provided by the embodiment of the present invention, mobile terminal carries out structure verification to the file data of storage, determine uninstalled subject data, create Classloader corresponding to described uninstalled subject data and theme interface class data, by theme interface class data described in described Classloader dynamic load, and show the theme interface after described loading, calling of theme is not installed described in completing, solve need to be mounted so that the theme problem that causes mobile terminal resource to waste, save the resource of mobile terminal, improve Consumer's Experience.
Embodiment two
Fig. 2 is the device composition diagram that theme calls, as in figure 2 it is shown, this device includes:
Determine unit 201, for the file data of storage is carried out structure verification, determine uninstalled subject data;
Determine that unit 201 carries out structure verification to the data of storage it should be noted that described, determine uninstalled subject data, including:
Determine that unit 201 is verified whether described file data meets and described default do not installed theme form, filter out the file data not installing theme form described in meeting, described in meet described in not install the file data of theme form be described uninstalled subject data.
Creating unit 202, for creating Classloader corresponding to described uninstalled subject data and theme interface class data;
Described creating unit 202 is additionally operable to: create the routing information of described theme interface class data, so that described loading unit is according to described routing information, by described Classloader, described theme interface class data is carried out dynamic load.
Loading unit 203, for by theme interface class data described in described Classloader dynamic load;
Wherein, loading unit 203 by theme interface class data described in described Classloader dynamic load, particularly as follows:
Loading unit 203 creates preliminary examination Classloader, is loaded the Classloader of described establishment by described preliminary examination Classloader, according to the routing information of described theme interface class data, loads described theme interface class data by the Classloader of described establishment.
Display unit 204, for showing the theme interface after described loading, complete described in calling of theme is not installed.
The device provided by the embodiment of the present invention, determine that unit 201 carries out structure verification to the file data of storage, determine uninstalled subject data, creating unit 202 creates Classloader corresponding to described uninstalled subject data and theme interface class data, loading unit 203 is by theme interface class data described in described Classloader dynamic load, display unit 204 shows the theme interface after described loading, calling of theme is not installed described in completing, solve need to be mounted so that the theme problem that causes mobile terminal resource to waste, save the resource of mobile terminal, improve Consumer's Experience.
One of ordinary skill in the art will appreciate that: accompanying drawing is the schematic diagram of an embodiment, unit or flow process in accompanying drawing are not necessarily implemented necessary to the present invention.
In several embodiments provided herein, it should be understood that disclosed system, equipment and method, can realize by another way.Such as, apparatus embodiments described above is only schematically, such as, the division of described unit, be only a kind of logic function to divide, actual can have when realizing other dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can ignore, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, equipment or unit or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, and the parts shown as unit can be or may not be physical location, i.e. may be located at a place, or can also be distributed on multiple NE.Some or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to be that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit and realizes.
The above-mentioned integrated unit realized with the form of SFU software functional unit, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) performs the part steps of method described in each embodiment of the present invention.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (Read-Only Memory, be called for short ROM), random access memory (Random Access Memory, be called for short RAM), the various media that can store program code such as magnetic disc or CD.Last it is noted that above example is only in order to illustrate technical scheme, it is not intended to limit;Although the present invention being described in detail with reference to previous embodiment, it will be understood by those within the art that: the technical scheme described in foregoing embodiments still can be modified by it, or wherein portion of techniques feature is carried out equivalent;And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (6)

1. the method that a theme calls, it is characterised in that including:
Mobile terminal carries out structure verification to the file data of storage, determine uninstalled subject data, described structure verification mode, specially filter out filename meet described in the file data of theme form is not installed, described in meet described in not install the file data of theme form be described uninstalled subject data;
Described mobile terminal creates Classloader corresponding to described uninstalled subject data and theme interface class data;
Described mobile terminal is by theme interface class data described in described Classloader dynamic load, and shows the theme interface after described loading, complete described in calling of theme is not installed.
Method the most according to claim 1, it is characterised in that before described mobile terminal is by theme interface class data described in described Classloader dynamic load, also include:
Described mobile terminal creates the routing information of described theme interface class data, so that described Classloader carries out dynamic load according to described routing information to described theme interface class data.
Method the most according to claim 2, it is characterised in that described mobile terminal by theme interface class data described in described Classloader dynamic load, including:
Described mobile terminal creates preliminary examination Classloader;
Described mobile terminal loads the Classloader of described establishment by described preliminary examination Classloader;
Described mobile terminal, according to the routing information of described theme interface class data, loads described theme interface class data by the Classloader of described establishment.
4. the device that a theme calls, it is characterised in that including:
Determine unit, for the file data of storage is carried out structure verification, determine uninstalled subject data, described structure verification mode, specially filter out filename meet described in the file data of theme form is not installed, described in meet described in not install the file data of theme form be described uninstalled subject data;
Creating unit, for creating Classloader corresponding to described uninstalled subject data and theme interface class data;
Loading unit, for by theme interface class data described in described Classloader dynamic load;
Display unit, for showing the theme interface after described loading, complete described in calling of theme is not installed.
Device the most according to claim 4, it is characterized in that, described creating unit is additionally operable to: create the routing information of described theme interface class data, so that described loading unit is according to described routing information, by described Classloader, described theme interface class data is carried out dynamic load.
Device the most according to claim 5, it is characterised in that described loading unit by theme interface class data described in described Classloader dynamic load, including:
Create preliminary examination Classloader;
The Classloader of described establishment is loaded by described preliminary examination Classloader;
According to the routing information of described theme interface class data, load described theme interface class data by the Classloader of described establishment.
CN201310224007.7A 2013-06-06 2013-06-06 The method and device that a kind of theme calls Expired - Fee Related CN103455342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310224007.7A CN103455342B (en) 2013-06-06 2013-06-06 The method and device that a kind of theme calls

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310224007.7A CN103455342B (en) 2013-06-06 2013-06-06 The method and device that a kind of theme calls

Publications (2)

Publication Number Publication Date
CN103455342A CN103455342A (en) 2013-12-18
CN103455342B true CN103455342B (en) 2016-08-10

Family

ID=49737749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310224007.7A Expired - Fee Related CN103455342B (en) 2013-06-06 2013-06-06 The method and device that a kind of theme calls

Country Status (1)

Country Link
CN (1) CN103455342B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216751B (en) * 2014-09-30 2018-01-12 广州猎豹网络科技有限公司 The loading method and system of a kind of functional unit interface resources of application program
CN110737493A (en) * 2019-09-02 2020-01-31 华为技术有限公司 theme switching method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102007041873A1 (en) * 2007-09-04 2009-03-05 Giesecke & Devrient Gmbh Patch installing method for e.g. object oriented programming language card in mobile phone, involves forming class hierarchy using classes in program package, and including patch in class hierarchy as subclass of one of classes
CN101719075A (en) * 2009-12-29 2010-06-02 中兴通讯股份有限公司 Method for switching theme of Java virtual machine and terminal device
CN101771762A (en) * 2009-01-06 2010-07-07 北京邮电大学 Method and system for dynamically loading services in service system
CN102789357A (en) * 2012-06-18 2012-11-21 宇龙计算机通信科技(深圳)有限公司 Method and device for setting subject resources based on Andriod application technology

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102007041873A1 (en) * 2007-09-04 2009-03-05 Giesecke & Devrient Gmbh Patch installing method for e.g. object oriented programming language card in mobile phone, involves forming class hierarchy using classes in program package, and including patch in class hierarchy as subclass of one of classes
CN101771762A (en) * 2009-01-06 2010-07-07 北京邮电大学 Method and system for dynamically loading services in service system
CN101719075A (en) * 2009-12-29 2010-06-02 中兴通讯股份有限公司 Method for switching theme of Java virtual machine and terminal device
CN102789357A (en) * 2012-06-18 2012-11-21 宇龙计算机通信科技(深圳)有限公司 Method and device for setting subject resources based on Andriod application technology

Also Published As

Publication number Publication date
CN103455342A (en) 2013-12-18

Similar Documents

Publication Publication Date Title
CN103970563B (en) The method of dynamic load Android class
CN111475227B (en) Business plug-in loading implementation method and device and terminal equipment
CN105867947B (en) Data processing method and device after preset application program updating
CN103902265A (en) Application implementation method and application implementation device
CN104714828A (en) Methods and devices for installing and operating application
CN104216741A (en) Android plug-in implementation method and device based on APK (Android Package) dynamic loading and interaction method
CN103810416A (en) Software installation or uninstallation method and device
CN110018765B (en) Page display method, device, terminal and storage medium
EP2701059A1 (en) Method and apparatus for loading application program
CN108647032B (en) Application loading method and apparatus, computer apparatus and computer-readable storage medium
CN110457925B (en) Application data isolation method, device, terminal and storage medium in internal and external storage
CN105302563A (en) Plug-in method and system for mobile application service
CN108228077B (en) Storage area management method, operating method, apparatus, device, and readable medium
CN110908734A (en) Application combination method and device based on plug-in, terminal equipment and storage medium
CN102043645A (en) Plug-in loading method and device
CN103607702B (en) A kind of method and system communicated between different platform in short message service
CN104731626B (en) The installation method and device of application
CN103632090B (en) A kind of virtual machine runs the method for virtual firewall
JP2016533588A (en) Storage processing method, apparatus and terminal
CN103455342B (en) The method and device that a kind of theme calls
CN106775916B (en) Method and device for reducing application installation packages and electronic equipment
CN102664929A (en) Mobile terminal and method for managing mass storage device
CN112835639B (en) Hook realization method, device, equipment, medium and product
CN113282363A (en) Method and device for optimizing hybrid APP
CN111142972A (en) Method, apparatus, system, and medium for extending functions of application 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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160810

Termination date: 20190606