Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Android send intent opens empty documents chooser on Android 4.4.2

$
0
0

I have some code to share a bit of text using the SEND intent. It works fine (opens the intent chooser) on all Android versions up to 4.4.2.

On 4.4.2, a window titled "Documents" opens, which is empty. There is nothing the user can do in that window as far as I can see.

Screenshot: https://www.dropbox.com/s/pr2r84b1yjyxrne/Screenshot%202014-06-27%2014.36.15.png

Here is the intent code:

var intent = Ti.Android.createIntent({
    action: Ti.Android.SEND,
    type: 'text/plain'
});
 
intent.putExtra(Ti.Android.EXTRA_TEXT, "Text to share");
 
var chooser = Ti.Android.createIntentChooser(intent, "Share via");
Ti.Android.currentActivity.startActivity(chooser);
Is this a bug? If I use the emailDialog on the same device, it presents a chooser with a list of email clients as expected, so somehow that code to open an intent chooser works but the generic intent chooser code does not.

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>