언어 설정

Menu
Sites
Language
"app has closed unexpectedly" when using exit

I'm running Tizen_Ref.Device-210_20130220.1551 on a developer device. My app contains a button that when clicked will run:

 

         var app = tizen.application.getCurrentApplication();
          app.exit();
 
When the app exits, a dialog appears stating that the app "has closed unexpectedly".
 
Does anyone have any experience with this problem?
Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

6 댓글
rb s
You are doing something wrong and because of this your application closed unexpectedly. Can you share more code snippets because from two line code not able to understand what you are doing wrong?. On Button click which function you are calling, Please give all details so that you will get help. Regards,
jezra
here is all of the code that my test app is using: <html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>A Test</title>
      <script type='text/javascript'>
        function run() {
          var app tizen.application.getCurrentApplication();
          app.exit();
        }
  </script>
  </head>
  <body bgcolor='black'>
    <img src="icon.png"/>
    <br />
    <button onclick="run();">Click Me</button>
  </body>
</html>
rb s
You have declared variable app and calling exit function so it will exit from your application. You can exit or hide the current application using the getCurrentApplication() method. Try below code in run function,which gives you the application id of your application. function run() { var app = tizen.application.getCurrentApplication(); alert("Current application's app id is " + app.appInfo.id); }
jezra
From my original post: When the app exits, a dialog appears stating that the app "has closed unexpectedly". The application exits as it should, the problem is with the dialog that pops up after my app has closed.
kavish
I have tested your code but working fine for me. I am not getting such error “app has closed unexpectedly". Provides the steps to reproduce your issue, so that it will help to solve your problem. Regards,
jezra
The steps are fairly simple 1. make a widget 2. install widget on LunchBox running Tizen_Ref.Device-210_20130220.1551 3. run application