How to use the titanium.Activity function in titanium

To help you get started, we’ve selected a few titanium examples, based on popular ways it is used in public projects.

github appcelerator / titanium_mobile / android / runtime / common / src / js / activity.js View on Github external
var Ti = require("titanium");

var doStartActivityForResult = Ti.Activity.prototype.startActivityForResult;
Ti.Activity.prototype.startActivityForResult = function(intent, callback) {
	this.on("result", callback);
	this.on("error", callback);
	doStartActivityForResult.call(this, intent);
}
github appcelerator / titanium_mobile / android / runtime / common / src / js / activity.js View on Github external
var Ti = require("titanium");

var doStartActivityForResult = Ti.Activity.prototype.startActivityForResult;
Ti.Activity.prototype.startActivityForResult = function(intent, callback) {
	this.on("result", callback);
	this.on("error", callback);
	doStartActivityForResult.call(this, intent);
}

titanium

TiDev Titanium Command line

Apache-2.0
Latest version published 2 months ago

Package Health Score

79 / 100
Full package analysis

Similar packages