www/startApp.manually.js
function(params, extra) {
		var output = [params];
			
		if(extra != undefined) {
			output.push(extra);
		}
		else {
			output.push(null);
		}
		
		return {
			start: function(completeCallback, errorCallback, messageCallback) {
				completeCallback = completeCallback || function() {};
				errorCallback = errorCallback || function() {};
				messageCallback = messageCallback || function() {};
				
				exec(function(result) {
				    if(result === "OK") {
				        completeCallback(result);
				    }
				    else {
				        var requestCode = result["_ACTION_requestCode_"];
				        delete result["_ACTION_requestCode_"];

				        var resultCode = result["_ACTION_resultCode_"];
				        delete result["_ACTION_resultCode_"];

				        messageCallback(result, requestCode, resultCode);
				    }
				}, errorCallback, "startApp", "start", output);
			},
			check: function(completeCallback, errorCallback) {
				completeCallback = completeCallback || function() {};
				errorCallback = errorCallback || function() {};
				
				exec(completeCallback, errorCallback, "startApp", "check", output);
			},
			receiver: function(completeCallback, errorCallback, messageCallback) {
				completeCallback = completeCallback || function() {};
				errorCallback = errorCallback || function() {};
				messageCallback = messageCallback || function() {};

				exec(function(result) {
				    if(/\d+/.test(result)) {
				        completeCallback(result);
				    }
				    else {
				        var action = result["_ACTION_VALUE_FORMAT_"];
				        delete result["_ACTION_VALUE_FORMAT_"];

				        messageCallback(action, result);
				    }
				}, errorCallback, "startApp", "receiver", output);
			}
		}
	}
function(params, extra) {
		var output = [params];
			
		if(extra != undefined) {
			output.push(extra);
		}
		else {
			output.push(null);
		}
		
		return {
			start: function(completeCallback, errorCallback, messageCallback) {
				completeCallback = completeCallback || function() {};
				errorCallback = errorCallback || function() {};
				messageCallback = messageCallback || function() {};
				
				exec(function(result) {
				    if(result === "OK") {
				        completeCallback(result);
				    }
				    else {
				        var requestCode = result["_ACTION_requestCode_"];
				        delete result["_ACTION_requestCode_"];

				        var resultCode = result["_ACTION_resultCode_"];
				        delete result["_ACTION_resultCode_"];

				        messageCallback(result, requestCode, resultCode);
				    }
				}, errorCallback, "startApp", "start", output);
			},
			check: function(completeCallback, errorCallback) {
				completeCallback = completeCallback || function() {};
				errorCallback = errorCallback || function() {};
				
				exec(completeCallback, errorCallback, "startApp", "check", output);
			},
			receiver: function(completeCallback, errorCallback, messageCallback) {
				completeCallback = completeCallback || function() {};
				errorCallback = errorCallback || function() {};
				messageCallback = messageCallback || function() {};

				exec(function(result) {
				    if(/\d+/.test(result)) {
				        completeCallback(result);
				    }
				    else {
				        var action = result["_ACTION_VALUE_FORMAT_"];
				        delete result["_ACTION_VALUE_FORMAT_"];

				        messageCallback(action, result);
				    }
				}, errorCallback, "startApp", "receiver", output);
			}
		}
	}
function ( params , extra ) { var output = [ params ] ; if ( extra != undefined ) { output . push ( extra ) ; } else { output . push ( null ) ; } return { start : function ( completeCallback , errorCallback , messageCallback ) { completeCallback = completeCallback || function ( ) { } ; errorCallback = errorCallback || function ( ) { } ; messageCallback = messageCallback || function ( ) { } ; exec ( function ( result ) { if ( result === "OK" ) { completeCallback ( result ) ; } else { var requestCode = result [ "_ACTION_requestCode_" ] ; delete result [ "_ACTION_requestCode_" ] ; var resultCode = result [ "_ACTION_resultCode_" ] ; delete result [ "_ACTION_resultCode_" ] ; messageCallback ( result , requestCode , resultCode ) ; } } , errorCallback , "startApp" , "start" , output ) ; } , check : function ( completeCallback , errorCallback ) { completeCallback = completeCallback || function ( ) { } ; errorCallback = errorCallback || function ( ) { } ; exec ( completeCallback , errorCallback , "startApp" , "check" , output ) ; } , receiver : function ( completeCallback , errorCallback , messageCallback ) { completeCallback = completeCallback || function ( ) { } ; errorCallback = errorCallback || function ( ) { } ; messageCallback = messageCallback || function ( ) { } ; exec ( function ( result ) { if ( / \d+ / . test ( result ) ) { completeCallback ( result ) ; } else { var action = result [ "_ACTION_VALUE_FORMAT_" ] ; delete result [ "_ACTION_VALUE_FORMAT_" ] ; messageCallback ( action , result ) ; } } , errorCallback , "startApp" , "receiver" , output ) ; } } }
Set application params

@param {Mixed} params				params, view documentation https://github.com/lampaa/com.lampa.startapp
@param {Mixed} extra   				Extra fields
@param {Function} errorCallback		The callback that is called when an error occurred when the program starts.
Set application params