×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    10

    View HTML Resource on Classpath

    Hello all,

    I am trying to port an application to the S60 platform, and the application has resources that are in HTML. On the original platform, it appears that a web browser could be invoked that would read from the contents of the .jar file. Can that be done on the S60 platform?

    I have seen examples of using platformRequest to open a file that is located in the filesystem, so I tried getting the HTML content with getResourceAsStream and copying it out to the filesystem, but when I call platformRequest, the phone's browser can't open the file due to security restrictions. Nokia doesn't seem to have much information on how its filesystem permissions are set up, except to say that it differs across devices. What would be the most appropriate/portable place to put this content so the default browser can see it?

    I'm pretty sure all the devices we're currently supporting use S60 5th edition, if that helps. A (positive) answer to either question would be sufficient. The content I am extracting is a very small and static set of HTML and image files, but they link to each other, so once I hand control over to the browser, it will need to have access to them all by their original names.

    Thanks!

  2. #2
    Nokia Developer Expert
    Join Date
    May 2007
    Location
    Mexico D.F
    Posts
    351

    Re: View HTML Resource on Classpath

    Hello,
    it seems to me hard to think that the Web Browser would open that file with platformRequest, first of all, there's no http call (which is the one asking the browser to call). Localhost cannot be used since there is no server running and listening to some port.

    Sounds to me a solution could be Content Handler API, but only some phones support that (S40).
    What phone are you using?
    :Ruben

  3. #3
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: View HTML Resource on Classpath

    Wouldn't the browser be opened for a "file:" URL, for a file ending ".html"?

    Failing the file system, you could, if you felt really adventurous, build a mini HTTP server in your MIDlet...

    Graham.

Similar Threads

  1. Kern exec 3 in BaseConstuctL of UI
    By ashish_lal in forum Symbian User Interface
    Replies: 7
    Last Post: 2009-09-09, 15:33
  2. Panic Cone 14
    By somnathbanik in forum Symbian
    Replies: 16
    Last Post: 2009-07-17, 13:59
  3. panic cone 14,
    By somnathbanik in forum Symbian
    Replies: 12
    Last Post: 2009-07-16, 14:48
  4. Replies: 1
    Last Post: 2005-10-17, 04:23
  5. Resource file
    By hicheri in forum Symbian
    Replies: 2
    Last Post: 2005-02-24, 20:25

Posting Permissions

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