Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3402] test

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2016-03-22T19:34:19.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterSharif AbuDarda
AssigneeShak Hossain
Created2016-03-22T19:31:55.000+0000
Updated2016-03-22T19:34:19.000+0000

Description

Steps to Reproduce

var filename = 'someImage.jpg'; var file = Titanium.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, filename); var window = Ti.UI.createWindow({ backgroundColor : 'white' }); var imageView = Ti.UI.createImageView({ top : 0, width : '100%', image : file.nativePath }); var shareButton = Ti.UI.createView({ height : 100, width : 200, backgroundColor : 'purple', bottom : 0, }); window.add(imageView); window.add(shareButton); shareButton.addEventListener('click', function() { alert('shareClick'); var shareIntent = Ti.Android.createIntent({ action : Ti.Android.ACTION_SEND, type : 'image/jpeg' }); shareIntent.putExtra(Ti.Android.EXTRA_TITLE, 'title'); shareIntent.putExtra(Ti.Android.EXTRA_TEXT, 'text'); shareIntent.putExtraUri(Ti.Android.EXTRA_STREAM, file.nativePath); Ti.Android.currentActivity.startActivity(Ti.Android.createIntentChooser(shareIntent, 'share')); }); window.open();

Actual Result

test

Expected Result

test

Attachments

FileDateSize
.log2016-03-22T19:32:48.000+00002834008
diagnostic5635592284493218885.log2016-03-22T19:33:27.000+0000850155

Comments

No comments

JSON Source