×

Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    1

    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

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    382

    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.

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    38

    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&quot
    strHTTPAccept = Request.ServerVariables("HTTP_ACCEPT&quot

    ' check if the client accepts wml
    If Instr(1, strHTTPAccept, "text/vnd.wap.wml&quot = 0 Then
    'it does not >>> redirect to html page
    Response.Redirect("HTMLpage.htm&quot
    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&quot = 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

Posting Permissions

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