exe behaviour at phone power off
| Sat, 2006-04-15 08:55 | |
|
Hello,
i have a .exe running in the background showing some indicator on phone screen. Does my exe get automatically killed when the phone is switched off? or do I have to catch this event so i can kill my exe myself? now the behaviour is, when user switches off his phone, the indicator is being shown until completely switched off (from pressing switch-off-button until powering down = approx. 1-2 sec) Please can anybody answer me this, thanks, Mike |
|






Forum posts: 2009
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 6
but do you think for symbian-signed i have to catch this system event and stop drawing on the phone screen immediately after user presses switch off?
now the indicator is remaining on the screen and the user could have the impression that my application is not properly shutting down...
what do you think?
mike
Forum posts: 8
i have a .exe running in the background showing some indicator on phone screen.
Does my exe get automatically killed when the phone is switched off?
or do I have to catch this event so i can kill my exe myself?
now the behaviour is, when user switches off his phone,
the indicator is being shown until completely switched off
(from pressing switch-off-button until powering down = approx. 1-2 sec)
Please can anybody answer me this,
thanks, Mike
Hi Mike,
Would you please give me hints how to run .exe in background?
I use the following code, but doesn't work
  {
CActiveScheduler *scheduler=new(ELeave)CActiveScheduler;
  CleanupStack::PushL(scheduler);
  CActiveScheduler::Install(scheduler);
CCallMonitor *observer = CCallMonitor::NewL();
CleanupStack::PushL(observer);
observer->StartMonitorL();
  CActiveScheduler::Start();
  //CActiveScheduler::Install(NULL);
  CleanupStack::PopAndDestroy(2); // scheduler, observer
}
//Â Global Functions
GLDEF_C TInt E32Main()
  {
  // Create cleanup stack
  __UHEAP_MARK;
CTrapCleanup* cleanup=CTrapCleanup::New();
  TRAPD(error,DoStartL());
  delete cleanup;
  __UHEAP_MARKEND;
  return KErrNone;
  }
What's wrong?
I'm Java(nese). I live in Java. I speak Java. But I don't write my code in Java.
Forum posts: 8
I just read this: http://www.forum.nokia.com/document/Forum_Nokia_Technical_Library/contents/FNTL/fn_technical_library.htm
says that CTelephony, which I use it in CCallMonitor, is not supported on my target device (N7610).
I spent my whole weekday on this problem.
What the hell?!!Â
I use the following code, but doesn't work
  {
CActiveScheduler *scheduler=new(ELeave)CActiveScheduler;
  CleanupStack::PushL(scheduler);
  CActiveScheduler::Install(scheduler);
CCallMonitor *observer = CCallMonitor::NewL();
CleanupStack::PushL(observer);
observer->StartMonitorL();
  CActiveScheduler::Start();
  //CActiveScheduler::Install(NULL);
  CleanupStack::PopAndDestroy(2); // scheduler, observer
}
//Â Global Functions
GLDEF_C TInt E32Main()
  {
  // Create cleanup stack
  __UHEAP_MARK;
CTrapCleanup* cleanup=CTrapCleanup::New();
  TRAPD(error,DoStartL());
  delete cleanup;
  __UHEAP_MARKEND;
  return KErrNone;
  }
What's wrong?
I'm Java(nese). I live in Java. I speak Java. But I don't write my code in Java.
Forum posts: 1246
I spent my whole weekday on this problem.
What the hell?!!
Welcome to the world of Symbian...
(sorry, couldn't resist...)