Posts

Showing posts from April 3, 2019

Why did `Intent.createChooser(shareIntentWithJpgFileName)` quit working?

Image
2 Image File No Longer Passed Through Chooser The code startActivity(intent.createChooser(shareIntentWithJpgFileName)) had been working fine in my application for years, but I noticed about a month ago that it no longer passes the image file to the application that the user selects in the chooser dialog. I suspect Android OS security shuffling (again!), but not sure how to proceed. If the user selects any number of choices in the chooser dialog, the application opens, but doesn't show the .jpg that was part of the intent. If the user selects Google Drive, I get a hint of what's wrong through it's toast: Upload unsuccessful: request contained no data The Code that Used To Work: String fileName = data.getStringExtra(EXTRA_FILENAME); Log.v(TAG, "Starting Share int