I am trying to figure out which apps are causing my Treo to connect to 
the Internet.  I get the notifications when my Treo makes a connection 
but there is nothing about who is connecting.  Most of the time when my 
phone connects it is in the background (well, on an alarm, Mail app 
connects, gets mail, if there is mail, a notification comes up).  
Anyways, because of this I cannot just keep track of the current app 
because I don't get notifications of apps running when they are launched 
on an alarm (not really launched).

My thoughts right now are to look for alarms for all apps on the system.  
Register an alarm that matches the closest alarm.  When the alarm goes 
off mark the time and register for the next closest alarm.  If the data 
connection starts soon after one of the alarms, I can assume that the 
app which triggers the alarm is the app making the data connection.

There has to be an easier way.  Am I missing something?

Thanks,

Chris
> An other hint... there is a notification every time a new application is
> launched, even under a notification. The only exception is the sound
> callback mechanisme.
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> [mailto:bounce-palm-dev-
> > [EMAIL PROTECTED] On Behalf Of Aaron Ardiri
> > Sent: Monday, January 05, 2004 1:13 AM
> > To: Palm Developer Forum
> > Subject: Re: Running processes
> > 
> > > > SysCurAppDatabase() <-- currently active application.
> > >
> > > Cool.  Don't know why I didn't see that one.  If my app is launched
> for
> > > a notification while another app is running, I assume that that app
> will
> > > be returned with the SysCurAppDatabase() call, right?
> > 
> > no, it returns the app that has the active *foreground* context.
> > 
> > ---
> > Aaron Ardiri
> > [EMAIL PROTECTED]
> > http://www.mobilewizardry.com/members/aaron_ardiri.php [profile]
> > 
> > --
> > 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/

Reply via email to