# Android gallery update

**URL:** <https://forums.unrealengine.com/t/android-gallery-update/158404>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [February 25, 2021, 10:49am UTC](https://forums.unrealengine.com/t/android-gallery-update/158404 "2021-02-25T10:49:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikesira](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mikesira](https://forums.unrealengine.com/u/mikesira)\
**Post date:** [February 25, 2021, 10:49am UTC](https://forums.unrealengine.com/t/android-gallery-update/158404/1 "2021-02-25T10:49:24Z")

</div>

Hi, does anyone know how to update an xml intent to be compatible with API 29  
Previous I would use the Intent.ACTION\_MEDIA\_SCANNER\_SCAN\_FILE but that was deprecated in favor of using MediaStore.  
Basically how to convert this:

```
Intent scanIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
File file = new File(Filename);
Uri contentUri = Uri.fromFile(file);
scanIntent.setData(contentUri);
sendBroadcast(scanIntent);

```

to something that can add/update your asset to gallery.

Any help is appreciated.  
Thanks.
