its actually documented in palm sdk docs from pluggedin.palm.com, its in section
10.1.4. you should try to search docs first ;-)
static void LaunchBlazerWithURL(Char* urlP)
{
Err err = 0;
UInt16 cardNo;
LocalID dbID;
DmSearchStateType searchState;
Char* url;
// first check if web browser is installed
err = DmGetNextDatabaseByTypeCreator(true, &searchState,
sysFileTApplication,hsFileCBlazer3, true, &cardNo, &dbID);
if (err)
{
// Display appropriate error dialog...
return;
}
// ok, now let's call the web browser with the URL. Must first copy the
// URL because it will be disposed of by the system after the browser
// exits
url = MemPtrNew(StrLen(urlP)+1);
if (!url)
{
return;
}
StrCopy(url, urlP);
// set the memory owner to zero, so it is not deleted
// by the system when we switch apps
MemPtrSetOwner(url, 0);
SysUIAppSwitch(cardNo, dbID, sysAppLaunchCmdGoToURL, url);
}
on treos (but only on treos!) there is simpler way, you can use
HsBrowseUrl(char* urlP) function, its even better because it will launch this
web browser which is set as default on treo preferences
[EMAIL PROTECTED] wrote:
> Hi,
>
> Sorry for a repost on this problem but I am very new in this domain.
> I am looking for an example where I could launch a browser closing my
> application.
> I couldnt get the sample code from the url
http://kb.palmsource.com/cgi-bin/palmsource.cfg/php/enduser/std_adp.php?p_faqid=731
>
> Any help is appreciated.
>
> Thank you,
> Pradeep.
>
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/