Closed MahmoudElmoghazy closed 7 years ago
Let us screen share
Check thus
You are right: this are the methods: getFile()
Thanks put this option doesn't make any thing it doesn't work
I finally found the solution
var intent = Ti.Android.createIntent({
action: Ti.Android.ACTION_GET_CONTENT,
type: "application/pdf"
});
var x = Ti.Android.createIntentChooser(intent, "Select");
$.win.getActivity().startActivityForResult(x, function(e) {
try {
var file = Ti.Filesystem.getFile(e.intent.data);
Ti.API.info("file is: " + file);
} catch (error) {
console.error("This is error : " + error);
}
});
I finally found the solution
var intent = Ti.Android.createIntent({ action: Ti.Android.ACTION_GET_CONTENT, type: "application/pdf" }); var x = Ti.Android.createIntentChooser(intent, "Select"); $.win.getActivity().startActivityForResult(x, function(e) { try { var file = Ti.Filesystem.getFile(e.intent.data); Ti.API.info("file is: " + file); } catch (error) { console.error("This is error : " + error); } });
It is not working ..
When i try to run the file picker it return this issue Object # has no method 'getFileSelectDialog'