---
name: "SDL_GetAndroidExternalStorageState"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GetAndroidExternalStorageState"
---

# SDL\_GetAndroidExternalStorageState(3)

Get the current state of external storage for this Android application.

## NAME

SDL\_GetAndroidExternalStorageState - Get the current state of external storage for this Android application.

## HEADER FILE

Defined in SDL3/SDL\_system.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**Uint32 SDL\_GetAndroidExternalStorageState(void);**

## DESCRIPTION

The current state of external storage, a bitmask of these values:

**SDL\_ANDROID\_EXTERNAL\_STORAGE\_READ** ,

**SDL\_ANDROID\_EXTERNAL\_STORAGE\_WRITE** .

If external storage is currently unavailable, this will return 0.

## RETURN VALUE

( **Uint32** ) Returns the current state of external storage, or 0 if external storage is currently unavailable.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_GetAndroidExternalStoragePath**(3)](/SDL_GetAndroidExternalStoragePath/3.md)
