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

New Contributor
Posts: 3
Registered: ‎10-17-2010
My Device: 9000
My Carrier: Telekom Europe

BB10 Webworks starting App as Card and/or normal



is it possible to start my App normal or in Card mode. 


The problem is the invoked Event only gets triggered when my up is invoked. The Event is not triggered when my App is started by clicking on the App Icon.


How can i differentiate between both.


Normally my App starts in the webworksready event.


I can set a global variable in the Invoked EventHandler Function that is saying my App got invoked as Card and read it in the webworksready Eventhandler Function and prevent my App from starting in normal Application mode.


Is this the way to do this? It works  but i am not sure if this is the correct way. The first start of the Card is rather slow, after the first start the Card is starting very fast because its pooled. The reason for the slow start could be because the Debugger was also connected to the Card?


My App will be used as Application, but also is usable as Card and is used by itself as Card.


Greetings Chris


Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: BB10 Webworks starting App as Card and/or normal

Yes, if you attach a debugger it can slow performance down.


Does this sample app that shows how to use cards help?




Follow me on Twitter: @n_adam_stanley
Your app doesn't work? Use BlackBerry remote web inspector to find out why.