ios - Sometimes cannot launch an application programmatically on jailbroken device -
nsinteger error = sbslaunchapplicationwithidentifier((cfstringref)bundleid, no); nslog(@"launching [%@] error: [%d]", bundlename, error); if (error) { cfstringref errorstr = sbsapplicationlaunchingerrorstring(error); dlog(@"launching %@ error string [%@]", bundlename, (nsstring *)errorstr); cfrelease(errorstr); }
i use above code launch second application first application, can launch successfully. however, sometimes fails launch. see error on syslog
launching [myfirstapp] error: [7]
launching myfirstapp error string [application not found]
how can launch application?
note first application running daemon
Comments
Post a Comment