---
name: "SDL_SendAndroidMessage"
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_SendAndroidMessage"
---

# SDL\_SendAndroidMessage(3)

Send a user command to SDLActivity.

## NAME

SDL\_SendAndroidMessage - Send a user command to SDLActivity.

## HEADER FILE

Defined in SDL3/SDL\_system.h

## SYNOPSIS

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

**bool SDL\_SendAndroidMessage(Uint32 command, int param);**

## DESCRIPTION

Override "boolean onUnhandledMessage(Message msg)" to handle the message.

## FUNCTION PARAMETERS

- *command*

  user command that must be greater or equal to 0x8000.

- *param*

  user parameter.

## RETURN VALUE

Returns true on success or false on failure; call

**SDL\_GetError** () for more information.

## THREAD SAFETY

It is safe to call this function from any thread.

## AVAILABILITY

This function is available since SDL 3.2.0.
