exe behaviour at phone power off

Login to reply to this topic.
Sat, 2006-04-15 08:55
Joined: 2005-04-08
Forum posts: 6
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

Sat, 2006-04-15 14:38
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 2009
Re: exe behaviour at phone power off
You don't have to bother.... your exe will be killed

Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Mon, 2006-04-17 15:36
Joined: 2005-04-08
Forum posts: 6
Re: exe behaviour at phone power off
hi,

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
Sat, 2007-04-28 14:58
Joined: 2006-03-21
Forum posts: 8
Re: exe behaviour at phone power off
Quote from: mikey05
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

Hi Mike,

Would you please give me hints how to run .exe in background?

I use the following code, but doesn't work Sad
Code:
LOCAL_C void DoStartL()
    {
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.

Mon, 2007-04-30 10:44
Joined: 2006-03-21
Forum posts: 8
CTelephony is not supported (was Re: exe behaviour at phone powe
Hi All,

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?!!  Afro  Evil  Angry


Quote from: halimz


I use the following code, but doesn't work Sad
Code:
LOCAL_C void DoStartL()
    {
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.

Wed, 2007-05-02 10:22
Joined: 2004-11-29
Forum posts: 1246
Re: CTelephony is not supported (was Re: exe behaviour at phone
Quote from: halimz

I spent my whole weekday on this problem.
What the hell?!!  Afro  Evil  Angry


Welcome to the world of Symbian...  Afro

(sorry, couldn't resist...)

  • Login to reply to this topic.