CN102801749B - A kind of dispositions method of J2ME application program and device - Google Patents
A kind of dispositions method of J2ME application program and device Download PDFInfo
- Publication number
- CN102801749B CN102801749B CN201110137163.0A CN201110137163A CN102801749B CN 102801749 B CN102801749 B CN 102801749B CN 201110137163 A CN201110137163 A CN 201110137163A CN 102801749 B CN102801749 B CN 102801749B
- Authority
- CN
- China
- Prior art keywords
- adaptive
- mobile phone
- version
- file
- type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The present invention proposes a kind of dispositions method and device of J2ME application program, belong to computer realm, the present invention is by obtaining the characteristic information of adaptive mobile phone type, be generalized into configuration item, by in the configuration item in Jad file corresponding with adaptive mobile phone type for characteristic information write, obtain the Jad file of adaptive version respectively, transplanting is carried out adaptive according to the Jar file of characteristic information to general-purpose version of adaptive mobile phone type, and set up processing logic with the configuration item in the Jad file of adaptive version, obtain the Jar file of common adaptive version, and the Jad file of adaptive version and Jar Documents Department are deployed in download server, can greatly reduce and transplant adaptive version quantity, realize quick type and transplant adaptive issue, only need to increase Jad file during newly-increased type to be configured, reduce version test job, reduce and issue link workload and version operation amount, reduce the maintenance work of code branches.
Description
Technical field
The present invention relates to computer realm, particularly a kind of dispositions method of J2ME application program and device.
Background technology
Cell phone software developer is when developing a versatility J2ME application program (such as mobile phone browser), wish to run on mobile phone as much as possible, although J2ME program can cross-platformly be run, but in a practical situation, mobile phone terminal J2ME running environment is very complicated, does not in fact accomplish that the J2ME application program developed can be run on all mobile phones.Because cell phone manufacturer is numerous, mobile phone terminal is various to vary, and the storage of mobile phone operational capability, screen size, keyboard, internal memory, file, virtual machine etc. are all different, makes the compatible all mobile phone terminals of a J2ME application program be very difficult.
In order to enable J2ME application program be applicable to most of mobile phone, the method that the current stage adopts is, the diplomatic the highest hundreds of money type of occupation rate of market of choosing carries out transplanting adaptation, and issues J2ME application program by WAP website.As shown in Figure 1, the J2ME application program of different mobile phone is provided to download as example is described with OTA (Over-the-AirTechnology, over the air) download server.When issue J2ME application program, can provide a general version, being applicable to major part does not have the specific mobile phone of type.The mobile phone of general version can not be used then to need to transplant adaptation, independent released version, and the adaptive version of every money all generates the issue bag of a Jar and Jad file, is deployed to OTA download server.When user downloads and installs handset program, guide the page by WAP, select the adaptive version that type is corresponding, download Jad and Jar file respectively from OTA server, be installed on user mobile phone.
Realize in process of the present invention inventor, inventor finds that prior art at least exists following shortcoming:
Transplant adaptive version to have revised on general version basis, most of code is identical, only has a small amount of particular code to need amendment.The issue of the adaptive version of each transplanting, all needs to do complete system testing, carry out code branches safeguard and relevant documentation put on record; Transplant adaptive version issue Review Workflow identical with general version.Increase along with the adaptive version of transplanting is issued, the work of each working link all can increase at double, and the operation of each version follow-up, safeguards and the workload of upgrading also can increase greatly.
Summary of the invention
In order to solve problems of the prior art, the present invention proposes a kind of dispositions method and device of J2ME application program.Described technical scheme is as follows:
A dispositions method for J2ME application program, described method comprises:
Obtain the characteristic information of adaptive mobile phone type, and be generalized into configuration item;
By in the configuration item in Jad file corresponding with described adaptive mobile phone type for the write of the characteristic information of described adaptive mobile phone type, obtain the Jad file of adaptive version corresponding to described adaptive mobile phone type;
Carry out transplanting according to the Jar file of described configuration item to general-purpose version adaptive, and set up processing logic with the configuration item in the Jad file of described adaptive version, obtain the Jar file of common adaptive version;
The Jar file of the Jad file of described adaptive version with described adaptive version is associated, the characteristic information of the described adaptive mobile phone type of its correspondence is configured with in the Jad file of described adaptive version, the Jar file of described adaptive version is applicable to mobile phone type corresponding to the Jad file of all adaptive versions, and carries out logical process according to the characteristic information of mobile phone type corresponding to the J2ME application program of adaptive version;
The Jad file of adaptive version corresponding for described adaptive mobile phone type and the Jar Documents Department of described adaptive version are deployed in J2ME application download servers.
Further, when being write in the configuration item in the Jad file corresponding with described adaptive mobile phone type by the characteristic information of described adaptive mobile phone type, described method also comprises:
When described adaptive mobile phone type does not comprise the characteristic in described configuration item, configuration item corresponding for the described characteristic in Jad file corresponding for described adaptive mobile phone type is set as default value.
Further, before the described Jad Documents Department by adaptive version corresponding for described adaptive mobile phone type is deployed in J2ME application download servers, described method also comprises:
The address information of the Jar file of described adaptive version is write in the Jad file of adaptive version corresponding to described adaptive mobile phone type.
Further, described method also comprises:
The Jad file of deployment general version and Jar file are in described J2ME application download servers.
Further, described the Jad file of adaptive version corresponding for described adaptive mobile phone type and the Jar Documents Department of described adaptive version are deployed in J2ME application download servers after, described method also comprises:
Obtain the characteristic information of the type that adds your mobile phone;
Whether the characteristic information of type of adding your mobile phone described in judgement configures in the Jad file of existing adaptive version;
If so, then generate the Jad file of new adaptive version, and be deployed in described J2ME application download servers;
If not, then generate the Jad file of new adaptive version, and the configuration item that the characteristic information of the type that adds your mobile phone described in increasing in the Jad file of described adaptive version is newly corresponding, according to the Jar file of the described adaptive version of configuration item upgrading corresponding to the characteristic information of the described type that adds your mobile phone, and the processing logic that configuration item corresponding to the characteristic information of type of adding your mobile phone described in increasing in the Jar file of described adaptive version is corresponding.
A deployment devices for J2ME application program, described device comprises:
Configuration item acquisition module, for obtaining the characteristic information of adaptive mobile phone type, and is generalized into configuration item;
First file acquisition module, for by the configuration item in Jad file corresponding with described adaptive mobile phone type for the write of the characteristic information of described adaptive mobile phone type, obtains the Jad file of adaptive version corresponding to described adaptive mobile phone type;
Second file acquisition module, adaptive for carrying out transplanting according to the Jar file of described configuration item to general-purpose version, and set up processing logic with the configuration item in the Jad file of described adaptive version, obtain the Jar file of common adaptive version;
First deployment module, for being deployed in J2ME application download servers by the Jad file of adaptive version corresponding for described adaptive mobile phone type and the Jar Documents Department of described adaptive version;
Described device is also for associating the Jar file of the Jad file of described adaptive version with described adaptive version, the characteristic information of the described adaptive mobile phone type of its correspondence is configured with in the Jad file of described adaptive version, the Jar file of described adaptive version is applicable to mobile phone type corresponding to the Jad file of all adaptive versions, and carries out logical process according to the characteristic information of mobile phone type corresponding to the J2ME application program of adaptive version.
Further, described device also comprises:
Default setting module, for when the characteristic information of described adaptive mobile phone type writes in the configuration item in the Jad file corresponding with described adaptive mobile phone type by described first file acquisition module, if adaptive mobile phone type does not comprise the characteristic in described configuration item, configuration item corresponding for the described characteristic in Jad file corresponding for described adaptive mobile phone type is set as default value.
Further, described device also comprises:
Address information writing module, before being deployed in J2ME application download servers in described first deployment module by the Jad Documents Department of adaptive version corresponding for described adaptive mobile phone type, in the Jad file of adaptive version corresponding to described adaptive mobile phone type, write the address information of the Jar file of described adaptive version.
Further, described device also comprises:
Second deployment module, for disposing the Jad file of general version and Jar file to described J2ME application download servers.
Further, described device also comprises:
Newly-increased characteristic acquisition module, after being deployed in described J2ME application download servers in described first deployment module by the Jad file of adaptive version corresponding for described adaptive mobile phone type and the Jar Documents Department of described adaptive version, obtain the characteristic information of the type that adds your mobile phone;
Judge module, whether the characteristic information for the type that adds your mobile phone described in judging configures in the Jad file of existing adaptive version;
First update module, when characteristic information for the type that adds your mobile phone described in judging when described judge module has done configuration in the Jad file of existing adaptive version, then generate the Jad file of new adaptive version, and be deployed in described J2ME application download servers;
Second update module, when characteristic information for the type that adds your mobile phone described in judging when described judge module does not configure in the Jad file of existing adaptive version, generate the Jad file of new adaptive version, and the configuration item that the characteristic information of the type that adds your mobile phone described in increasing in the Jad file of described adaptive version is newly corresponding, according to the characteristic information of the described type that adds your mobile phone corresponding configuration item upgrading described adaptive version Jar file, and the processing logic that configuration item corresponding to the characteristic information of type of adding your mobile phone described in increasing in the Jar file of described adaptive version is corresponding.
The beneficial effect of the technical scheme that the embodiment of the present invention provides is: can greatly reduce and transplant adaptive version quantity, realize quick type and transplant adaptive issue, only need to increase Jad file during newly-increased type to be configured, reduce version test job, reduce and issue link workload and version operation amount, reduce the maintenance work of code branches.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, to the accompanying drawing used in embodiment be done and introduced simply below, apparently, listed accompanying drawing is only some embodiments of the present invention below, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 provides the deployment schematic diagram of J2ME application program for the OTA download server provided in background technology of the present invention;
The dispositions method flow chart of a kind of J2ME application program that Fig. 2 provides for the embodiment of the present invention 1;
The dispositions method flow chart of a kind of J2ME application program that Fig. 3 provides for the embodiment of the present invention 2;
The OTA download server that the use method provided by the invention that Fig. 4 provides for the embodiment of the present invention 2 obtains provides the deployment schematic diagram of J2ME application program;
The structural representation of the deployment devices of a kind of J2ME application program that Fig. 5 provides for the embodiment of the present invention 3;
The second structural representation of the deployment devices of a kind of J2ME application program that Fig. 6 provides for the embodiment of the present invention 3;
The third structural representation of the deployment devices of a kind of J2ME application program that Fig. 7 provides for the embodiment of the present invention 3;
5th kind of structural representation of the deployment devices of a kind of J2ME application program that Fig. 8 provides for the embodiment of the present invention 3.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment 1
The embodiment of the present invention 1 proposes a kind of dispositions method of J2ME application program, and as shown in Figure 2, the method comprises its flow process:
Step 101, obtain the characteristic information of adaptive mobile phone type, and be generalized into configuration item;
Step 102, by the configuration item in the characteristic information of the adaptive mobile phone type write Jad file corresponding with adaptive mobile phone type, obtain the Jad file of adaptive version corresponding to adaptive mobile phone type;
Step 103, to carry out transplanting according to the Jar file of above-mentioned configuration item to general-purpose version adaptive, and set up processing logic with the configuration item in the Jad file of adaptive version, obtains the Jar file of common adaptive version;
Step 104, the Jad file of adaptive version corresponding for adaptive mobile phone type and the Jar Documents Department of adaptive version to be deployed in J2ME application download servers.
The dispositions method of a kind of J2ME application program that the embodiment of the present invention provides, can greatly reduce and transplant adaptive version quantity, realize quick type and transplant adaptive issue, only need to increase Jad file during newly-increased type to be configured, reduce version test job, reduce and issue link workload and version operation amount, reduce the maintenance work of code branches.
Embodiment 2
The embodiment of the present invention 2 proposes a kind of dispositions method of J2ME application program, is to improve on embodiment 1 basis, and its flow process as shown in Figure 3.
In the present embodiment, be described to be issued as example by OTA download server to J2ME application program, then the dissemination method of J2ME application program, specifically comprise:
The J2ME application program of step 201, deployment general version is in OTA download server;
It should be noted that, the J2ME application program of general version is supplied to great majority does not have the specific mobile phone of type to use, and the J2ME application program of general version comprises the Jad file of general version and the Jar file of general version.
Particularly, Jar file is MIDlet (MobileInformationDevicesapplet, mobile information apparatus small routine) procedure subject, exists, comprise Javaclass file, resource file and data file etc. with compressing file packet form;
The Jad file of general version is a text, can check with notepad and edit, record the attribute of Jar file in Jad file, specifically as shown in table 1:
Table 1
As shown in table 1, in Jad file, include the heading message of MIDlet external member, the company of developing application, application name, size, and at least comprise download address and the title of Jar file corresponding to this Jad file.
In the present embodiment, MIDlet-Jar-URL is used to represent download address and the title of the Jar file that this Jad file is corresponding particularly.
Correspondingly, when J2ME application program being downloaded on mobile phone terminal, will first download and read Jad file, and then download and read corresponding Jar file.Application program management software in mobile phone determines Jar file storage address by reading MIDlet-Jar-URL attribute in Jad, and Jar can leave same directory in Jad file, also can leave other remote server in.
Step 202, obtain the characteristic information of each adaptive mobile phone type, and be generalized into configuration item;
Wherein, the characteristic information of each adaptive mobile phone type that the J2ME application program of each version is corresponding, comprise MicroEdition-Configuration and the MicroEdition-Profile information of mobile phone terminal, particularly, such as can comprise the screen resolution of mobile phone terminal, whether support horizontal stroke/erect screen to switch, whether be full touch screen, whether be the information such as full keyboard.
Step 203, for each type of the J2ME application program not being suitable for general version configures the Jad file of its correspondence, obtain the Jad file of each adaptive version, and be deployed in OTA server;
Wherein, the characteristic information in Jad file not only can be read by the application program management software on mobile phone terminal, and the MIDLet application program in Jar file also can read the characteristic information of Jad file.
Correspondingly, developer can also increase Custom Attributes in the Jad file of adaptive version, such as, API (the ApplicationProgrammingInterface that some mobile phone cannot provide with mobile phone operating system, application programming interface) function gets the height and width of correct mobile phone screen, can increase following two Custom Attributes in Jad file:
ScreenWidth:240
ScreenHeight:320
By increasing Custom Attributes in the Jad file of adaptive version, the MIDLet application program in the Jar file of adaptive version just can obtain the parameter of mobile phone screen by ScreenWith and ScreenHeight two attributes read in the Jad file of adaptive version.Custom Attributes in the Jad file of adaptive version can be ignored by application program of mobile phone manager, can not affect the normal mounting of MIDlet external member, and therefore developer can use a lot of parameter relevant with application program of Jad file record and configuration information.
Further, when adaptive mobile phone type does not comprise the characteristic in above-mentioned configuration item, configuration item corresponding for the characteristic in Jad file corresponding for this adaptive mobile phone type is set as default value.
Step 204, the J2ME application program of general version to be carried out to transplanting adaptive, obtains the Jar file of adaptive version, and be deployed in OTA download server;
It should be noted that, in the present embodiment, OTA download server is only disposed the Jar file of an adaptive version, the Jar file of this adaptive version provides the download of J2ME application program for all adaptive mobile phone types being not suitable for general version.
It should be noted that, the Jad file of each adaptive version above-mentioned all associates with the Jar file of the adaptive version obtained in step 203, the characteristic information of the mobile phone type of its correspondence is configured with in the Jad file of each adaptive version, the Jar file of adaptive version goes for mobile phone type corresponding to the Jad file of all adaptive versions, and can carry out logical process according to the characteristic information of mobile phone type corresponding to the J2ME application program of each version.
Further, when the Jar Documents Department of adaptive version is deployed in OTA download server, can also comprise:
In the Jad file of adaptive version corresponding to described each adaptive mobile phone type, write the address information of the Jar file of adaptive version, this address information is specially MIDlet-Jar-URL.
Further, after J2ME application deployment completes, the process of newly-increased adaptive version can also be comprised.Particularly, obtain the characteristic information of the type that adds your mobile phone, if configured in the Jad file of this type attribute in existing version, just can be met by the combination of Custom Attributes configuration item in Jad file and transplant adaptive to require, as long as then generate the Jad file of new adaptive version, be deployed in OTA download server, do not need again to submit to Jar file to issue.If new type characteristic, then in the Jar file of adaptive version, add new type attribute configuration and processing logic, solved by the upgrading of transplanting adaptive version.
Further, after J2ME application deployment completes in step 204, the download that user carries out J2ME application program can be supplied to, wherein, carry out deployment according to the dispositions method of J2ME application program provided by the invention at OTA server rear specifically as shown in Figure 4.
After J2ME application deployment is completed, user can be supplied to and download, below step 205-209 will illustrate the downloading process of user.
The mobile phone type of the mobile phone of step 205, acquisition user;
It should be noted that, user selects the mobile phone type of oneself by the interface that OTA download server provides.
Step 206, judgement are the mobile phone types of user is general type or adaptive type, if be general type, then performs step 207, if be adaptive type, then performs step 208;
Step 207, the Jar file of Jad file and general version being supplied to user's general version are downloaded;
Further, first OTA download server is supplied to the Jad file of mobile phone terminal general version, after mobile phone terminal is downloaded, reads the MIDlet-Jar-URL in Jad file, obtain name and the address of the Jar file of general version according to MIDlet-Jar-URL, and download.
Step 208, be supplied to the Jad file of user's adaptive version corresponding with the mobile phone type of this user;
It should be noted that, be supplied in the Jad file of the adaptive version corresponding with the mobile phone type of this user of user, with the characteristic information of the mobile phone mated with user mobile phone type.
Step 209, the Jar file of J2ME application program being supplied to adaptive version are downloaded.
Cell phone software hypervisor in mobile phone terminal reads the MIDlet-Jar-URL in the Jad file downloading the adaptive version obtained, and is obtained the Jar file of adaptive version by this MIDlet-Jar-URL from OTA download server.
It should be noted that, the Jar file of adaptive version can support that OTA can provide the mobile phone type that each adaptive version of download is corresponding.With the characteristic information (configuration item) of the mobile phone type of correspondence in the Jad file of each adaptive version, and each configuration item all has default parameter.After mobile phone is successfully downloaded and installed J2ME application program, first read the configuration item in the Jad file of adaptive version, if read less than the information in configuration item, then the MIDlet in the Jar file of adaptive version processes according to default value.
In the present embodiment, OTA download server is when issuing J2ME application program, issue the Jad file of multiple adaptive version, and only need issue the Jar file of an adaptive version, Jar file carries out unified logical process according to Jad file, therefore a code branches is only had to need to safeguard, saving workload that can be a large amount of.
Further, in the present invention, the Jar file of the Jar file of adaptive version and general version can also be combined into a Jar file, also effect of the present invention can be reached, but in order to allow all adaptive types of Jar file compatibility, the construction cycle can be long, experiences the new function of software as early as possible to allow most of user, convenient operation, is divided into 2 Jar files and carries out being deployed as preferred plan simultaneously.
Correspondingly, also the Jar file of adaptive version can be divided into two or more management, but it is optimal selection scheme that the Jar file of adaptive version is maintained a file.
The dispositions method of a kind of J2ME application program that the embodiment of the present invention provides, can greatly reduce and transplant adaptive version quantity, realize quick type and transplant adaptive issue, only need to increase Jad file during newly-increased type to be configured, reduce version test job, reduce and issue link workload and version operation amount, reduce the maintenance work of code branches.
Embodiment 3
The embodiment of the present invention 3 proposes a kind of deployment devices of J2ME application program, and its structure as shown in Figure 5, specifically comprises:
Configuration item acquisition module 301, for obtaining the characteristic information of adaptive mobile phone type, and is generalized into configuration item;
First file acquisition module 302, for by the configuration item in Jad file corresponding with adaptive mobile phone type for the write of the characteristic information of adaptive mobile phone type, obtains the Jad file of adaptive version corresponding to adaptive mobile phone type;
Second file acquisition module 303, adaptive for carrying out transplanting according to the Jar file of configuration item to general-purpose version, and set up processing logic with the configuration item in the Jad file of adaptive version, obtain the Jar file of common adaptive version;
First deployment module 304, for being deployed in J2ME application download servers by the Jad file of adaptive version corresponding for adaptive mobile phone type and the Jar Documents Department of adaptive version.
Further, as shown in Figure 6, this device also comprises:
Default setting module 305, for when the characteristic information of adaptive mobile phone type writes in the configuration item in the Jad file corresponding with adaptive mobile phone type by the first file acquisition module 302, if adaptive mobile phone type does not comprise the characteristic in configuration item, configuration item corresponding for the characteristic in Jad file corresponding for adaptive mobile phone type is set as default value.
Further, as shown in Figure 7, this device also comprises:
Address information writing module 306, before being deployed in J2ME application download servers in the first deployment module 304 by the Jad Documents Department of adaptive version corresponding for adaptive mobile phone type, in the Jad file of adaptive version corresponding to adaptive mobile phone type, write the address information of the Jar file of adaptive version.
Further, this device also comprises:
Second deployment module 307, for disposing the Jad file of general version and Jar file to J2ME application download servers.
Further, as shown in Figure 8, this device also comprises:
Newly-increased characteristic acquisition module 308, after being deployed in J2ME application download servers in the first deployment module 304 by the Jad file of adaptive version corresponding for adaptive mobile phone type and the Jar Documents Department of adaptive version, obtain the characteristic information of the type that adds your mobile phone;
Judge module 309, whether the characteristic information for the type that judges to add your mobile phone configures in the Jad file of existing adaptive version;
First update module 310, when characteristic information for type of judging when judge module 309 to add your mobile phone has done configuration in the Jad file of existing adaptive version, then generate the Jad file of new adaptive version, and be deployed in J2ME application download servers;
Second update module 311, when characteristic information for type of judging when judge module 309 to add your mobile phone does not configure in the Jad file of existing adaptive version, generate the Jad file of new adaptive version, and the configuration item that the characteristic information increasing the type that adds your mobile phone in the Jad file of new adaptive version is corresponding, the configuration item corresponding according to the characteristic information of the type that adds your mobile phone is upgraded the Jar file of adaptive version, and the processing logic that configuration item corresponding to the characteristic information increasing the type that adds your mobile phone in the Jar file of adaptive version is corresponding.
The deployment devices of a kind of J2ME application program that the embodiment of the present invention provides, can greatly reduce and transplant adaptive version quantity, realize quick type and transplant adaptive issue, only need to increase Jad file during newly-increased type to be configured, reduce version test job, reduce and issue link workload and version operation amount, reduce the maintenance work of code branches.
It should be noted that: the deployment devices of the J2ME application program that above-described embodiment provides, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by server is divided into different functional modules, to complete all or part of function described above.In addition, the deployment devices of the J2ME application program that above-described embodiment provides and the dispositions method embodiment of J2ME application program belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
All or part of step in the embodiment of the present invention, can utilize software simulating, and corresponding software program can be stored in the storage medium that can read, as CD or hard disk etc.
These are only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. a dispositions method for J2ME application program, is characterized in that, described method comprises:
Obtain the characteristic information of adaptive mobile phone type, and be generalized into configuration item;
By in the configuration item in Jad file corresponding with described adaptive mobile phone type for the write of the characteristic information of described adaptive mobile phone type, obtain the Jad file of adaptive version corresponding to described adaptive mobile phone type;
Carry out transplanting according to the Jar file of described configuration item to general-purpose version adaptive, and set up processing logic with the configuration item in the Jad file of described adaptive version, obtain the Jar file of common adaptive version;
The Jar file of the Jad file of described adaptive version with described adaptive version is associated, the characteristic information of the described adaptive mobile phone type of its correspondence is configured with in the Jad file of described adaptive version, the Jar file of described adaptive version is applicable to mobile phone type corresponding to the Jad file of all adaptive versions, and carries out logical process according to the characteristic information of mobile phone type corresponding to the J2ME application program of adaptive version;
The Jad file of adaptive version corresponding for described adaptive mobile phone type and the Jar Documents Department of described adaptive version are deployed in J2ME application download servers.
2. method according to claim 1, is characterized in that, when being write in the configuration item in the Jad file corresponding with described adaptive mobile phone type by the characteristic information of described adaptive mobile phone type, described method also comprises:
When described adaptive mobile phone type does not comprise the characteristic in described configuration item, configuration item corresponding for the described characteristic in Jad file corresponding for described adaptive mobile phone type is set as default value.
3. method according to claim 1, is characterized in that, before the described Jad Documents Department by adaptive version corresponding for described adaptive mobile phone type is deployed in J2ME application download servers, described method also comprises:
The address information of the Jar file of described adaptive version is write in the Jad file of adaptive version corresponding to described adaptive mobile phone type.
4. method according to claim 1, is characterized in that, described method also comprises:
The Jad file of deployment general version and Jar file are in described J2ME application download servers.
5. method according to claim 1, is characterized in that, described the Jad file of adaptive version corresponding for described adaptive mobile phone type and the Jar Documents Department of described adaptive version are deployed in J2ME application download servers after, described method also comprises:
Obtain the characteristic information of the type that adds your mobile phone;
Whether the characteristic information of type of adding your mobile phone described in judgement configures in the Jad file of existing adaptive version;
If so, then generate the Jad file of new adaptive version, and be deployed in described J2ME application download servers;
If not, then generate the Jad file of new adaptive version, and the configuration item that the characteristic information of the type that adds your mobile phone described in increasing in the Jad file of described adaptive version is newly corresponding, according to the Jar file of the described adaptive version of configuration item upgrading corresponding to the characteristic information of the described type that adds your mobile phone, and the processing logic that configuration item corresponding to the characteristic information of type of adding your mobile phone described in increasing in the Jar file of described adaptive version is corresponding.
6. a deployment devices for J2ME application program, is characterized in that, described device comprises:
Configuration item acquisition module, for obtaining the characteristic information of adaptive mobile phone type, and is generalized into configuration item;
First file acquisition module, for by the configuration item in Jad file corresponding with described adaptive mobile phone type for the write of the characteristic information of described adaptive mobile phone type, obtains the Jad file of adaptive version corresponding to described adaptive mobile phone type;
Second file acquisition module, adaptive for carrying out transplanting according to the Jar file of described configuration item to general-purpose version, and set up processing logic with the configuration item in the Jad file of described adaptive version, obtain the Jar file of common adaptive version;
First deployment module, for being deployed in J2ME application download servers by the Jad file of adaptive version corresponding for described adaptive mobile phone type and the Jar Documents Department of described adaptive version;
Described device is also for associating the Jar file of the Jad file of described adaptive version with described adaptive version, the characteristic information of the described adaptive mobile phone type of its correspondence is configured with in the Jad file of described adaptive version, the Jar file of described adaptive version is applicable to mobile phone type corresponding to the Jad file of all adaptive versions, and carries out logical process according to the characteristic information of mobile phone type corresponding to the J2ME application program of adaptive version.
7. device according to claim 6, is characterized in that, described device also comprises:
Default setting module, for when the characteristic information of described adaptive mobile phone type writes in the configuration item in the Jad file corresponding with described adaptive mobile phone type by described first file acquisition module, if adaptive mobile phone type does not comprise the characteristic in described configuration item, configuration item corresponding for the described characteristic in Jad file corresponding for described adaptive mobile phone type is set as default value.
8. device according to claim 6, is characterized in that, described device also comprises:
Address information writing module, before being deployed in J2ME application download servers in described first deployment module by the Jad Documents Department of adaptive version corresponding for described adaptive mobile phone type, in the Jad file of adaptive version corresponding to described adaptive mobile phone type, write the address information of the Jar file of described adaptive version.
9. device according to claim 6, is characterized in that, described device also comprises:
Second deployment module, for disposing the Jad file of general version and Jar file to described J2ME application download servers.
10. device according to claim 6, is characterized in that, described device also comprises:
Newly-increased characteristic acquisition module, after being deployed in described J2ME application download servers in described first deployment module by the Jad file of adaptive version corresponding for described adaptive mobile phone type and the Jar Documents Department of described adaptive version, obtain the characteristic information of the type that adds your mobile phone;
Judge module, whether the characteristic information for the type that adds your mobile phone described in judging configures in the Jad file of existing adaptive version;
First update module, when characteristic information for the type that adds your mobile phone described in judging when described judge module has done configuration in the Jad file of existing adaptive version, then generate the Jad file of new adaptive version, and be deployed in described J2ME application download servers;
Second update module, when characteristic information for the type that adds your mobile phone described in judging when described judge module does not configure in the Jad file of existing adaptive version, generate the Jad file of new adaptive version, and the configuration item that the characteristic information of the type that adds your mobile phone described in increasing in the Jad file of described adaptive version is newly corresponding, according to the characteristic information of the described type that adds your mobile phone corresponding configuration item upgrading described adaptive version Jar file, and the processing logic that configuration item corresponding to the characteristic information of type of adding your mobile phone described in increasing in the Jar file of described adaptive version is corresponding.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110137163.0A CN102801749B (en) | 2011-05-25 | 2011-05-25 | A kind of dispositions method of J2ME application program and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110137163.0A CN102801749B (en) | 2011-05-25 | 2011-05-25 | A kind of dispositions method of J2ME application program and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102801749A CN102801749A (en) | 2012-11-28 |
CN102801749B true CN102801749B (en) | 2016-02-24 |
Family
ID=47200711
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110137163.0A Active CN102801749B (en) | 2011-05-25 | 2011-05-25 | A kind of dispositions method of J2ME application program and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102801749B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105227606B (en) * | 2014-06-24 | 2018-06-12 | 腾讯科技(深圳)有限公司 | Application program adaptation method and device |
CN109218054B (en) * | 2017-07-03 | 2022-08-09 | 腾讯科技(深圳)有限公司 | Terminal dynamic configuration, corresponding server implementation method, device and storage medium |
CN114338379B (en) * | 2021-12-28 | 2023-11-03 | 上海黑眸智能科技有限责任公司 | SDK client network distribution method, system, SDK client and APP client |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101119517A (en) * | 2007-07-12 | 2008-02-06 | 深圳市融合视讯科技有限公司 | Method of automatic downloading software from network server |
CN101159763A (en) * | 2007-11-21 | 2008-04-09 | 华为技术有限公司 | Method and apparatus for downloading mobile information equipment characteristic application program |
CN101170675A (en) * | 2007-11-21 | 2008-04-30 | 中兴通讯股份有限公司 | Method and system for managing J2ME application in network TV system |
CN101425073A (en) * | 2008-11-27 | 2009-05-06 | 浙江大学 | Method for deploying JAD file on server to emulator by command line |
CN101426032A (en) * | 2008-11-28 | 2009-05-06 | 深圳华为通信技术有限公司 | Terminal and method for Java application installation |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8191150B2 (en) * | 2008-03-28 | 2012-05-29 | Sony Ericsson Mobile Communications Ab | Method and arrangement relating to a communication device |
-
2011
- 2011-05-25 CN CN201110137163.0A patent/CN102801749B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101119517A (en) * | 2007-07-12 | 2008-02-06 | 深圳市融合视讯科技有限公司 | Method of automatic downloading software from network server |
CN101159763A (en) * | 2007-11-21 | 2008-04-09 | 华为技术有限公司 | Method and apparatus for downloading mobile information equipment characteristic application program |
CN101170675A (en) * | 2007-11-21 | 2008-04-30 | 中兴通讯股份有限公司 | Method and system for managing J2ME application in network TV system |
CN101425073A (en) * | 2008-11-27 | 2009-05-06 | 浙江大学 | Method for deploying JAD file on server to emulator by command line |
CN101426032A (en) * | 2008-11-28 | 2009-05-06 | 深圳华为通信技术有限公司 | Terminal and method for Java application installation |
Non-Patent Citations (2)
Title |
---|
基于J2ME平台的手机游戏开发中的若干关键问题的研究;覃宇;《中国优秀硕士学位论文全文数据库 信息科技辑》;20061215(第12期);正文第49页至第58页、第63页至第71页 * |
基于J2ME平台的手机游戏设计与实现;冯迪;《中国优秀硕士学位论文全文数据库 信息科技辑》;20070915(第3期);正文第60页至第67页 * |
Also Published As
Publication number | Publication date |
---|---|
CN102801749A (en) | 2012-11-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103543993B (en) | Application builds method and system | |
CN109446570B (en) | Business process display method, device, computer equipment and storage medium | |
CN104199706A (en) | Firmware upgrade method and device for eMMC | |
CN103036678B (en) | A kind of method and system of Symbian signature application authorization | |
CN102880495A (en) | Mobile terminal and software upgrading method for same | |
CN104516738A (en) | Integrated implementing method for development and release of APP | |
CN106250143A (en) | The OTA upgrade method of a kind of wearable device and device | |
CN103049515A (en) | Method, device and equipment for classifying application programs | |
CN1922573A (en) | Data container for user interface content data | |
CN103544106A (en) | Method and device for generating script based on control | |
CN103365644A (en) | Method and device for expanding software functions | |
CN101833467A (en) | Method and equipment for adding menu items into Android menu | |
CN103914315A (en) | Configuration method of drivers | |
CN108563440A (en) | The automatic adding method of List Controller code, device and readable storage medium storing program for executing | |
CN103123605A (en) | Android platform automation integration testing method and device | |
CN104216719A (en) | Method and device for updating android system | |
CN104571819A (en) | Application program management method and application program management device | |
CN101426032B (en) | Terminal and method for Java application installation | |
CN107656729A (en) | Updating device, method and the computer-readable recording medium of List View | |
CN103902575A (en) | Pictorial information loading method and related device | |
CN105354065A (en) | Multi-product software upgrading method and terminal | |
CN101944017B (en) | Method and device for producing Widget | |
CN106066802A (en) | A kind of method and apparatus loading MBN file | |
CN102801749B (en) | A kind of dispositions method of J2ME application program and device | |
CN113220563A (en) | Test case generation method and system, storage medium and computer equipment |
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 |