| Reply | « Previous Thread | Next Thread » |
|
i am working on a mobile software.i just want to create patch for the software in j2me.
suppose i have done some bug fixes in the software or some updates in the database. for that i dont want to give again a new software to the user that has already installed my software for that i want to give a patch to the user.user just click on the patch and patch will automatically update the software. so how i can create patch file in j2me.plz help. Be hungry,Be foolish vivart pandey |
|
well afaik it's not possible, simply because all the classes are within the JAR file which gets decompressed during install...
So you still should deliver the new classes, most probably in a JAR file, so why not the whole software ? Also you will have to implement some versioning into it, and some kind of serverside which can see the client's version and offer a new JAR or even better a link to the new JAR file... |
|
Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
raj_J2ME
Offline
Forum Nokia Champion
|
|
Hi,
AFAIK,There is no concept of the patch file or so,changing version approach of the application you have to implement in the application itself.You can do so by checking the version of the application on the server.This can be implement in two ways, 1.Either the client(Your application) will hit the server and check that whether the new version of the application is available,if yes then it is supposed to alert the user.If user wish to install the new version then he can continue to install else if he decline the installation of the new version than he continue with the older one. 2.Or the server inform the client on the specific time or when the version has change.Then again it is upto the user if he wish to continue with the newer or older one. Thanks R a j - The K e r n e l |
|
thanx for the quick reply.
Be hungry,Be foolish vivart pandey
Last edited by vivartpandey : 2009-06-30 at 11:25.
|
|
Quote:
thanks, jitu_goldie.. KEEP TRYING.. |
| jitu_goldie |
| View Public Profile |
| Find all posts by jitu_goldie |
|
Join Date: Jul 2008
Posts: 329
Location: Faridabad(Delhi NCR)
ansh.chauhan
Offline
Regular Contributor
|
|
|
Quote:
Anshu Chauhan J2me Developer |
| ansh.chauhan |
| View Public Profile |
| Find all posts by ansh.chauhan |
|
suppose i have created a game with 5 levels.After playing all the levels user just want
some more levels.user just request for more levels and i will just provide the 5-10 levels from my server.How to do this??? i think using content handler it is possible but i am not sure. and i donno much about use of content handler. Be hungry,Be foolish vivart pandey |
|
Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
raj_J2ME
Offline
Forum Nokia Champion
|
|
Hi;
I would recommend that the user download the new version of the game with the added levels.I am not sure about the Content Handler API,Never used. Thanks R a j - The K e r n e l |
|
i am referring java doc.this is mansion in java doc for content handler jsr211.
"New game levels can be distributed as links on a web page or in an email message. When the user invokes the link, the corresponding game application is started and the game level automatically downloaded into the game." Be hungry,Be foolish vivart pandey |
|
Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
raj_J2ME
Offline
Forum Nokia Champion
|
||
|
Quote:
Quote:
could you share the link, for the same? I think that Midlet will be downloaded,not the Levels.Let me just go through the same. Thanks R a j - The K e r n e l |
|
This is different to your original question.
You cannot download code. You can download data. For example, if you want to download level data, you can do so using an HttpConnection. If the extra levels require extra code, you cannot do this, and you must install a new JAR. CHAPI is just a means of associating a MIME type with a MIDlet, so that when the data is downloaded with the browser, the appropriate, installed MIDlet is automatically launched. Graham. |
| grahamhughes |
| View Public Profile |
| Find all posts by grahamhughes |
|
thanks, jitu_goldie.. KEEP TRYING.. |
| jitu_goldie |
| View Public Profile |
| Find all posts by jitu_goldie |
|
maybe we can keep compliments to a minimum or through pm's ? apart from being off-topic seems to me like its some kind of posts-increment technique ? just like the "I agree" stuff or "well said"...
|
|
Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
raj_J2ME
Offline
Forum Nokia Champion
|
|
Hi,
grahamhughes this was the thing that I was also thinking.Since I had not use this JSR,so I was just wondering and then I write the same in my post too.Grahm Could you please more explain about the same JSR. Thanks R a j - The K e r n e l |
|
Tiger69: I was sooooooo tempted to add "well said!" to your post! :) But know I have a legitimate reason to post a reply! :)
Raj: I should say, I'm not an expert on CHAPI. What I know is: CHAPI enables you to do two things. 1. It enables you to launch another application (which might be native or Java) that is associated with a particular file-type. You can already do this in MIDP-2 using platformRequest(). CHAPI adds the ability to specify an action, such as OPEN or EDIT, which may be sent to the target application, or may cause a different application to be opened. 2. It enables a Java application to register itself as a "content handler". It then becomes the default application to open for the specified content type. For example, by adding to the JAD: Code:
MicroEdition-Handler-1: com.me.PNGEditor, image/png, edit, .png For example, you could create your own MIME type: Code:
MicroEdition-Handler-1: com.raj.Game, application/x-raj-level-data, open, .level This is essentially the same as the mechanism in Windows that allows Internet Explorer to open Excel when you click on a link to an XLS file. It allows you to develop apps that integrate with other apps (Java or native) on the device, such as the browser or email applications. Graham. |
| grahamhughes |
| View Public Profile |
| Find all posts by grahamhughes |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Unable to create file | Ajmal | Symbian Media (Graphics & Sounds) | 4 | 2008-06-05 05:39 |
| Trusted Application | damien_a | Mobile Java General | 7 | 2008-02-25 17:45 |
| Steps to create SIS. How create .pkg file for petran? | BobbyFletcher | Symbian Tools & SDKs | 1 | 2004-04-21 19:26 |
| Not able to create CAknIntegerEdwin/CAknNumericEdwin | gpalvia | Symbian User Interface | 2 | 2004-03-05 12:02 |
| how to create a grid | ddhungry | Symbian User Interface | 0 | 2002-11-27 09:08 |