tizenandroid-homebuttonhome-button

Move application to background


Similar to Android and Ios I want to move my application to background and move foreground without losing progress on opening again. How can we achieve that in Tizen. The hardware home button is doing the same how can I do that through code.


Solution

  • How about this:

    Tizen::App::UiApp::GetInstance()->GetAppFrame()->GetFrame()->SetShowState(false);
    

    Edited:

    You can reenable the form by placing the following code in your app's OnBackground():

    Tizen::App::UiApp::GetInstance()->GetAppFrame()->GetFrame()->SetShowState(true);
    Tizen::App::UiApp::GetInstance()->GetAppFrame()->GetFrame()->Show();