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
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

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

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

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

Re: restart application programaticaly

i want to restart the app on button click.

Developer
peter_strange
Posts: 19,610
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?