CN103455342A - Theme calling method and device - Google Patents

Theme calling method and device Download PDF

Info

Publication number
CN103455342A
CN103455342A CN2013102240077A CN201310224007A CN103455342A CN 103455342 A CN103455342 A CN 103455342A CN 2013102240077 A CN2013102240077 A CN 2013102240077A CN 201310224007 A CN201310224007 A CN 201310224007A CN 103455342 A CN103455342 A CN 103455342A
Authority
CN
China
Prior art keywords
theme
data
classloader
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.)
Granted
Application number
CN2013102240077A
Other languages
Chinese (zh)
Other versions
CN103455342B (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

Images

Landscapes

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

Abstract

The invention provides a theme calling method. The method includes: a mobile terminal verifies the structure of stored file data to determine uninstalled theme data; the mobile terminal creates a class loader, corresponding to the uninstalled theme data, and theme interface class data; the mobile terminal dynamically loads the theme interface class data through the class loader and displays a loaded theme interface to complete calling of an uninstalled theme. Correspondingly, the invention further provides a theme calling device. The theme calling method and device has the advantages that the problem that the need to install themes causes waste of mobile terminal sources is solved, resources of the mobile terminal are saved, and user experience is improved.

Description

A kind of method that theme calls and device
Technical field
The present invention relates to areas of information technology, be specifically related to method and device that a kind of theme calls.
Background technology
Mobile terminal topic is the interface that the user touches at first when using mobile terminal device, and the theme of intelligent mobile terminal platform is provided with the several functions module in zones of different usually, as mobile terminal note, incoming call prompting, dialing, alarm clock etc.All must be by mobile terminal topic owing to carrying out any operation with mobile terminal, therefore, the setting of mobile terminal topic is the window that embodies the individual subscriber hobby and represent individual character.The user no longer is satisfied with at a few money mobile terminals and carries between user interface and switch, and has proposed more diversified mobile terminal desktop demand.For this reason, the mobile terminal topic related service also, in upgrading gradually, the standby wall paper that can freely change not only occurred, the mobile terminal topic plug-in unit that some can be replaced also occurred.These mobile terminal topics are encapsulated in the theme installation kit, as Android (Android) system adopts APK(Android Package) installation kit, be distributed on the resource platform that the user can obtain, for the user, download.
In prior art, realize the loading of theme bag or call, need the installation theme packet procedures through standard, for each theme, mobile terminal all needs can be used first installing, can cause the user to experience decline, and install certain taking need to be arranged the memory space of mobile phone EMS memory, once the theme of installing is too much, mobile phone resources is few, correspondingly the operational efficiency step-down, cause the wasting of resources of mobile terminal.
Summary of the invention
The objective of the invention is to overcome weak point of the prior art, the method and the device that provide a kind of theme to call, solved because needs are installed the problem that theme causes the mobile terminal resource waste, and the resource of having saved mobile terminal, improved user's experience.
A kind of method that the embodiment of the present invention provides theme to call comprises:
Mobile terminal carries out structure verification to the file data of storage, determines uninstalled subject data;
Described mobile terminal creates corresponding Classloader and the theme interface class data of described uninstalled subject data;
Described mobile terminal is by the described theme of described Classloader dynamic load interface class data, and shows the theme interface after described loading, completes described the calling of theme of not installing.
The device that the embodiment of the present invention also provides a kind of theme to call, is characterized in that, comprising:
Determining unit, carry out structure verification for the file data to storage, determines uninstalled subject data;
Creating unit, for creating Classloader and the theme interface class data that described uninstalled subject data is corresponding;
Loading unit, for by the described theme of described Classloader dynamic load interface class data;
Display unit, for showing the theme interface after described loading, complete described the calling of theme of not installing.
The method provided by the embodiment of the present invention and device, mobile terminal carries out structure verification to the file data of storage, determine uninstalled subject data, create Classloader and theme interface class data that described uninstalled subject data is corresponding, by the described theme of described Classloader dynamic load interface class data, and show the theme interface after described loading, complete described the calling of theme of not installing, solved because needs are installed the problem that theme causes the mobile terminal resource waste, save the resource of mobile terminal, improved user's experience.
The accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, in below describing embodiment, the accompanying drawing of required use is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the method flow diagram of the embodiment of the present invention one;
Fig. 2 is the installation composition figure of the embodiment of the present invention two.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the present invention 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 the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, the every other embodiment that those of ordinary skills obtain under the prerequisite of not making creative work, belong to the scope of protection of the invention.
Embodiment mono-
Fig. 1 is the method flow diagram of embodiment mono-, and as 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;
The mobile terminal stores file data is on safe digital card (Secure Digital Memory Card, SD) card, and the file by the appointment of scanning SD card, obtain the file data of storage.
It should be noted that, mobile terminal is determined uninstalled subject data, specific as follows:
Mobile terminal verifies whether described file data meets described default not installation theme form, filters out and meets the described file data that the theme form is not installed, and described to meet the described file data that the theme form is not installed be described uninstalled subject data.For example, the name form of default theme bag is
" com.jiubang.goscreenlock.theme.* ", * is any character, needs the file data of kill file above-mentioned name form by name, this document data are does not install subject data.
S102. described mobile terminal creates corresponding Classloader and the theme interface class data of described uninstalled subject data;
Described mobile terminal can create corresponding Classloader and the theme interface class data of described uninstalled subject data by the method that creates example.
S103. described mobile terminal is by the described theme of described Classloader dynamic load interface class data, and shows the theme interface after described loading, completes described the calling of theme of not installing.
At described mobile terminal, by the described theme of described Classloader dynamic load interface class data, and, before showing the theme interface after described loading, also comprise:
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.
The described theme of terminal terminal dynamic load interface class data, specific as follows:
Described mobile terminal creates the preliminary examination Classloader, loads the Classloader of described establishment by described preliminary examination Classloader, and according to the routing information of described theme interface class data, the Classloader by described establishment loads described theme interface class data.
Dynamic load is a kind of technology at when operation installation procedure assembly.The dynamic link that much operating system is used 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, each class that the java compiler is the java program generates a class file, and this file adopts the class file format of java virtual machine JVM definition to preserve, and by JVM, loads and explain execution.In the JVM standard, load and link the process that is defined by two mutual recurrence.Loading refers to that JVM finds corresponding class file according to class name or the interface name of appointment, and class file is installed to the process in running environment.Connect and refer to that JVM is verified and resolve the process of symbolic reference to class file.
The important feature that java class loads is exactly lazy load (lazy load), only has in the time will using this class, and system just can load this class.Java class is responsible for loading by Classloader, and the classloader class is exactly a basic Classloader.
In a JVM, can there be a plurality of Classloaders to exist, they form a tree-shaped framework, root node is initial classes loader (the primordial class loader), be responsible for realizing the basic function from local loading classes, its right child node is Classloader ClassLoader_URL1, it itself is a java class, need to by other Classloader, be loaded in JVM, what load it is exactly the initial classes loader, then it can load other Classloader again, as ClassLoader_URL2, formed like this structure of a level.
Each Classloader can be used for loading classes, and same class can be in different Classloaders repeated loading, but on the same class loader, just only allow to load once.In JVM, each class be loaded determined by two information, and one is the name of class, and one is the Classloader that loads this class.Have three kinds of methods can load a class: 1, directly call the loading classes method of a classloader example and carry out loading classes, the Classloader of this class is exactly invoked classloader example so; 2, utilize the forName static method of class to load a class, this method both can have been specified a Classloader, also can not specify; 3, create an object or carry out the static method of a class with the new key word, system can load such with the Classloader of acquiescence, and the Classloader of its acquiescence is Classloader corresponding to class of carrying out this creation method.
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 and theme interface class data that described uninstalled subject data is corresponding, by the described theme of described Classloader dynamic load interface class data, and show the theme interface after described loading, complete described the calling of theme of not installing, solved because needs are installed the problem that theme causes the mobile terminal resource waste, save the resource of mobile terminal, improved user's experience.
Embodiment bis-
Fig. 2 is the installation composition figure that theme calls, and as shown in Figure 2, this device comprises:
Determining unit 201, carry out structure verification for the file data to storage, determines uninstalled subject data;
It should be noted that, the data of 201 pairs of storages of described determining unit are carried out structure verification, determine uninstalled subject data, comprising:
Whether the described file data of determining unit 201 checking meets described default not installation theme form, filters out and meets the described file data that the theme form is not installed, and described to meet the described file data that the theme form is not installed be described uninstalled subject data.
Creating unit 202, for creating Classloader and the theme interface class data that described uninstalled subject data is corresponding;
Described creating unit 202 also for: create the routing information of described theme interface class data, so that described loading unit, according to described routing information, carries out dynamic load by described Classloader to described theme interface class data.
Loading unit 203, for by the described theme of described Classloader dynamic load interface class data;
Wherein, loading unit 203, by the described theme of described Classloader dynamic load interface class data, is specially:
Loading unit 203 creates the preliminary examination Classloaders, loads the Classloader of described establishment by described preliminary examination Classloader, and according to the routing information of described theme interface class data, the Classloader by described establishment loads described theme interface class data.
Display unit 204, for showing the theme interface after described loading, complete described the calling of theme of not installing.
The device provided by the embodiment of the present invention, the file data of 201 pairs of storages of determining unit carries out structure verification, determine uninstalled subject data, creating unit 202 creates corresponding Classloader and the theme interface class data of described uninstalled subject data, loading unit 203 is by the described theme of described Classloader dynamic load interface class data, display unit 204 shows the theme interface after described loading, complete described the calling of theme of not installing, solved because needs are installed the problem that theme causes the mobile terminal resource waste, saved the resource of mobile terminal, improved user's experience.
One of ordinary skill in the art will appreciate that: accompanying drawing is the schematic diagram of an embodiment, and the unit in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
In the several embodiment that provide in the application, should be understood that, disclosed system, equipment and method, can realize by another way.For example, apparatus embodiments described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual the realization, other dividing mode can be arranged, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, the indirect coupling of equipment or unit or communication connection can be electrically, machinery or other form.
The described unit as the separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed on a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the purpose of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, the form that also can adopt hardware to add SFU software functional unit realizes.
The integrated unit that the above-mentioned form with SFU software functional unit realizes, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, comprise some instructions with so that computer equipment (can be personal computer, server, or the network equipment etc.) carry out the part steps of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (Read-Only Memory, abbreviation ROM), the various media that can be program code stored such as random access memory (Random Access Memory is called for short RAM), magnetic disc or CD.Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment, the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: its technical scheme that still can put down in writing aforementioned each embodiment is modified, or part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (8)

1. the method that theme calls, is characterized in that, comprising:
Mobile terminal carries out structure verification to the file data of storage, determines uninstalled subject data;
Described mobile terminal creates corresponding Classloader and the theme interface class data of described uninstalled subject data;
Described mobile terminal is by the described theme of described Classloader dynamic load interface class data, and shows the theme interface after described loading, completes described the calling of theme of not installing.
2. method according to claim 1, is characterized in that, described mobile terminal, by before the class data of the described theme of described Classloader dynamic load interface, also comprises:
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.
3. method according to claim 2, is characterized in that, described mobile terminal, by the described theme of described Classloader dynamic load interface class data, comprising:
Described mobile terminal creates the preliminary examination Classloader;
Described mobile terminal loads the Classloader of described establishment by described preliminary examination Classloader;
Described mobile terminal is according to the routing information of described theme interface class data, and the Classloader by described establishment loads described theme interface class data.
4. according to the described method of claim 1-3 any one, it is characterized in that, described mobile terminal carries out structure verification to the data of storage, determines uninstalled subject data, comprising:
Verify whether described file data meets described default not installation theme form, filters out and meets the described file data that the theme form is not installed, described to meet the described file data that the theme form is not installed be described uninstalled subject data.
5. the device that theme calls, is characterized in that, comprising:
Determining unit, carry out structure verification for the file data to storage, determines uninstalled subject data;
Creating unit, for creating Classloader and the theme interface class data that described uninstalled subject data is corresponding;
Loading unit, for by the described theme of described Classloader dynamic load interface class data;
Display unit, for showing the theme interface after described loading, complete described the calling of theme of not installing.
6. device according to claim 5, it is characterized in that, described creating unit also for: create the routing information of described theme interface class data, so that described loading unit, according to described routing information, carries out dynamic load by described Classloader to described theme interface class data.
7. device according to claim 6, is characterized in that, described loading unit, by the described theme of described Classloader dynamic load interface class data, comprising:
Create the preliminary examination Classloader;
Load the Classloader of described establishment by described preliminary examination Classloader;
According to the routing information of described theme interface class data, the Classloader by described establishment loads described theme interface class data.
8. according to the described device of claim 5-7 any one, it is characterized in that, described determining unit is carried out structure verification to the data of storage, determines uninstalled subject data, comprising:
Verify whether described file data meets described default not installation theme form, filters out and meets the described file data that the theme form is not installed, described to meet the described file data that the theme form is not installed be described uninstalled subject data.
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 true CN103455342A (en) 2013-12-18
CN103455342B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216751A (en) * 2014-09-30 2014-12-17 广州金山网络科技有限公司 Loading method and system of functional unit interface resource of application program
WO2021042978A1 (en) * 2019-09-02 2021-03-11 华为技术有限公司 Theme switching method and theme switching apparatus

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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216751A (en) * 2014-09-30 2014-12-17 广州金山网络科技有限公司 Loading method and system of functional unit interface resource of application program
CN104216751B (en) * 2014-09-30 2018-01-12 广州猎豹网络科技有限公司 The loading method and system of a kind of functional unit interface resources of application program
WO2021042978A1 (en) * 2019-09-02 2021-03-11 华为技术有限公司 Theme switching method and theme switching apparatus
CN114556294A (en) * 2019-09-02 2022-05-27 华为技术有限公司 Theme switching method and theme switching device

Also Published As

Publication number Publication date
CN103455342B (en) 2016-08-10

Similar Documents

Publication Publication Date Title
CN105867947B (en) Data processing method and device after preset application program updating
US11221838B2 (en) Hot update method, operating system, terminal device, system, and computer-readable storage medium for a system process
CN104951326B (en) Webpage access method and device
CN103970563B (en) The method of dynamic load Android class
CN111475227B (en) Business plug-in loading implementation method and device and terminal equipment
CN103902265A (en) Application implementation method and application implementation device
CN106776067B (en) Method and device for managing system resources in multi-container system
CN110018765B (en) Page display method, device, terminal and storage medium
CN111338854A (en) Kubernetes cluster-based method and system for quickly recovering data
CN103530156A (en) Method and device for dynamically loading and calling program
CN106406944A (en) Control method and system for forbidding self-starting of application
CN104731622B (en) The loading method of a kind of application program, device and mobile terminal
CN103810416A (en) Software installation or uninstallation method and device
CN108647032B (en) Application loading method and device, computer device and computer readable storage medium
CN105302563A (en) Plug-in method and system for mobile application service
CN104750528A (en) Management method and device for components in Android program
CN109582385A (en) Application program launching method and device, storage medium and electronic equipment
CN103729210A (en) Method and device for supporting intelligent terminals of multiple sorts of modes with one flashing package
CN110908734A (en) Application combination method and device based on plug-in, terminal equipment and storage medium
CN103049708A (en) Audit configuration method and audit configuration system for database
CN110457925A (en) Data isolation method, device, terminal and storage medium are applied in the storage of inside and outside
JP2016533588A (en) Storage processing method, apparatus and terminal
EP2372565A1 (en) Method for managing USB devices
CN110399168A (en) Majority according to disk storage server system start method, device and equipment
CN103455342B (en) The method and device that a kind of theme calls

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