Languages

Menu
Sites
Language
Failed to terminate application

Hi,

I have trouble running emulator and can't test my app well enough without it. It seems to run ok in web simulator and it also seems Tizen certification team got it to run on a Tizen device. But then my app got rejected for the following reasons:

Failed to terminate application

Abnormal operation when sleep interruption occurs

Abnormal operation when hold interruption occurs

Looks like there are problems with resume/pause events. My app is just embedded HTML5 game into Tizen web app template. Is there some additional code that needs to be implemented?

Thanks a lot,

Lubos

Responses

5 Replies
Raghavendra Reddy Shiva

As per the Tizen app design guidelines, the back button functionality needs to be supported for navigation in such a way that, if the user wants to return to the previous screen, he or she taps the Back key (hardware key on the right bottom side) or if the user is on the home screen (first screen) of the application, the app should exit or terminate.

Example:

Example:
// add eventListener for tizenhwkey
    document.addEventListener('tizenhwkey', function(e) {
        if(e.keyName == "back") {         
            if ($.mobile.activePage.attr('id') === 'main')  // the ‘main’ is the id of the first page or home page of the application
             {

                         tizen.application.getCurrentApplication().exit();

                   } else {
                        history.back();
                   }
         }
    });

For the other issues , suggest to write in “My Q&A” under Support section in Tizen store.

Nino Paolo

Just want to confirm this. How will you know if the app is terminated? 

Does terminated app will be listed under "Recently Used" on "Task switcher" (hold middle button)

or it should not be listed in "Task switcher"?

 

Marco Buettner

If you app terminated your app is showing on "Recently Used"

Nino Paolo

Thank you Marco. That's what I thought. :)

Morris

I have submitted an app to Tizen store and it fails because there is a white showing when using the back button from the home screen

The app opens a web page menu, where all the navigation is done. When the back button is pressed from the web page, a white screen appears, click back again and the app returns to the home screen. How can I remove the white blank screen?

 

Here is the ,main.js code

window.onload = function() {
    // TODO:: Do your initialization job

    // add eventListener for tizenhwkey
    document.addEventListener('tizenhwkey', function(e) {
        if (e.keyName === "back") {
            try {
                tizen.application.getCurrentApplication().exit();
            } catch (ignore) {}
        }
        else {
            history.back();}
    });

    // Sample code
    var mainPage = document.querySelector('#main');

    mainPage.addEventListener("click", function() {
        var contentText = document.querySelector('#content-text');

        contentText.innerHTML = (contentText.innerHTML === "Basic") ? "Tizen" : "Basic";
    });
};

 

and the html page

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
<script src="js/main.js"></script>
<meta http-equiv="refresh" content="0; url=bible-searches.com/Andromos1_Bible_Power/pages/main_menu.htm" />
  </head>
 </html>