Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 12:15, 12 December 2007.

Detect the uninstall event inside the application

From Forum Nokia Wiki

Following information is correct for shutting down of system, not for uninstalling. I found some pointers which suggest that there is no way that we can get uninstall event. I also tried following code, but didn't get any event.


It is possible to find the uninstall or abnormal exit of an application from inside your application if you are using the S60 application framework. You have to override the CCoeAppUi::HandleSystemEventL(const TWsEvent &aEvent) to your AppUi class. Whenever a system event is generated, this function will get invoked. The paramerter aEvent will give you more information. Now check the following code, which is used to detect the uninstall event of an application.

void CMyAppUi::HandleSystemEventL(const TWsEvent& aEvent)
    {
    TApaSystemEvent systemEvent = *(TApaSystemEvent*)aEvent.EventData();
 
    switch(systemEvent)
        {
        case EApaSystemEventShutdown:
		// TODO: Do what ever is necessary here.
		// An example would be authenticate the user.
		// and if the authentication got succeed call 
		// HandleCommandL(EEikCmdExit)
		break;
        default:
            break;
        }
    }

Related Discussions
Thread Thread Starter Forum Replies Last Post
Start an application just after installation adinkesp General Symbian C++ 5 2007-08-25 22:28
Telephone Application marycore General Symbian C++ 3 2006-06-26 12:52
Install and uninstall remote sis from symbian app felixksp General Symbian C++ 6 2007-09-19 15:59
Device restarting when video is playing and a call came Sharmilasrjasthi Symbian Media (Graphics & Sounds) 6 2006-08-29 05:59
does series60 support keyRepeated() event manishfulambarkar Mobile Java General 1 2004-01-20 09:22
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX