After Download , getting "Operation Failed" ERROR
Hi.
I have developed an application in j2me. It works fine , and I uploaded on the server which is Windows IIS server. When I going to download this application, the download starts but after completion of download it shows the ERROR like "Öperation Failed" and application not saved on phone.
Can anybody tell me that why I am getting this error.
My .jad file contains :
MIDlet-1: Theme, /logo/UltraMobile.png, mainClass
MIDlet-Description: All in one Theme.
MIDlet-Icon: /logo/UltraMobile.png
MIDlet-Info-URL: [url]http://www.ultrapockettv.com/[/url]
MIDlet-Install-Notify: [url]http://www.ultrapockettv.com/[/url]
MIDlet-Jar-Size: 178043
MIDlet-Jar-URL: Theme.jar
MIDlet-Name: Theme
MIDlet-Permissions: javax.microedition.io.Connector.file.read,javax.microedition.io.Connector.file.write
MIDlet-Vendor: Ultra Mobile Technology PVT. LTD
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.1
MicroEdition-Profile: MIDP-2.0
Does any parameter required or not ?
Help me.
Re: After Download , getting "Operation Failed" ERROR
Which phone model are you trying to install the app on?
Does the app install on that phone if you download/copy it to the phone directly from the development PC?
Have you configured your web server to send the correct MIME headers for jad and jar file types?
Re: After Download , getting "Operation Failed" ERROR
My phone model is Nokia 3110c .
Yes I copied that application to my mobile by PC scuite and works fine.
No.
But I have Idea to add MIME type using PHP
I created a small code to change header contents. The code is :
<html>
<?php
header("Content-Type: text/vnd.sun.j2me.app-descriptor");
header("Content-Type: application/java-archive");
?>
<head>
<title>Download</title>
</head>
<body>
<a href="http://www.mysite.com/Theme.jad"> All in One Theme <br>
<a href="http://www.mysite.com/Housie.jar"> Housie Game <br>
</body>
</html>
This code is not tested yet..
But I will try..
can you tell me that is it correct code ?
reply..
Re: After Download , getting "Operation Failed" ERROR
Yep, the MIME type information missing could be a possible reason. There is likely a place to change that for your Web server (somewhere in settings) so you do not need to add those lines in your php code.
Also
Re: After Download , getting "Operation Failed" ERROR
That code won't work, as the header will not be sent when the .jad link is clicked; only when the PHP page where you put the links are, which won't help.
You need to write a PHP module that sends the headers, and then also opens, reads and sends the .jad file contents, too. Or configure IIS to send the correct headers for jad and jar files (easier that way).
Re: After Download , getting "Operation Failed" ERROR
So How I write the PHP module ?
can you help me ?
Re: After Download , getting "Operation Failed" ERROR
[url=http://wiki.softartisans.com/display/~benj/2010/02/19/Deploying+a+BlackBerry+Application+OTA+in+IIS]Does this help[/url]?