Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 415
Registered: ‎07-28-2010
My Device: 8000
My Carrier: hi

when application uninstalled which function get execute?

Hello friends,

                        Any one tell me when our application get uninstalled which function get execute? have we get event when our application get uninstalled.

 

thanks and regards

      ajay patil.

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: when application uninstalled which function get execute?

no.

you can get a notification afterwards using http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/CodeModuleListener.html... but thats not much use to you.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 415
Registered: ‎07-28-2010
My Device: 8000
My Carrier: hi

Re: when application uninstalled which function get execute?

thanks for reply me.

               i just want to set one value in persistance store when our application get uninstalled. how can it possible can you please give me more details about that..

 

thanks

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: when application uninstalled which function get execute?

you cannot.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 243
Registered: ‎07-22-2011
My Device: BlackBerry Z10
My Carrier: AirTel

Re: when application uninstalled which function get execute?

Hi,

 

When ever you are deleted the application the persistence also deleted from blackberry, then how can you set variable in perstience.

 

Regards,

Lakshman K

----------------------------------------------------------
Feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: when application uninstalled which function get execute?

custom persistant classes are deleted, inherent persistant classes are not.

if you store info in a hashtable (for example, it is an inherent persistant class) without using a custom class the store stays behind, with all good and bad consequences.

if you store a bean class that implements persistable it gets deleted, this can also happen on an update.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 467
Registered: ‎07-16-2009
My Device: Z10 LE
My Carrier: Vodafone NL

Re: when application uninstalled which function get execute?

That's great. I always was thinking that it's not possible to determine if app is uninstalled. But with this listener I could at least delete database and images cache data.

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: when application uninstalled which function get execute?

no, the listener gets called AFTER your app was uninstalled. and your app won't be there to listen for that event anymore...
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 246
Registered: ‎12-13-2010
My Device: Not Specified

Re: when application uninstalled which function get execute?

You have to create a "helper" application that the "main" application installs. The "helper" would watch for uninstall of "main" and "main" would watch for uninstall of "helper".
Developer
Posts: 467
Registered: ‎07-16-2009
My Device: Z10 LE
My Carrier: Vodafone NL

Re: when application uninstalled which function get execute?

I will think about it.

 

This app should get this event before device reboots, but I suppose it as we expect and also after should call self deletion.