Lrm Android: How to reliably trigger auto-import (from other app)?

Community Beginner ,
Jul 22, 2017

Copy link to clipboard

Copied

Hi - I'm the author of an Android photo app and would like Lightroom mobile to automatically import DNG-files produced by my app. Unfortunately, right now, I am observing the following behaviour

- My app writes a DNG (or moves it) to a folder watched by Lightroom (e.g., "~/Pictures") - no reaction/import from the Lightroom mobile app

- If I rename the DNG with a file explorer (doesn't matter to what) in the same directory, Lightroom mobile suddenly recognises the file and automatically imports it

I have confirmed that the inotify events produced by my app and the file explorer are identical. I assume Lrm uses a different mechanism to watch directories for new files. This is tested on a Samsung S8 but I have gotten similar reports for other handsets as well.

If there are any of the Lrm Android devs present here, would you mind commenting on...

- ...the logic Lrm for Android uses to recognise new picture files created

- ...how I can adapt my app, so Lrm will automatically import its outputs

Many thanks!

Correct answer by fimagena | Community Beginner

Ok, figured it out myself: In the newer versions, Lrm for Android doesn't watch the various directories itself anymore but relies on Android's MediaScanner to pick up any newly created images. Hence, when creating a new image, it is necessary to have Android trigger an index-update for Lightroom to import the picture.

Views

165

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Lrm Android: How to reliably trigger auto-import (from other app)?

Community Beginner ,
Jul 22, 2017

Copy link to clipboard

Copied

Hi - I'm the author of an Android photo app and would like Lightroom mobile to automatically import DNG-files produced by my app. Unfortunately, right now, I am observing the following behaviour

- My app writes a DNG (or moves it) to a folder watched by Lightroom (e.g., "~/Pictures") - no reaction/import from the Lightroom mobile app

- If I rename the DNG with a file explorer (doesn't matter to what) in the same directory, Lightroom mobile suddenly recognises the file and automatically imports it

I have confirmed that the inotify events produced by my app and the file explorer are identical. I assume Lrm uses a different mechanism to watch directories for new files. This is tested on a Samsung S8 but I have gotten similar reports for other handsets as well.

If there are any of the Lrm Android devs present here, would you mind commenting on...

- ...the logic Lrm for Android uses to recognise new picture files created

- ...how I can adapt my app, so Lrm will automatically import its outputs

Many thanks!

Correct answer by fimagena | Community Beginner

Ok, figured it out myself: In the newer versions, Lrm for Android doesn't watch the various directories itself anymore but relies on Android's MediaScanner to pick up any newly created images. Hence, when creating a new image, it is necessary to have Android trigger an index-update for Lightroom to import the picture.

Views

166

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 22, 2017 0
Community Beginner ,
Jul 24, 2017

Copy link to clipboard

Copied

Ok, figured it out myself: In the newer versions, Lrm for Android doesn't watch the various directories itself anymore but relies on Android's MediaScanner to pick up any newly created images. Hence, when creating a new image, it is necessary to have Android trigger an index-update for Lightroom to import the picture.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 24, 2017 0