downloading midlet to 7650 phone
hello there,
i have develope an application MIDlet, and i want to test it with a real device.. can anyone tell me how to download a MIDlet to a 7650 phone?
Another question is that, in my application, i've use the WMA API ? will the application be compatible with the phone?
thanks
RE: downloading midlet to 7650 phone
Hi all.
Another way to get it done without configuring your web server is to check if the client (your 7650, in this case) accepts the WML mime type (as jalev decribed in the previous message).
Here's an example code (ASP for simplicity):
<%
...
strHTTPUserAgent = Request.ServerVariables("HTTP_USER_AGENT")
strHTTPAccept = Request.ServerVariables("HTTP_ACCEPT")
' check if the client accepts wml
If Instr(1, strHTTPAccept, "text/vnd.wap.wml") = 0 Then
'it does not >>> redirect to html page
Response.Redirect("HTMLpage.htm")
E lse
'Client is accepting WML mime types...
'Send content type header
Response.ContentType = "text/vnd.wap.wml"
' check if device is Nokia7650
If Instr(1, strHTTPUserAgent, "Nokia7650") = 0 Then
' not nokia 7650
' [...] return the client a wml page saying that the device is not supported
Else
' wow... its nokia 7650!
' [...] return the client a wml page with a link to your .jad file
End if
End if
..
%>
Of course you can write a similar code in your favourite server side language and/or script.
Hope this helps
Regards
RE: downloading midlet to 7650 phone
Hello
To Deploy MIDlets to the 7650 can be done to be done over the AIR.
That means that MIDlet have to be places to the www server and configure server mime type correctly.
Then use use wap or gprs settigs provided ny your operator to access
to the URL address where you have located your MIDlet.
you need to have data service activated in their SIM card/contract.
You can also Install the MIDlet using Cable, infraRed and bluetooth.
Just send the files, jad and jar from the file manager the mobile using Cable, infraRed and bluetooth.
One thing that has to check when configuring www server
is MIME types:
A useful tool for checking that you have the correct MIME types set up on your server is the web-based header reader at:
http://www.delorie.com/web/headers.html
You enter the URL of your WML, JAD, or JAR file (use correct case) and click on the view page button. The website then makes a request to your site and displays information about the HTTP headers that are returned. The header results should be:
WML file:
Content-Type: text/vnd.wap.wml
JAD file:
Content-Type: text/vnd.sun.j2me.app-descriptor
JAR file:
Content-Type: application/java-archive
WMA API is not supported in 7650.