err=VFSImportDatabaseFromFile (VolRef, lapp, &card, &locid);
DmDatabaseInfo (card, locid, NULL, &attr, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
attr=dmHdrAttrRecyclable;
DmSetDatabaseInfo (card, locid, NULL, &attr, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
SysUIAppSwitch (card, locid, sysAppLaunchCmdNormalLaunch, cmdPBP);
This code copies database from memory card to main memory, sets it's attribute to 'delete it automatically after closing' and then runs it in main memory.
This works fine with one exception: if reset occurs during running this app, it remains in main memory. But I think that it happens even in case of standard launcher running app from card.
Monday, August 20, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment