launch browser | developer.brewmp.com launch browser | developer.brewmp.com

Developer

launch browser

Forums:

hi,

i want to show the webpage in my application,

so that i neeed to launch the browser.

how i can launch the browser.

plz help me.

use:
ISHELL_BrowseURL(pIShell, "http://www.xyz.com");
it will work if device's browser is registered with Brew for http url scheme.

use:
ISHELL_BrowseURL(pIShell, "http://www.xyz.com");
it will work if device's browser is registered with Brew for http url scheme.

when i am useing
ISHELL_BrowseURL(pIShell, "http://www.xyz.com");
it returns 10 (NULL class object).
i am test it on simulator-jade(1.0.3.800)(3508).
if u have any sample code then plz help me.
 

when i am useing
ISHELL_BrowseURL(pIShell, "http://www.xyz.com");
it returns 10 (NULL class object).
i am test it on simulator-jade(1.0.3.800)(3508).
if u have any sample code then plz help me.
 

it wont work on simulator.
To understand beter on how it works:-
When u call ISHELL_BrowseURL(pIShell, "http://www.xyz.com"); i.e. call ISHELL_BrowseURL() with a http type of URI, BREW looks for registered handler (classids/Apps which have registered for listining to MIME type of "http" type) & passes the URI to that App as a EVT_APP_BROWSE_URL, thereafter the registered App has to handle the request.
 
In case of simulator there is currently no browser by default which registers for http type of URI/MIME types. hence it wont work on simulator.
 
On a device it would work only if the device's Browser has registered for http MIME type with Brew.

it wont work on simulator.
To understand beter on how it works:-
When u call ISHELL_BrowseURL(pIShell, "http://www.xyz.com"); i.e. call ISHELL_BrowseURL() with a http type of URI, BREW looks for registered handler (classids/Apps which have registered for listining to MIME type of "http" type) & passes the URI to that App as a EVT_APP_BROWSE_URL, thereafter the registered App has to handle the request.
 
In case of simulator there is currently no browser by default which registers for http type of URI/MIME types. hence it wont work on simulator.
 
On a device it would work only if the device's Browser has registered for http MIME type with Brew.

(1) how i can registered, device's Browser.
(2)i have use following code in "InitAppData"
    ISHELL_EnumAppletInit(pMe->piShell;    ISHELL_EnumNextApplet(pMe->piShell,&pMe->appletinfo);
    ISHELL_RegisterHandler(pMe->piShell,HTYPE_BROWSE, "http",pMe->appletinfo.cls);//return zero    ISHELL_BrowseURL(pMe->piShell,"http://www.xyz.com");//return zero
 
then call is come on
 
1.EVT_APP_START
2.EVT_APP_SUSPEND
3.EVT_APP_RESUME
 
but call is not come on "EVT_APP_BROWSE_URL" in HandleEvent.
i have try it on simulator.
 
and when i test it on device then it open a "Personal ringtone" page at place of BROWSER.
this page content a menu list with chack botten.
 
plz show me the correct way to launch the browser.
 

(1) how i can registered, device's Browser.
(2)i have use following code in "InitAppData"
    ISHELL_EnumAppletInit(pMe->piShell;    ISHELL_EnumNextApplet(pMe->piShell,&pMe->appletinfo);
    ISHELL_RegisterHandler(pMe->piShell,HTYPE_BROWSE, "http",pMe->appletinfo.cls);//return zero    ISHELL_BrowseURL(pMe->piShell,"http://www.xyz.com");//return zero
 
then call is come on
 
1.EVT_APP_START
2.EVT_APP_SUSPEND
3.EVT_APP_RESUME
 
but call is not come on "EVT_APP_BROWSE_URL" in HandleEvent.
i have try it on simulator.
 
and when i test it on device then it open a "Personal ringtone" page at place of BROWSER.
this page content a menu list with chack botten.
 
plz show me the correct way to launch the browser.
 

i think you misinterpreted.
 
your App does not have to reqister for any MIME Type for Launching Browser.
you need to call ISHELL_BrowseURL(pIShell, "http://www.xyz.com"); to launch the Browser with the url http://www.xyz.com.
 
This won't work on simulator as there is no Browser installed on simulator by default.
It should work on newer devices. If it does not then u will not be able to launch the browser on that device.

i think you misinterpreted.
 
your App does not have to reqister for any MIME Type for Launching Browser.
you need to call ISHELL_BrowseURL(pIShell, "http://www.xyz.com"); to launch the Browser with the url http://www.xyz.com.
 
This won't work on simulator as there is no Browser installed on simulator by default.
It should work on newer devices. If it does not then u will not be able to launch the browser on that device.

now i have use following in EVT_APP_START
ISHELL_BrowseURL(pIShell, "http://www.xyz.com");
then this  return 10.( EBADCLASS  // NULL class object).
i have try it on device (QRD 6270).
 
 
 

now i have use following in EVT_APP_START
ISHELL_BrowseURL(pIShell, "http://www.xyz.com");
then this  return 10.( EBADCLASS  // NULL class object).
i have try it on device (QRD 6270).
 
 
 

probablly you have a QRD 6270 that does not has a Browser (i.e. an old S/W on the device).
but i can tell you that it will work that way on QRD 6270, once you have a good S/W on the device.

probablly you have a QRD 6270 that does not has a Browser (i.e. an old S/W on the device).
but i can tell you that it will work that way on QRD 6270, once you have a good S/W on the device.