al_android_get_activity(3) al_android_get_activity(3)

al_android_get_activity - Allegro 5 API

#include <allegro5/allegro_android.h>
jobject al_android_get_activity(void)

Returns the Java Android activity used by Allegro. This is the same object created by Android from the class you specify in your manifest and either an instance of AllegroActivity or a derived class.


[Unstable API]: This API is new and subject to refinement.

Allegro reference manual