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

Native Development

Reply
Developer
Kaz32
Posts: 236
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha
My Carrier: Telkomsel
Accepted Solution

After app close, app icon turn to gray and the app cannot launch again

[ Edited ]

Hi, I have a problem with my app

 

The problem is:

After I close my app, app icon turn to gray and app cannot launch again.

I must restart device to launch app again.

Recently I update to the latest software update (version 10.0.9.1103)

 

Before update, when I close my app, there is an error message :

"application did not handle 'exit' message and was slayed"

But after ok the message, app still can be launch again

 

How to solve this problem? 

 

Thanks a lot

 

 

 

Please use plain text.
Developer
bbquincar
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C
My Carrier: Rogers

Re: After app close, app icon turn to gray and the app cannot launch again

check out this post not sure if you have webview or ads in your app but this might help.

 

start from the first page but last page has the info the might and should help you.

 

Beta-4-WebView-app-freeze-post-exi

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality
Please use plain text.
Developer
Kaz32
Posts: 236
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha
My Carrier: Telkomsel

Re: After app close, app icon turn to gray and the app cannot launch again

Thank for your reply bbquincar,

 

Yes indeed I use webviews on my apps.

Will check the link you suggest, I hope can solve my problem.

 

Thanks

Please use plain text.
Developer
Kaz32
Posts: 236
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha
My Carrier: Telkomsel

Re: After app close, app icon turn to gray and the app cannot launch again

I have try close app from QNX System Information Perspective

And it works,

 

But on release build, is that still happen? Because need to close app again from QNX System Information Perspective.

 

Thanks

Please use plain text.
Developer
Pumano-
Posts: 215
Registered: ‎11-05-2011
My Device: Z10
My Carrier: Beeline

Re: After app close, app icon turn to gray and the app cannot launch again

allow access to local files in bar-description.xml

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: After app close, app icon turn to gray and the app cannot launch again


Kaz32 wrote:

I have try close app from QNX System Information Perspective

And it works,

 

But on release build, is that still happen? Because need to close app again from QNX System Information Perspective.


Obviously they will fix this if it's fixable, or tell us what we need to do to avoid it, if it has to be up to our apps.

 

There's still at least one more release to come before the product ships, and even that's quite a ways off yet.  This isn't something you should worry about being in the final release, but it would still be useful for everyone to continue troubleshooting and trying to narrow down exactly what the various causes are, and make sure we all understand. RIM follows these threads as well, so if they don't know what the issue is yet, they'll certainly be learning useful things from us.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
kylefowler
Posts: 526
Registered: ‎05-17-2009
My Device: 9900
My Carrier: ATT

Re: After app close, app icon turn to gray and the app cannot launch again

Peter is right, you shouldt worry about this really happening in the final OS, they should just kill it.

What is really happening here is that the process is being kept alive waiting for the app to clean itself up. It is caused by having remaining objects in the scene graph or in your classes that you havent deleted. The OS wants to make sure that all the memory is cleaned up, so it waits a certain period of time, and if things arent cleaned up by then it used to throw that dialog, the same thing is happening now without the dialog.

One way to prevent it is to make sure you have everything taken care of in the destructor of your app class or in the exit() signal in main/where ever.
Like all of my posts
Please use plain text.
Developer
bbquincar
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C
My Carrier: Rogers

Re: After app close, app icon turn to gray and the app cannot launch again

@

"One way to prevent it is to make sure you have everything taken care of in the destructor of your app class or in the exit() signal in main/where ever."

 

might help others thanks

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality
Please use plain text.
Developer
kylefowler
Posts: 526
Registered: ‎05-17-2009
My Device: 9900
My Carrier: ATT

Re: After app close, app icon turn to gray and the app cannot launch again

Application app(argc,argv);
QObject::connect(&app, SIGNAL(aboutToQuit()), &mainAppClass, SLOT(doCleanup()));

vois MainAppClass::doCleanup() {
//use delete or whatever you need to do to destroy objects in your app
delete navpane;
delete instanceofwhatever;
}

 

Like all of my posts
Please use plain text.
Developer
bbquincar
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C
My Carrier: Rogers

Re: After app close, app icon turn to gray and the app cannot launch again

sorry is there also a qml version.

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality
Please use plain text.