Show WebPage | developer.brewmp.com Show WebPage | developer.brewmp.com

Developer

Show WebPage

Forums:

hi,

i want to open a webpage like google,facebook,youtube in myapplication.

how it is posibal in brew mp.

i am using following code for this

 

clsid = ISHELL_GetHandler(pishell, HTYPE_VIEWER,NULL);

ISHELL_RegisterHandler(pishell,clsid,"text/html",AEECLSID_BROWSER);//return 10

ISHELL_StartAppletArgs(pishell,AEECLSID_BROWSER,"http://www.google.com");

ISHELL_BrowseURL(pishell,"http://www.google.com");

 

 

plz show me the wright way to do this........

Thanks....

ISHELL_BrowseURL(pishell,"http://www.google.com"); would work & open the URL in the Native Device Browser, if the native browser is registered with Brew for handling HTTP requests.
it is not supported on all devices.
 
On the devices that do not support the above if you know the browser classid of the device, you may use ISHELL_StartAppletArgs(pishell, classid_of_device_browser,"http://...");

ISHELL_BrowseURL(pishell,"http://www.google.com"); would work & open the URL in the Native Device Browser, if the native browser is registered with Brew for handling HTTP requests.
it is not supported on all devices.
 
On the devices that do not support the above if you know the browser classid of the device, you may use ISHELL_StartAppletArgs(pishell, classid_of_device_browser,"http://...");

i am testing it on  simulator Cand Bar(1.0.3.800).

i am testing it on  simulator Cand Bar(1.0.3.800).

there is currently no in-built browser that comes with simulator & its not possible to launch external browser from simulator.
u may keep that as placeholder code for simulator & check on device.

there is currently no in-built browser that comes with simulator & its not possible to launch external browser from simulator.
u may keep that as placeholder code for simulator & check on device.

thanks,
i will try it....

thanks,
i will try it....