Hi All,
I have an App which runs in background when user presses Hide option let's consider on View1.
Next time,when user opens my App I don't want to show again View1 instead i want to show View2 based on some condition.For this i am overriding the AppUI method called 'HandleForegroundEventL' as specified in below link.
http://www.newlc.com/en/Moving-an-ap...to.html?page=1
Im also posting actual code for quick reference
As I expected everything working fine when i checked on Emulator,But when i check this on device it's behaving very differently.Means From other views(Ex: View3) when i click on any option which makes http connection,instead displaying connecting bar It's displaying the View2 (which im trying to display in HandleForegroundEventL method of when Focus True).and after some time Application getting crashed with KERN-EXEC 3(Which is null reference.)Code:void CMyAppUi::HandleForegroundEventL(TBool aForeground) { // Call Base class method CAknAppUi::HandleForegroundEventL(aForeground); if(aForeground) { Activating View2. } else { //Nothing to do } }
So I am unable to find out what may be the problem,One of my guess is that when it comes to Emulator im connecting to Local IP which is not displaying any connecting bar on emulator but when it comes to Mobile the same IP becomes Global IP which needs to connect through GPRS by displaying connecting bar which makiing focus to change.
Will it may be a actual problem or some thing else wrong in this?
Please help in solving this.
Thanks in advance.

Reply With Quote

