running mp3 player in background
Login to reply to this topic.
ven, 2008-02-01 10:05
Joined: 2007-12-07
Forum posts: 4

How to run mp3 player in background or minimise it when high priority tasks like incoming call comes.can i get peice of code or classes regarding it.


dim, 2008-03-09 18:56
Joined: 2007-09-15
Forum posts: 61

To minimize any application i.e. to take it to the background, you can look for TapaTask and related APIs it has two functions i.ee SendToBackground() ans BringToForeGround().

// Bringing the application "myApp" to background... -NS

TApaTaskList myTaskList(iCoeEnv->WsSession());
TApaTask myTask(myTaskList.FindApp(_L("myApp")));
myTask.SendToBackground(); //to take the application to the background... -NS

myTask.BringToForeground(); //to take the application to the foreground... -NS

Check these out. By default, whenever an incoming call comes, the focus will automically go to the incoming call. you need not do anythin special for that. The phone application has a higher priority value..

Cheers!!!

lun, 2008-04-07 05:51
Joined: 2008-04-02
Forum posts: 18

Hey Swetha have you resolved the issue. How you have implemented?

Actually I have done this using "Active objects", but if you know some other method please let me know also.


copyright 2003-2009 NewLC SARL