Languages

Menu
Sites
Language
Problem launching browser from web app

Hello,

When trying to launch the browser from within my web app on the test device nothing happens and I don't get any error message. I did include the privilige 'http://tizen.org/privilege/application.launch' in the file 'config.html'. I'm using Tizen SDK 2.1 and I don't have this problem in my native apps.

Any ideas on how to solve this problem?

My code:

var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view", url, null, null);
tizen.application.launchAppControl(appControl, 0, null, null, null);

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

Responses

1 Replies
Marco Buettner
try this
var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view", url, null);
			
			var appControlReplyCallback =
			{
				onsuccess: function(data)
				{
					for (var i = 0; i < data.length; i++)
					{
						console.log("#" + i + " key:" + data[i].key);
						for (var j = 0; j < data[i].value.length; j++)
						{
							console.log("   value#" + j + ":"+data[i].value[j]);
						}
					}
				},

				onfailure: function()
				{
					console.log('The launch application control failed');
				}
			}

			tizen.application.launchAppControl(appControl, null, function() {console.log("launch application control succeed"); }, function(e) {console.log("launch application control failed. reason: " + e.message); }, appControlReplyCallback );