# Android SDK: Errors\_Memory\_Error. Any workarounds?

**URL:** <https://devforum.zoom.us/t/android-sdk-errors-memory-error-any-workarounds/72132>\
**Category:** Android\
**Created:** [July 13, 2022, 10:00am UTC](https://devforum.zoom.us/t/android-sdk-errors-memory-error-any-workarounds/72132 "2022-07-13T10:00:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisi](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@chrisi](https://devforum.zoom.us/u/chrisi)\
**Post date:** [July 13, 2022, 10:00am UTC](https://devforum.zoom.us/t/android-sdk-errors-memory-error-any-workarounds/72132/1 "2022-07-13T10:00:50Z")

</div>

**Description**

I’m using the Android SDK (latest as of 2022.07.13) within my application and when calling

```auto
        int ret = ZoomVideoSDK.getInstance().getShareHelper().startShareScreen(data);

```

I get the error code: `Errors_Memory_Error: (4)`

My system memory is around 800-820MB when I start the application out of 1.9GB and I’ve noticed that:

1. I sometimes get the ret val 0 and screensharing working
2. I sometimes get the ret val 4

Questions

1. What is the recommended starting memory amount of the system in order not to get this error?
2. Are there any workarounds for setting certain parameters on the sdk to potentially not hit this limit (more memory friendly options?)
3. Any debugging tips?

Thanks.

**Screenshots**

**Smartphone (please complete the following information):**  
Android 9

**Additional context**  
Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 12, 2022, 8:01pm UTC](https://devforum.zoom.us/t/android-sdk-errors-memory-error-any-workarounds/72132/2 "2022-08-12T20:01:42Z")

</div>

Closed on August 12, 2022, 8:01pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
