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.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

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

Command line interface for building Titanium SDK apps

Apache-2.0
Latest version published 1 month ago

Package Health Score

76 / 100
Full package analysis