Display notification to user from EXE

Login to reply to this topic.
Thu, 2006-02-02 18:10
Joined: 2006-02-02
Forum posts: 4
Hi

I have a background EXE that periodically wakes up ,downloads some stuff  and then has to display a notification dialog to the user (modal dialog).
Firstly, - can we display notification dialog from an EXE or does it have to be an app?
Next- Is there a uniform way of doing this across all Symbian phones or is it diff on series 60 vs 80 vs UIQ.
Any help is appreciated

Fri, 2006-02-03 08:47
Joined: 2005-03-04
Forum posts: 176
Re: Display notification to user from EXE
How about:
Code:
void ShowGlobalNoteL(const TDesC& txt)
{
CAknGlobalNote* note = CAknGlobalNote::NewL();
CleanupStack::PushL(note);
TRequestStatus stat = KRequestPending;
note->SetSoftkeys(R_AVKON_SOFTKEYS_OK_EMPTY);
note->ShowNoteL(stat, EAknGlobalInformationNote, txt);
User::WaitForRequest(stat);
CleanupStack::PopAndDestroy(note);
}

This code is working for S60 (CAknGlobalNote). I don't think, theres something like CEikGlobalNote, so it will not run under all versions...  Cry

regards;
CG
Sat, 2006-02-04 21:24
Joined: 2006-02-02
Forum posts: 4
Re: Display notification to user from EXE
Hi

Thanks for the code. I am able to get it working in S60 emulator for a GUI app but if I have the same code in a EXE (non-GUI, console based) and run it nothing happens. I am able to build the project successfully by including the right files. Is there a way to make a dialog appear on the front screen from a background running process (EXE , non-gui). I am new to Symbian so bear with me if my terminology is a little off.
Tue, 2006-02-07 09:02
Joined: 2005-03-04
Forum posts: 176
Re: Display notification to user from EXE
Sorry, i'm not sure what will  be your problem. This code will run in an EXE(!) for me.
Are you sure the code will be really called? I use it in a hidden server-task and it will run on 6600, 6630, 6680, N70 and N90. Please Check if the funtion gets really called!

Bye;
CG
Wed, 2006-05-10 11:04
Joined: 2005-10-10
Forum posts: 37
Re: Display notification to user from EXE
Hi there,

I'm in the process of writing an EXE.  What i want to know is how i get this exe executing / running???

I'm not able to find a lot of information regardin this...

Can u help me out...

Thanks...

The Cruise is on...

Wed, 2006-05-10 11:19
Joined: 2005-03-04
Forum posts: 176
Re: Display notification to user from EXE
Start it with a client (APP) or by a recog (e.g. at boot-time) or test it by clicking on it with FExplorer...

regards;
CG
Wed, 2006-05-10 12:21
Joined: 2005-07-18
Forum posts: 33
Re: Display notification to user from EXE
Have a look at:

» UIQ 3 SDK » Symbian OS v9.1 » Symbian OS guide » Base » Using User Library (E32) » Inter Process Communication » Using Notification Services

See if this solves your problem or if I´m way of.
If this is what you are looking for, then you can see that this is Symbian code so it should work regardless of UIQ or S60.

If its something else you´re looking for please let us know.

Good luck and Happy Coding.  Grin
Wed, 2006-05-10 12:24
Joined: 2005-10-10
Forum posts: 37
Re: Display notification to user from EXE
I'm working on UIQ 2.1.

I have an application written... Now i need to convert it into an EXE.  I'm in the process of doing it but i dint know how to start it up... 

I also dont have any debugging tools to see how it's working.  This application acts upon attending a phone call...

The Cruise is on...

Wed, 2006-05-10 13:00
Joined: 2005-03-04
Forum posts: 176
Re: Display notification to user from EXE
Write an small  APP that will only start/kill your EXE...
If you are ready with your program, you can use EzBoot (i think there was a UIQ-version), or write a recog by yourself.

bye;
CG
  • Login to reply to this topic.