<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - Moving an application to foreground / to background - Comments</title>
 <link>http://www.newlc.com/Moving-an-application-to.html</link>
 <description>Comments for &quot;Moving an application to foreground / to background&quot;</description>
 <language>en</language>
<item>
 <title>Re: Moving an application to foreground / to background</title>
 <link>http://www.newlc.com/Moving-an-application-to.html#comment-45727</link>
 <description>&lt;p&gt;Hi!&lt;/p&gt;

&lt;p&gt;Does anybody know how to bring Idle screen to foreground? I cannot find its UID or app name.&lt;br /&gt;
When I send my application to background, display returns to the Menu but I need Idle screen.&lt;/p&gt;

&lt;p&gt;Thanks in advanced!&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Fri, 11 Apr 2008 08:46:40 +0200</pubDate>
 <dc:creator>tattis</dc:creator>
 <guid isPermaLink="false">comment 45727 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: &gt; Moving an application to foreground / to background</title>
 <link>http://www.newlc.com/Moving-an-application-to.html#comment-45283</link>
 <description>&lt;p&gt;hiiii,&lt;br /&gt;
acctually i m also suffering with the same problem. if u find then help me.&lt;/p&gt;</description>
 <pubDate>Tue, 25 Mar 2008 06:29:49 +0100</pubDate>
 <dc:creator>mayur</dc:creator>
 <guid isPermaLink="false">comment 45283 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: &gt; Moving an application to foreground / to background</title>
 <link>http://www.newlc.com/Moving-an-application-to.html#comment-45148</link>
 <description>&lt;p&gt;Please can u explain me in brief about ur code. I want to know what should be the iWindowsGroupId. whether we should give any value for it.&lt;/p&gt;

&lt;p&gt;Or can u help me in writing a code for  moving any of our nokia applications to foreground from another application. Please Its urgent.&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Mon, 17 Mar 2008 10:49:22 +0100</pubDate>
 <dc:creator>shravan_vip</dc:creator>
 <guid isPermaLink="false">comment 45148 at http://www.newlc.com</guid>
</item>
<item>
 <title>crash application after bring forground</title>
 <link>http://www.newlc.com/Moving-an-application-to.html#comment-43200</link>
 <description>&lt;p&gt;hello,&lt;br /&gt;
i send my aplication to background by anyway. but when i get it to forground by pressing icon&lt;br /&gt;
of that application, it crashes after few(5 to 10) seconds.&lt;/p&gt;</description>
 <pubDate>Thu, 29 Nov 2007 11:28:39 +0100</pubDate>
 <dc:creator>mayur</dc:creator>
 <guid isPermaLink="false">comment 43200 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Moving an application to foreground / to background</title>
 <link>http://www.newlc.com/Moving-an-application-to.html#comment-658</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;Hi,
I don&#039;t want that my application(S60, 3rd Edition)  should go in background after pressing &quot;email&quot; key in E61 and pressing &quot;music key&quot; in N91. I can&#039;t able to capture these hardware keys, so please help me how can I keep my applicaton in foreground even though after pressing &quot;emai&quot; key or music key.&lt;/div&gt;</description>
 <pubDate>Tue, 06 Mar 2007 09:00:52 +0100</pubDate>
 <dc:creator>tony</dc:creator>
 <guid isPermaLink="false">comment 658 at http://www.newlc.com</guid>
</item>
<item>
 <title>Moving an application to foreground / to background</title>
 <link>http://www.newlc.com/Moving-an-application-to.html#comment-645</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Hello All,&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;(Coding for Symbian S60 phones)&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;My application &#039;A&#039; invokes browser-&gt; Now browser is in focus-&gt; Incoming call event occurs-&gt;Both &#039;A&#039; and &#039;browser&#039; loose focus--&gt;Call Ended--&gt;Browser gets focus--&gt;Browser exited --&gt; Ideally &#039;A&#039; should gain the focus.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;However HandleForegroundEventL in &#039;A&#039; is not getting called and &#039;A&#039; does not come to focus in the above scenario.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Any expert, pls let me know how get my application &#039;A&#039; back to focus.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;regards,
Bharat&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 25 Jul 2006 10:11:16 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 645 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Moving an application to foreground / to background</title>
 <link>http://www.newlc.com/Moving-an-application-to.html#comment-657</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;Yes, this has been discussed to death in the forum.&lt;/div&gt;</description>
 <pubDate>Fri, 23 Jun 2006 13:58:18 +0200</pubDate>
 <dc:creator>eric</dc:creator>
 <guid isPermaLink="false">comment 657 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Moving an application to foreground / to background</title>
 <link>http://www.newlc.com/Moving-an-application-to.html#comment-656</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;hi has anybody able to display popup on incoming call ...
can anybody suggest how to do&lt;/div&gt;</description>
 <pubDate>Fri, 23 Jun 2006 13:45:49 +0200</pubDate>
 <dc:creator>manish</dc:creator>
 <guid isPermaLink="false">comment 656 at http://www.newlc.com</guid>
</item>
<item>
 <title>Moving an application to foreground / to background</title>
 <link>http://www.newlc.com/Moving-an-application-to.html#comment-644</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;Hi All,
I&#039; m using text shell with out any UI components, but i have to capture all the keyevents in an exe. I tried to connect RWsSession but it generates e32user-base 65 panic.... 
please let me know any means of doing it....
thanks in advance
Ramesh&lt;/div&gt;</description>
 <pubDate>Thu, 20 Apr 2006 10:07:16 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 644 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Moving an application to foreground / to background</title>
 <link>http://www.newlc.com/Moving-an-application-to.html#comment-655</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;Hi,
&lt;br /&gt;&amp;mdash;&amp;nbsp;Anonymous
Did you get the solution for bringing the app when an incomming call occurs...
I am facing same kind of problem :(
Regards,
Raju&lt;/div&gt;</description>
 <pubDate>Tue, 06 Sep 2005 17:08:22 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 655 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Moving an application to foreground / to background</title>
 <link>http://www.newlc.com/Moving-an-application-to.html#comment-663</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Hi Eric!!!!
  i am writing an application for voice post it, i mean something like voice reminder (reminder reminds in the recorded voice fromat ) the GUI and recorder engine is ready but i am not getting how to approach the reminding at user input time.I mean how the user is reminded when the user input time expires. this appliaction cannot be stand alone. since i am new to symbian need help to approch this problem,plz help me. this is urgent ......plz plz plz&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;thnx a lot&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 06 Sep 2005 14:18:10 +0200</pubDate>
 <dc:creator>shrinivas</dc:creator>
 <guid isPermaLink="false">comment 663 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Moving an application to foreground / to background</title>
 <link>http://www.newlc.com/Moving-an-application-to.html#comment-654</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Hi!&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Now that was a rookie mistake :(&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;MANY MANY THANKS Eric!!!!!!!!!!!!!!!&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Hugo&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Fri, 19 Aug 2005 15:25:33 +0200</pubDate>
 <dc:creator>Hugo MaurÃ­cio</dc:creator>
 <guid isPermaLink="false">comment 654 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Moving an application to foreground / to background</title>
 <link>http://www.newlc.com/Moving-an-application-to.html#comment-653</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;Edit your MMP file so that your app links against the library that contains the missing class.&lt;/div&gt;</description>
 <pubDate>Thu, 18 Aug 2005 18:46:44 +0200</pubDate>
 <dc:creator>eric</dc:creator>
 <guid isPermaLink="false">comment 653 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Moving an application to foreground / to background</title>
 <link>http://www.newlc.com/Moving-an-application-to.html#comment-652</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Hi all!!&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;I can&#039;t connect to the RWsSession. I get the following error&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;error LNK2019: unresolved external symbol &quot;public: int __thiscall RWsSession::Connect(void)&quot;&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;I tried both Eric&#039;s and kundutech&#039;s sugestions&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Help please!!&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Many Thanks!!!!! :)  :)&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Thu, 18 Aug 2005 18:33:03 +0200</pubDate>
 <dc:creator>Hugo MaurÃ­cio</dc:creator>
 <guid isPermaLink="false">comment 652 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Moving an application to foreground / to background</title>
 <link>http://www.newlc.com/Moving-an-application-to.html#comment-643</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Well,
I have an application developed on Symbian C++. I am trying to test it on the Series 60 emulator. Say my application name is &quot;MyApp&quot;. As soon as emulator comes up, it will have all the application say PhoneBook,Socket,etc including &quot;MyApp&quot;. I will select my application &quot;MyApp&quot; and then start the application by selecting few menus. Application goes to background automatically. I have used your code task.SendToBackground() for this purpose. Immediately main menu i.e the same menu which appeared when i started the emulator gets the focus.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;What i am trying to do is to bring my application &quot;MyApp&quot; to the foreground after some time say 10seconds. For that i am referring your code. Unfortunately applicaton crashes after calling BringToForeground() function. I observed that none of the functions inside BringToForeground() crashes. Instead it crashes after few seconds of getting out of that function. If i don&#039;t call BringToForeground() my application will be in the background and works fine. That means there is some thing wrong in BringToForeground() function.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Code sniffet&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;void MyAppUi::SendToBackground()
&lt;i class=&quot;spip&quot;&gt;
	TApaTaskList tasklist(iCoeEnv-&gt;WsSession());
 	TApaTask     task(tasklist.FindApp(_L(&quot;MyApp&quot;)));
	task.SendToBackground();
&lt;/i&gt;
The above code sends &quot;MyApp&quot; to the background perfectly.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;void MyAppUi::BringToForeground()
&lt;i class=&quot;spip&quot;&gt;
	TApaTask task(iEikonEnv-&gt;WsSession( ));
	task.SetWgId(CEikonEnv::Static()-&gt;RootWin().Identifier());
	task.BringToForeground();
&lt;/i&gt;&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Calling above method BringToForeground() creates problem after few seconds. But my application has already received focus. I am not able to understand why application crashes if i use BringToForeground() method.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;If anybody has any idea, please let me know.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Thanks in advance.&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Thu, 26 May 2005 14:30:42 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 643 at http://www.newlc.com</guid>
</item>
<item>
 <title>Moving an application to foreground / to background</title>
 <link>http://www.newlc.com/Moving-an-application-to.html</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;This article will show you how you can control the behaviour of your application so that it knows when it gains or looses the screen focus and how to control it&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/Moving-an-application-to.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/Moving-an-application-to.html#comments</comments>
 <category domain="http://www.newlc.com/taxonomy/term/4">Series 60</category>
 <category domain="http://www.newlc.com/taxonomy/term/38">Series 60 (Dev)</category>
 <category domain="http://www.newlc.com/taxonomy/term/130">Generic GUI</category>
 <pubDate>Wed, 23 Jul 2003 17:24:23 +0200</pubDate>
 <dc:creator>eric</dc:creator>
 <guid isPermaLink="false">129 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
