Hi Ben,
Thanks for your tips and link!
As I am able to control contents of the webpage, I have put a link on that
page with the following code (as u said in the example
<a href="palm:memo.appl">).
<a href="palm:myapp.appl">Back to App </a>
[I also tried <a href="palm:myapp.prc">Back to App </a>]
And the main function of my app looks like this now,
UInt32 PilotMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags)
{
Err error;
error = RomVersionCompatible (ourMinVersion, launchFlags);
if (error) return (error);
switch (cmd)
{
case sysAppLaunchCmdNormalLaunch:
error = AppStart();
if (error)
return error;
FrmGotoForm(MainForm);
AppEventLoop();
AppStop();
break;
case sysAppLaunchCmdURLParams:
error = AppStart();
if (error)
return error;
FrmGotoForm(MainForm);
AppEventLoop();
AppStop();
break;
}
As far as I understood, this is all I need to do right!
But when I am launghing the web page and clicking on the above link, nothing
is happening at all :-( !
Can u please guide me more in this direction?
Thanks,
Keyur.
-----Original Message-----
From: Ben Combee [mailto:[EMAIL PROTECTED]
Sent: Monday, June 28, 2004 2:04 PM
To: Palm Developer Forum
Subject: Re: Returning to an app!
At 12:31 PM 6/28/2004, you wrote:
>Hi Ben,
>
>My question is again regarding SysUIAppSwith() function!
>
>The control flow in my app is something like this.....
>After some user interaction, my app launches a web browser with a page from
>some website. Now when the user is done viewing and playing with that page,
>I want to launch my application all over again (Rather than making the user
>to go to the list of application icons and launch my application from
>there)!
>
>Do u think that SysUIAppSwith() can be help to achieve this?
No. In general, Palm OS web browsers don't have an "Exit" feature. The
original Web Clipping software would exit if you hit "back arrow" on the
initial page, but that feature hasn't been adopted by other tools. Most
Palm OS apps don't have an "exit" function. They just run until the OS
tells them to stop, usually as the result of the user telling the device to
switch to another program.
One option, if you control your web content, is to have a link that uses a
palm: URL to relaunch your application. For example, <a
href="palm:memo.appl"> would launch the Memo Pad app. See
http://palmos.combee.net/blog/palmURLSupport.html for more details on some
tests I've recently run.
-- Ben Combee, DTS technical lead, PalmSource, Inc.
Read "Combee on Palm OS" at http://palmos.combee.net/
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/