Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 75
Registered: ‎01-28-2009
My Device: Not Specified

Re: Opinion needed: update check best practice?

Look up CoverageInfo in the APIs. I think it only works properly with 4.2.2
Developer
Posts: 111
Registered: ‎12-16-2008
My Device: Not Specified

Re: Opinion needed: update check best practice?

That's a great resource, Simon! I was afraid I'd have to write that myself but that's a good start. Can't quite imagine how I'll test it...

 

Looks like it even addresses issues with older OSes and CoverageInfo problems.

Developer
Posts: 326
Registered: ‎02-02-2009
My Device: Not Specified

Re: Opinion needed: update check best practice?

please tell me where am wrong

I Open http connection to url where jad file located, and then open inputstream get the data and convert into string, but which is my exising jad content(already working), not the new one on the server

 

please suggest me 

 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Opinion needed: update check best practice?

Try the same URL on the Browser (on the BB and on the desktop) to confirm that in fact there is a new jad file there.  Unless you have a coding bug, the code you have described should give you the latest version. 

Developer
Posts: 326
Registered: ‎02-02-2009
My Device: Not Specified

Re: Opinion needed: update check best practice?

I tried it in bb brower, it return latest only,

and when I run the application from JDE and and put higher version on server then its works fine

but when I download application to simulator or device(without debugging) and put higher version on server then it fails, is returns the current version

 

My code is like

open connection to jad url

open inputstream

get the byte data

conver it into string

convert this string to json object

get the version from json

Highlighted
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Opinion needed: update check best practice?

The situation I wish to clarify is as follows:

 

If you use the Browser on the same device/Simulator that has reported a failure, do you see the old or new version?

 

So can you do the following:

a) Get yourself in an error situation on device or Simulator.

b) Try the same URL from the Browser and see if you see the old or new one.

 

You need to use a Browser that matches the connection method of your application.

 

I am suspicious of some gateway caching and reusing your request.