platformRequest problem ...

Hi,

I'm trying to use the platformRequest method with the statement :

parent.platformRequest("file:///root1/web/page.html");

And it keeps giving me :

Performing platformRequest for URL: file:///root1/web/page.html Without any other results.

What's the problem ?

Note : Am using WTK ...

Thanks in advance ...

[383 byte] By [armenaga] at [2007-11-27 4:58:19]
# 1
Actually what 's ur requirement i have n't understood
vasuvuggu@gmail.coma at 2007-7-12 10:14:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
when i apply the platformRequest, in the WTK console it prints Performing platformRequest for URL: file:///root1/web/page.htmlbut it does not display the web page, i hope that you got me ...Thank you ...
armenaga at 2007-7-12 10:14:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
This would be becasue your emulator does not support the platfrom request emulation. Try to run this code on a real device i would work.Regards,Omar Rehman
ilmiana at 2007-7-12 10:14:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
Hi,The problem is that it's not working on both, a real device and an emulator ...Regards ...
armenaga at 2007-7-12 10:14:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5

On which device are you trying it. In case if most of the device you need to exit your application after calling platformrequest.

In some cases you dont need to exit the application, e.g nokia's 3rd edition devices. but in case of Series 40 devices you need to exit your midlet after calling platformRequest. like

if(platformreqeust(url))

{

exitMIDlet(); // call method to exit your application.

}

let me know if it helps

Regards,

Omar Rehman

ilmiana at 2007-7-12 10:14:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6
It' returning false, all i want to do is to view some web pages in my MIDlet, so, is there any other way to do so ?Thanks in advance ...
armenaga at 2007-7-12 10:14:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 7

I dont think there is any way to view web pages in your midlet. you can open your mobile's default web browser by calling platformRequest. Else you writre your own web browser. :)

Secondly why are you wirting file:// in url. you better give a url of a web page. like http://yahoo.com

Regards,

Omar Rehman

Message was edited by:

ilmian

ilmiana at 2007-7-12 10:14:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 8
because the files are stored in the cell phone ...
armenaga at 2007-7-12 10:14:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...