# UE for Android with Java libs and Kotlin game logic?

**URL:** <https://forums.unrealengine.com/t/ue-for-android-with-java-libs-and-kotlin-game-logic/460407>\
**Category:** Mobile\
**Tags:** apk, unreal-engine, Android, java, question\
**Created:** [January 10, 2020, 7:34pm UTC](https://forums.unrealengine.com/t/ue-for-android-with-java-libs-and-kotlin-game-logic/460407 "2020-01-10T19:34:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![travisfw](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@travisfw](https://forums.unrealengine.com/u/travisfw)\
**Post date:** [January 10, 2020, 7:34pm UTC](https://forums.unrealengine.com/t/ue-for-android-with-java-libs-and-kotlin-game-logic/460407/1 "2020-01-10T19:34:41Z")

</div>

TL;DR: For a prospective project, I would have to write most of an Android app in Java or Kotlin, including game logic, but not UI. Is this officially supported?

I’m considering using UE for a future Android project. It would be significantly data-driven, so I’d need to do resource management in Java/Kotlin, back-end api socket management, and necessary dependencies on java bytecode-based libraries. A lot of the business logic/game logic would have to be able to be written in Kotlin for UE4 to be a viable option. Is there an officially supported method for building such an app for Android? _The following is just discussion:_

There are a number of ways I could imagine that interop happening. I’m expecting something like, that Java (ART) code would listen on an event bus for events I would raise with blueprints. I’d expect hooks for resource management on startup and shutdown, plus maybe [Android Activity lifecycle](https://developer.android.com/guide/components/activities/activity-lifecycle) events. I would expect threading to be entirely decoupled.

Alternatively, I suppose I could somehow try to manage the UE lifecycle from an Android app, essentially embedding the engine. It seems like that must necessarily be problematic. I don’t know much about UE’s requirements, and I’d much rather have UE do what it does however its developers designed it.

---

<div class="post-metadata">

**Author:** ![RaidenMotion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RaidenMotion](https://forums.unrealengine.com/u/RaidenMotion)\
**Post date:** [August 28, 2020, 1:21pm UTC](https://forums.unrealengine.com/t/ue-for-android-with-java-libs-and-kotlin-game-logic/460407/2 "2020-08-28T13:21:16Z")

</div>

This envirement and this architecture would be more efficient if the JVM and UE could share over networks in a good resources optimisation, i will be glad to contribute on this project.
