I've been trying to save screenshots of my app, which I can do but my issue is more of where to save them. If I hit the actual Android screen capture (volume down+power button) then it screen captures and goes to a folder Pictures/Screenshots and is mediately accessible from both my phone and from my computer (when it is plugged in). Ideally I'd like to replicate that some what with my own screen capturing.
I am using c++ and a native app so I used JNI to access the Environment.Pictures field and got the path (external directory) to where I should save screenshots. I can save the screenshots there but it is VERY wierd. When I save a screenshot it does not show up on the photos app (Android screencaptures do), it does not show up on my phone when I browse from my PC (Android captures do) but it does show up if I go to settings->storage->all files then navigate to the correct directory. I have to restart the phone for things to actually work correctly (they then show up in the pictures app and when I browse from the computer). I have a Nexus 5 which doesn't have an external card and so it emulates it instead which I suspect is what causes this weird behaviour.
I'm really confused as to where I can actually save my images that is also accessible to the user. I can't choose external storage since it causes this weird issue plus I can't rely on there being external storage and the other options I found in my search are to save to the private folder for my app but that won't be much use. What are my notions here? I'm not fussy about how I do this, I just wan't the user to be able to press the screenshot button (in my app), and the screenshot to be saved somewhere reasonably accessible to the user without them having to mess around. I also don't want to have to rely on external storage being present (though I can offer that as an option)
The built in screen capture isn't quite up to what I require - it always captures the navigation bar (which I can't disable) and I'd like to offer screenshots in non-native resolution too (greater than what the screen supports).
I currently use this to get the path to the pictures directory:
From what I have read external doesn't actually mean external in the sense of having an expansion slot but more 'shared' rather than private storage.
Saving the images isn't a problem, it's where to save them that is causing me a headache and all the searches I've done just say the same things (external directory or private).
Any suggestions or advice is very welcome.