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
Super Contributor
Achin
Posts: 425
Registered: ‎01-02-2013
My Device: BOLD 9900
My Carrier: sdvsdvsd
Accepted Solution

restart application programaticaly

hi,
     i have a button and on the button click how can i restart the app programatically or is there any code to restart app

Please use plain text.
Developer
simon_hain
Posts: 15,806
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: restart application programaticaly

you can use ApplicationManager to schedule your application, and System.exit to quit the app.

Why that should be necessary is a different question.
----------------------------------------------------------
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.
Super Contributor
Achin
Posts: 425
Registered: ‎01-02-2013
My Device: BOLD 9900
My Carrier: sdvsdvsd

Re: restart application programaticaly

actually, i have update button in my app and after updating the app i want to restart the app to make changes to apply the update
Please use plain text.
Super Contributor
Achin
Posts: 425
Registered: ‎01-02-2013
My Device: BOLD 9900
My Carrier: sdvsdvsd

Re: restart application programaticaly

i want to restart the app on button click.

Please use plain text.
Developer
peter_strange
Posts: 19,595
Registered: ‎07-14-2008
My Device: Not Specified

Re: restart application programaticaly

Please use the search facility BEFORE you post a question.

 

You have been programming BB long enough to know how to process a button click, so I presume the issue here is the restart.  Typing restart in the search box will find a KB article that tells you how to do this.

 

Can you mark this as solved too?

Please use plain text.