share-intent

Custom intent-chooser - why on Android 6 does it show empty cells?

孤街醉人 提交于 2019-12-03 22:38:55
问题 Background I wish to show the native intent-chooser, while having the ability to customize it a bit. For this, I've found the next StackOverflow thread: How to customize share intent in Android? The problem Thing is, when I use the suggested code on Android 5.x and below, everything seems to be fine, but when I use it on Android 6.0.1 (tested on Nexus 5 and emulator, when having multiple apps to share content with) , I get empty cells and sometimes even empty app names, as such: This doesn't

Custom intent-chooser - why on Android 6 does it show empty cells?

瘦欲@ 提交于 2019-12-01 01:53:06
Background I wish to show the native intent-chooser, while having the ability to customize it a bit. For this, I've found the next StackOverflow thread: How to customize share intent in Android? The problem Thing is, when I use the suggested code on Android 5.x and below, everything seems to be fine, but when I use it on Android 6.0.1 (tested on Nexus 5 and emulator, when having multiple apps to share content with) , I get empty cells and sometimes even empty app names, as such: This doesn't appear when using the non-customized intent-chooser: startActivity(Intent.createChooser(intent,

share intent text in android studio using kotlin

你说的曾经没有我的故事 提交于 2019-11-30 15:21:25
I want to share text in my CardView using share Intent using kotlin but there is a problem with last line in the code in kotlin the code val shareIntent = Intent() shareIntent.action = Intent.ACTION_SEND shareIntent.putExtra(Intent.EXTRA_STREAM, "ali") shareIntent.type = "text/plain" startActivity(Intent.createChooser(shareIntent, getResources().getText(R.string.send_to))) here is the problem in the code startActivity(Intent.createChooser(shareIntent, getResources().getText(R.string.send_to))) please help me see the images to understand me images https://ibb.co/jQwYXw https://ibb.co/id0tXw

Share image and text through Whatsapp or Facebook

邮差的信 提交于 2019-11-26 19:47:40
I have in my app a share button and i want to share an image and a text at the same time. In GMail it works fine but in WhatsApp, only the image is sent and in Facebook the app crashes. The code i use to share is this: Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.setType("image/*"); shareIntent.putExtra(Intent.EXTRA_TEXT, "Message"); Uri uri = Uri.parse("android.resource://" + getPackageName() + "/drawable/ford_focus_2014"); try { InputStream stream = getContentResolver().openInputStream(uri); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e