It might be easier to try to hook into the app switching API and just keep a record of which app is being launched (like what switchhack does). Then when your app needs to know what's running, it just checks the records.
-- -Richard M. Hartman [EMAIL PROTECTED] 186,000 mi/sec: not just a good idea, it's the LAW! "Danny Epstein" <[EMAIL PROTECTED]> wrote in message news:68046@palm-dev-forum... > > > I'm writing a Notifiction Handler and want to know what is current > > user-interface application. ( SysCurAppDatabase won't work because > > it returns database which include Notification handler) > > Perhaps this is stating the obvious, but during a SysAppLaunch of your app, > you can tell whether your app is the current UI app by checking the > sysAppLaunchFlagSubCall flag. > > If you want to know whether some other app is the current UI app, and you > can modify that app, you can create a feature in that app's AppStart > function and remove it in it's AppStop function. Then the existence of this > feature indicates that the app is the current UI app. > > I don't know of any way to generically determine the current UI app using > public APIs. > > Can you explain what you're trying to do? This isn't the first time this > issue has come up, so I'm wondering what's driving the need for this > feature. > -- > Danny @ Palm > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
