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
Contributor
bubble7th
Posts: 27
Registered: ‎01-20-2011
My Device: Bold
My Carrier: Developer
Accepted Solution

how to close the bb tablet application

hi all i'm trying to create a button to close the apliction

 

i use this function

 

function close(){
        exit();
    }

 

i got this function from another thread

 

i'll already set the permission for feature

 

blackberry.app

blackberry.app.event

blackberry.system

blackberry.system.event

 

but still doesn't work

 

---------------------------------------------------------------
Best Regards

William
Please use plain text.
Developer
Heiko
Posts: 125
Registered: ‎01-17-2011
My Device: Playbook
My Carrier: Vodacom

Re: how to close the bb tablet application

 

Hi

 

try:

 

 

blackberry.app.exit()

 

 

instead of just

 

 

exit()

 

 :smileywink:

 

 

.H

Please use plain text.
Developer
Heiko
Posts: 125
Registered: ‎01-17-2011
My Device: Playbook
My Carrier: Vodacom

Re: how to close the bb tablet application

 

 

Just incase you haven't got the link:

 

See WebWorks API Reference

   http://www.blackberry.com/developers/docs/widgetapi/

 

and if you go to System->Application link,

it shows what "feature" to include to use the application object - i.e. blackberry.app

and there's also a code example on how to the object.

 

.H

 

Please use plain text.
Contributor
bubble7th
Posts: 27
Registered: ‎01-20-2011
My Device: Bold
My Carrier: Developer

Re: how to close the bb tablet application

thx u so much heiko, it work nicely

---------------------------------------------------------------
Best Regards

William
Please use plain text.