How to use the titanium.jpg 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-developer-relations / Forging-Titanium / ep-009 / IntentCookbook / Resources / app.js View on Github external
intent.putExtra('company', 'Appcelerator');
					return intent;
				})()
			}
		]
	},
	{
		title: 'Images, Video, & Sound',
		recipes: [
			{
				title: 'View image',
				external: true,
				intent: Ti.Android.createIntent({
					action: Ti.Android.ACTION_VIEW,
					type: 'image/jpeg',
					data: externalFiles['titanium.jpg'].nativePath
				})
			},
			{
				title: 'Capture and view image',
				external: true,
				intent: (function() {
					var intent = Ti.Android.createIntent({
						action: "android.media.action.IMAGE_CAPTURE"
					});	
					intent.putExtraUri('output', imageCaptureFile.nativePath);
					return intent;
				})(),
				callback: function(e) {
					if (imageCaptureFile.exists) {
						var intent = Ti.Android.createIntent({
							action: Ti.Android.ACTION_VIEW,
github appcelerator-developer-relations / Forging-Titanium / ep-009 / IntentCookbook / Resources / app.js View on Github external
intent: (function() {
					var intent = Ti.Android.createIntent({
						action: Ti.Android.ACTION_SEND,
						type: 'image/jpeg'
					});
					intent.putExtraUri(Ti.Android.EXTRA_STREAM, externalFiles['titanium.jpg'].nativePath);
					return intent;
				})()
			},

titanium

Command line interface for building Titanium SDK apps

Apache-2.0
Latest version published 2 months ago

Package Health Score

76 / 100
Full package analysis