[android-developers] Re: How to store videos with similar naming scheme as stock camera, but in custom camera app

2015-12-31 Thread David Karr
A negative confirmation is better than nothing, so thanks for that. At least I don't have to try any more variations of the scanner code. On Tuesday, December 29, 2015 at 12:17:23 AM UTC-8, gjs wrote: > > Hi, > > I don't think you'll get the confirmation you are seeking, but here's what > I

[android-developers] Re: How to store videos with similar naming scheme as stock camera, but in custom camera app

2015-12-29 Thread gjs
Hi, I don't think you'll get the confirmation you are seeking, but here's what I think is currently happening. (1) The (Google) Gallery app is no more, now being replaced by the (Google) Photos app. (2) Currently the (Google) Photos app appears to ignore the MediaScannerConnection calls and

[android-developers] Re: How to store videos with similar naming scheme as stock camera, but in custom camera app

2015-12-28 Thread David Karr
I'm still hoping to get some help with this. I've made no progress on this. I've yet to get any confirmation that something like this can even do what I think it's supposed to do, which is make videos recorded by a custom app be visible by the "Photos" or "Gallery" app, as if they were

[android-developers] Re: How to store videos with similar naming scheme as stock camera, but in custom camera app

2015-12-23 Thread David Karr
On Tuesday, December 22, 2015 at 10:33:17 AM UTC-8, David Karr wrote: > > On Tuesday, December 22, 2015 at 12:49:55 AM UTC-8, gjs wrote: >> >> Hi, >> >> MediaScannerConnection scanFile() (& the equivalent Intent), is just a >> request to the OS, it does provide an on completion listener to let

[android-developers] Re: How to store videos with similar naming scheme as stock camera, but in custom camera app

2015-12-22 Thread David Karr
On Tuesday, December 22, 2015 at 12:49:55 AM UTC-8, gjs wrote: > > Hi, > > MediaScannerConnection scanFile() (& the equivalent Intent), is just a > request to the OS, it does provide an on completion listener to let you > know when it is finished the request, but that doesn't necessarily mean it

[android-developers] Re: How to store videos with similar naming scheme as stock camera, but in custom camera app

2015-12-22 Thread gjs
Hi, MediaScannerConnection scanFile() (& the equivalent Intent), is just a request to the OS, it does provide an on completion listener to let you know when it is finished the request, but that doesn't necessarily mean it actually or immediately performs the 'scanning' for you request, it

[android-developers] Re: How to store videos with similar naming scheme as stock camera, but in custom camera app

2015-12-21 Thread David Karr
On Monday, December 21, 2015 at 12:08:57 AM UTC-8, gjs wrote: > > Hi, > > If your phone is not a Google Nexus variety then that's not surprising, but > Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM) > is what's recommended. > > In some respects it does not really

[android-developers] Re: How to store videos with similar naming scheme as stock camera, but in custom camera app

2015-12-21 Thread gjs
Hi again, Actually ../DCIM/Camera is the expected sub folder for the default Camera app, my apologies. What I've seen on some devices is that different apps will create additional subfolders beneath ../DCIM for example the Google Cardboard Camera app creates ../DCIM/CardboardCamera On a Non

[android-developers] Re: How to store videos with similar naming scheme as stock camera, but in custom camera app

2015-12-21 Thread gjs
Hi, If your phone is not a Google Nexus variety then that's not surprising, but Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM) is what's recommended. In some respects it does not really matter which folder you use to store media generated by your app (*), provided

[android-developers] Re: How to store videos with similar naming scheme as stock camera, but in custom camera app

2015-12-21 Thread gjs
(That's http://developer.android.com/reference/android/media/MediaScannerConnection.html in case of a broken link...) On Monday, December 21, 2015 at 7:08:57 PM UTC+11, gjs wrote: > > Hi, > > If your phone is not a Google Nexus variety then that's not surprising, but >

[android-developers] Re: How to store videos with similar naming scheme as stock camera, but in custom camera app

2015-12-20 Thread David Karr
On Saturday, December 19, 2015 at 10:34:46 PM UTC-8, gjs wrote: > > Hi, > > See http://developer.android.com/reference/android/os/Environment.html it > has methods to retrieve default paths of where photo, video files etc are > stored. > > The file naming convention should be easy enough to

[android-developers] Re: How to store videos with similar naming scheme as stock camera, but in custom camera app

2015-12-19 Thread gjs
Hi, See http://developer.android.com/reference/android/os/Environment.html it has methods to retrieve default paths of where photo, video files etc are stored. The file naming convention should be easy enough to mimic, usually being based on date time stamps. Regards On Sunday, December 20,