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
New Contributor
rekbun
Posts: 9
Registered: ‎10-07-2011
My Device: blackberry torch

delete a message from global message list when my application crashes

Hi all

 

I want to know is there any way to delete my messages from the global message list when ever my application crashes.

 

When ever my application crashes and when i click on my messages generated through my application ,

 

as there is no reference for my application . it says starting myapp : null

 

i want to delete those messages  which were in my app using my app i.e through code

 

 

please help!!

Please use plain text.
Developer
simon_hain
Posts: 16,137
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: delete a message from global message list when my application crashes

maybe a watchdog process running in the background?
----------------------------------------------------------
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
Please use plain text.
New Contributor
rekbun
Posts: 9
Registered: ‎10-07-2011
My Device: blackberry torch

Re: delete a message from global message list when my application crashes

can you please explain it.. bcoz point is there any way i could delete those orphaned messages of my crashed which resides in the global message list when my applicatio restarts.

 

or could rebind my messages with my app when i restart my app.

 

Regards

RAkesh

Please use plain text.
Developer
simon_hain
Posts: 16,137
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: delete a message from global message list when my application crashes

you can place them in the runtimestore and allow your background app to remove them, for example.
----------------------------------------------------------
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
Please use plain text.
New Contributor
rekbun
Posts: 9
Registered: ‎10-07-2011
My Device: blackberry torch

Re: delete a message from global message list when my application crashes

hey thanks for help ..but the problem is messages are registered to my uiApplication ..which receives messages and put them in global message list .

 

i having a run time store to keep my messages but as message folder which i have registered with message registry is with my uiapplication.every time it crashes the messages in the global message list looses the reference and thus 

 

there is no way to access . Even if i keep background app it can delete my messages from the run time store but it won't affect the global message lis.

 

So please tell what should i do.

 

regards

Rakesh Kumar

Please use plain text.
Developer
simon_hain
Posts: 16,137
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: delete a message from global message list when my application crashes

put the whole message list into runtime store. or control the message list with your background app.
or don't let your main application crash :smileyhappy:
----------------------------------------------------------
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
Please use plain text.
New Contributor
rekbun
Posts: 9
Registered: ‎10-07-2011
My Device: blackberry torch

Re: delete a message from global message list when my application crashes

Actually what happens is it says dead process still active

it happens because I cannot unregister my app and a crash occurs.

 

So is there a way i can get rid of that dead process. or unregister the message app when my app starts next time.

Please use plain text.
Developer
simon_hain
Posts: 16,137
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: delete a message from global message list when my application crashes

yes, by using runtimestore
----------------------------------------------------------
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
Please use plain text.