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

Web and WebWorks Development

Reply
Developer
miamon
Posts: 181
Registered: ‎08-17-2008
My Device: Red BlackBerry Z10
Accepted Solution

2 icons appears: requestBackground, runOnStartup

[ Edited ]

Hi,

 

I have an app with:

 

function init() {
blackberry.app.event.onExit(handleExit);
blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK, handleExit);
blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_ENDCALL, handleExit);
createMenu();
}

function handleExit() {
blackberry.app.requestBackground();
}

 

and on config.xml
  <content src="index.htm">
    <rim:background src="index.htm" runOnStartup="true" />
  </content>

 

So it's working all fine. App is running OnStartup, KEY_BACK and KEY_ENDCAL the app go to Background ...

 

But.... if I have my app on Background and on Home Screen I do a click on my app icon, then a new instance of the App is opened :smileysad:

 

backgorund.jpg

 

I tested on: 9520 with OS 5, 9700 OS6, 9800 with OS 6.0. In all devices the same problem appears.

 

Compiled with BlackBerry WebWorks SDK v2.0.0.

 

Anybody can help me? 

 

Thanks in advance

 

 

Josep Maria
Please use plain text.
Developer
agungeddy
Posts: 164
Registered: ‎08-26-2010
My Device: Not Specified

Re: 2 icons appears: requestBackground, runOnStartup

[ Edited ]

looks like doesn't occured in previous version of webworks SDK.

Have you try and compare it when run in previous version of webworks SDK??

Please use plain text.
Developer
miamon
Posts: 181
Registered: ‎08-17-2008
My Device: Red BlackBerry Z10

Re: 2 icons appears: requestBackground, runOnStartup

Yes,

Seems it's a bug on 2.0 SDK :smileysad:

on previous versions works fine this code.
Josep Maria
Please use plain text.
Developer
agungeddy
Posts: 164
Registered: ‎08-26-2010
My Device: Not Specified

Re: 2 icons appears: requestBackground, runOnStartup

So you can send the bug report to the RIM development team

Please use plain text.
Developer
miamon
Posts: 181
Registered: ‎08-17-2008
My Device: Red BlackBerry Z10

Re: 2 icons appears: requestBackground, runOnStartup

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: 2 icons appears: requestBackground, runOnStartup

I had originally thought this issue was resolved with the 2.0 SDK... We have the issue logged and someone looking into it.. hopefully we can get it fixed up for the next release.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Developer
miamon
Posts: 181
Registered: ‎08-17-2008
My Device: Red BlackBerry Z10

Re: 2 icons appears: requestBackground, runOnStartup

I am Interested to know if in the next Device SDK this problem is resolved. 

 

Thanks in advance,

Josep Maria
Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: 2 icons appears: requestBackground, runOnStartup

This is now fixed in the release due to come out in the next day or so.. the v2.1 Smartphone WebWorks SDK is just about to be released.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Developer
miamon
Posts: 181
Registered: ‎08-17-2008
My Device: Red BlackBerry Z10

Re: 2 icons appears: requestBackground, runOnStartup

Great!! Thanks Tim.
Josep Maria
Please use plain text.
Developer
miamon
Posts: 181
Registered: ‎08-17-2008
My Device: Red BlackBerry Z10

Re: 2 icons appears: requestBackground, runOnStartup

 
Josep Maria
Please use plain text.