언어 설정

Menu
Sites
Language
Back Key Problem

Hey guys!

So I tried to update my app on the store and I got this message when being rejected:
"[Defect]

The application is not terminated or the previous page does not appear when the BACK key is pressed. Ref: Please build your application on the latest SDK as possible.(SDK2.2) 



[Test Procedure]

1. Run the application.

2. Press the BACK key.

3. Check that the application operates as expected. 



[Expected Result]

When the BACK key is pressed, the application must be terminated or the previous page must appear."

I only changed the API version from 2.1 to 2.2 so I dont know how to fix that...

Any ideas?

Thanks!

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

4 댓글
Raghavendra Reddy Shiva

As per the Tizen app design guidelines, the back button functionality needs to be supported for navigation.

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.

You can use the below code, but this works only on 2.2 image, as the hardware buttons are handled from 2.2 only. So it's better using the latest SDK 2.2.

// add eventListener for tizenhwkey
    document.addEventListener('tizenhwkey', function(e) {
        if(e.keyName == "back") {         
            if ($.mobile.activePage.attr('id') === 'main')  // "main" here is the apps home page "id".
             {
               tizen.application.getCurrentApplication().exit();
             } else {
               history.back();
             }
         }
    });  

I would also suggest to write in “My Q&A” under Support section in Tizen store for any further app store related queries.

Daniel Anton

My apps is html 5 with no back button funcionality( the apps itself does not use it) but apparently if you press it, it does not go back to the menu... I already asked and they told me to ask here...

Raghavendra Reddy Shiva

Yeah, as your application doesn't have the BACK functionality implimented , it was rejected. As mentioned above just add the code to the project created on Tizen 2.2 SDK and that'll work.

Daniel Anton

Hi, sorry for very veyr late response...

I tried it and nothing

I even created an app using 2.2.1 SDK and then just copied the html files and it still didnt work!