Suppose when a user presses the End button to kill the application, I want to stop this from happening so that the user can be prompted whether they want to save the state or not?

Submitted by: Administrator
No, the application cannot stop itself from being terminated. If you must save the data, you can save it in the onAppTerminating () method, but you cannot provide any UI elements as the application is terminating. An alternative is to provide a settings page to get the user's preferences and use the appropriate logic in the onAppTerminating() method.
Submitted by: Administrator

Read Online Bada Job Interview Questions And Answers