No, this is not a typo (more), this is a new method on Android L Preview
Mostly geniuses on google, put the ".nomedia" file in the / Android / data / folder, and this makes an attempt to use the scanFile () MediaScannerConnection method in your folder. Therefore, if you have an application that creates or downloads media, you are probably doing acrobatics right now to scan this media and make it available to your provider if you don’t have a new API that we don’t have, because each other the phone has a much older android ...
Now our workaround was to independently scan the files and paste them into the content providers that match it.
For images, for example, there is already a method that you can use MediaStore.Images.Media.insertImage (ContentResolver cr, String imagePath, line name, line description)
we posted this solution in a discussion today , and a few minutes later a Google engineer told us about Context.getExternalMediaDir (), which is supposed to give you a private path to the secondary external storage (aka, SD card) that MediaScanning supports.
"The new android.content.Context.getExternalMediaDirs () file returns the paths to these directories on all shared memory devices."
My guess (I have not tested) is that the directory path will be something like strings
/ storage / extSdCard / Android / media /
The one who started managing development decisions using an SD card is a real jerk, the motive for a bad decision, poor decision making, and hell, we've seen from Google Android the last two weeks starting to remind me of Microsoft.