Hello,
I want to launch the Photo Application on Zier72 on
PODS through customized application & want to Save the
Photo with Custom Name passed as a Parameter to Photo
Application .
After the Photo Application has Finshed its Task it
should return to parent Application.
At Present I am able to Launch the photo Application
using following function:
CamaraLaunchApplication2().
But if CamaraLaunchApplication1() is called it gives
an run Time Error
at Statement
"err = SysAppLaunch (cardNo, dbID,
0,sysAppLaunchCmdNormalLaunch,NULL,&result);"
Functions
1) CamaraLaunchApplication1()
2) CamaraLaunchApplication2()
/****************************************************************************/
CamaraLaunchApplication1 starts Here
void CamaraLaunchApplication1()
{
UInt16 cardNo;
LocalID dbID;
DmSearchStateType searchState;
UInt32 result;
Err err;
DmGetNextDatabaseByTypeCreator(true,
&searchState,sysFileTApplication, 'Foto', true,
&cardNo,&dbID);
ErrNonFatalDisplayIf(!dbID, Could not find app);
if (dbID) {
err = SysAppLaunch(cardNo, dbID,
0,sysAppLaunchCmdNormalLaunch,NULL,&result);
ErrNonFatalDisplayIf(err, Could not launch app);
}
}//end of CamaraLaunchApplication1()
CamaraLaunchApplication2() starts Here
/****************************************************************************/
void CamaraLaunchApplication2()
{
UInt16 cardNo;
LocalID dbID;
DmSearchStateType searchState;
UInt32 result;
Err err;
DmGetNextDatabaseByTypeCreator(true,
&searchState,sysFileTApplication, 'Foto', true,
&cardNo,&dbID);
ErrNonFatalDisplayIf(!dbID, Could not find app);
if (dbID) {
err = SysUIAppSwitch(cardNo, dbID,
sysAppLaunchCmdExgAskUser ,NULL);
ErrNonFatalDisplayIf(err, Could not launch app);
}
}//end of CamaraLaunchApplication2()
Can any one Guide me how to Lauch the Photo
Application from My Application and Return back to my
application
Regards
-Pritam.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/