English Forum

Flash

Restart Application after exit English Forum > Flash

  • Reply 1
  • View 217

Hi there,


I have a problem.


When press RETURN key on home page of my application, the confirm popup is fired up.

When I press YES the application is exit, but also restart.


here is the code:



if (this.yes.selected)

NativeApplication.nativeApplication.exit();

else

PopUpManager.removePopUp(this);




thanks

What do you think about this article?

UP 0

DOWN 0

BOOK MARK 0

RE :

quote

This has been quoted from [info]'s post.

Hi there,


I have a problem.


When press RETURN key on home page of my application, the confirm popup is fired up.

When I press YES the application is exit, but also restart.


here is the code:



 

if (this.yes.selected)

 

NativeApplication.nativeApplication.exit();

else

PopUpManager.removePopUp(this);


 



thanks

 Hi,

I have found a link in which there is a sample app for creating a confirmation dialog when exit/return buttons pressed, to ask a user if he really wants to exit.

Refer the link http://samsungdforum.com/Guide/art00024/index.html for the same.

Also find the attached sample app to create the exit popup in a JavaScript app.

Hope it helps but if still you face same issue then share your complete code with your device detail(Model Code and firmware version)for more help.