Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Please help me out for this, i want to uninstall the application on button click, and also want to remove all persistent objects that is used in the application in blackberry.
Posted

I am done it using below code
C#
int mh = CodeModuleManager.getModuleHandle("Application_Name");
if( mh!=0 )
{
    try
    {
        int retCode = CodeModuleManager.deleteModuleEx(mh, true, true);
        System.out.println("///////////////////////////////"+ retCode);
        System.exit(0);
    }
    catch( Exception e )
    {
        System.out.println("///////////EXCEPTION///////////"+ e);
    }
}

but i still didnot get how to remove persistence object while uninstalling Application, please help me for this

Thanks & Regards
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900