Languages

Menu
Sites
Language
how to launch and quit application in the background app?

i want to make sleep timer app

 

launch another app and quit by using sleep timer application(running background)

 

is it possible?

 

as fas as i know, launching and ending is only possible with the current application

 

thanks for reading...please help me

Responses

1 Replies
Iqbal Hossain

Yes you can launch another app from your app. Follow this

function onSuccess () {
    console.log(“Launched Settings”);}

function onError () {
    console.log(“Cannot Launch Settings”);}

var appId=" com.samsung.clocksetting";    // For Samsung device
var appId2="org.tizen.clocksetting";    // For other device or Emulator     
tizen.application.launch(appId, onSuccess, onError); // appId or appId2

//config.xml

<tizen:privilege name="http://tizen.org/privilege/application.launch"/>