You Are Here:

Community: Developer Discussion Boards

Reply « Previous Thread | Next Thread »

#1 Old How to create a patch. - 2009-06-30, 10:48

Join Date: May 2008
Posts: 95
Location: Kochi,Kerala,India
vivartpandey's Avatar
vivartpandey
Offline
Regular Contributor
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
Reply With Quote

#2 Old Re: How to create a patch. - 2009-06-30, 10:51

Join Date: Apr 2007
Posts: 1,757
Tiger79's Avatar
Tiger79
Offline
Forum Nokia Champion
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...
Reply With Quote

#3 Old Thumbs up Re: How to create a patch. - 2009-06-30, 11:02

Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
Send a message via Skype™ to raj_J2ME
raj_J2ME's Avatar
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
Reply With Quote

#4 Old Re: How to create a patch. - 2009-06-30, 11:15

Join Date: May 2008
Posts: 95
Location: Kochi,Kerala,India
vivartpandey's Avatar
vivartpandey
Offline
Regular Contributor
thanx for the quick reply.


Be hungry,Be foolish
vivart pandey
Last edited by vivartpandey : 2009-06-30 at 11:25.
Reply With Quote

#5 Old Thumbs up Re: How to create a patch. - 2009-06-30, 12:06

Join Date: Sep 2008
Posts: 1,195
Location: DELHI
Send a message via Yahoo to jitu_goldie
jitu_goldie's Avatar
jitu_goldie
Offline
Forum Nokia Champion
Quote:
Originally Posted by vivartpandey View Post
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.
Well as my other friends already suggest u that this is not possible to update only a part of application. Well u have to replace it by whole. For this u can send a WAP push to user as sms to update the application on device. If suppose user hits the link then new version of application overwrites the previous one..


thanks,
jitu_goldie..

KEEP TRYING..
Reply With Quote

#6 Old Re: How to create a patch. - 2009-06-30, 14:34

Join Date: Jul 2008
Posts: 329
Location: Faridabad(Delhi NCR)
Send a message via MSN to ansh.chauhan Send a message via Yahoo to ansh.chauhan
ansh.chauhan's Avatar
ansh.chauhan
Offline
Regular Contributor
Quote:
Originally Posted by jitu_goldie View Post
Well as my other friends already suggest u that this is not possible to update only a part of application. Well u have to replace it by whole. For this u can send a WAP push to user as sms to update the application on device. If suppose user hits the link then new version of application overwrites the previous one..
Well said jitu_goldie


Anshu Chauhan
J2me Developer
Reply With Quote

#7 Old Re: How to create a patch. - 2009-06-30, 14:45

Join Date: May 2008
Posts: 95
Location: Kochi,Kerala,India
vivartpandey's Avatar
vivartpandey
Offline
Regular Contributor
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
Reply With Quote

#8 Old Re: How to create a patch. - 2009-06-30, 14:54

Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
Send a message via Skype™ to raj_J2ME
raj_J2ME's Avatar
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
Reply With Quote

#9 Old Re: How to create a patch. - 2009-06-30, 15:04

Join Date: May 2008
Posts: 95
Location: Kochi,Kerala,India
vivartpandey's Avatar
vivartpandey
Offline
Regular Contributor
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
Reply With Quote

#10 Old Re: How to create a patch. - 2009-06-30, 15:11

Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
Send a message via Skype™ to raj_J2ME
raj_J2ME's Avatar
raj_J2ME
Offline
Forum Nokia Champion
Quote:
Originally Posted by vivartpandey View Post
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."
Quote:
the user invokes the link, the corresponding game application is started and the game level automatically downloaded into the game.
Hi,
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
Reply With Quote

#11 Old Re: How to create a patch. - 2009-06-30, 15:16

Join Date: Jun 2003
Posts: 4,325
Location: Cheshire, UK
grahamhughes's Avatar
grahamhughes
Offline
Forum Nokia Champion
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.
Reply With Quote

#12 Old Thumbs up Re: How to create a patch. - 2009-06-30, 15:23

Join Date: Sep 2008
Posts: 1,195
Location: DELHI
Send a message via Yahoo to jitu_goldie
jitu_goldie's Avatar
jitu_goldie
Offline
Forum Nokia Champion
Quote:
Originally Posted by ansh.chauhan View Post
Well said jitu_goldie
thanks ansh.chauhan


thanks,
jitu_goldie..

KEEP TRYING..
Reply With Quote

#13 Old Re: How to create a patch. - 2009-06-30, 15:25

Join Date: Apr 2007
Posts: 1,757
Tiger79's Avatar
Tiger79
Offline
Forum Nokia Champion
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"...
Reply With Quote

#14 Old Re: How to create a patch. - 2009-06-30, 15:33

Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
Send a message via Skype™ to raj_J2ME
raj_J2ME's Avatar
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
Reply With Quote

#15 Old Re: How to create a patch. - 2009-06-30, 16:04

Join Date: Jun 2003
Posts: 4,325
Location: Cheshire, UK
grahamhughes's Avatar
grahamhughes
Offline
Forum Nokia Champion
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
The MIDlet "com.me.PNGEditor" (in the JAR) becomes the default application for editing PNG files.

For example, you could create your own MIME type:

Code:
MicroEdition-Handler-1: com.raj.Game, application/x-raj-level-data, open, .level
Then, when the browser tries to download a ".level" file, and receives the custom MIME type from the server, the game is automatically launched to handle that data.

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.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia