# Interacting with an android device using c ++

**URL:** <https://forums.unrealengine.com/t/interacting-with-an-android-device-using-c/465656>\
**Category:** Mobile\
**Tags:** ndk, unreal-engine, Android, Visual-Studio, question, CPP\
**Created:** [May 23, 2020, 9:22am UTC](https://forums.unrealengine.com/t/interacting-with-an-android-device-using-c/465656 "2020-05-23T09:22:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergukmusienko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sergukmusienko](https://forums.unrealengine.com/u/sergukmusienko)\
**Post date:** [May 23, 2020, 9:22am UTC](https://forums.unrealengine.com/t/interacting-with-an-android-device-using-c/465656/1 "2020-05-23T09:22:21Z")

</div>

How to access the settings of the android and ios mobile device (camera, flashlight, gyroscope, compass, location, etc.). Unreal has a plugin that shows battery power. But if I need other data, I don’t know how to do it. And is it possible to do this without using plugins?

---

<div class="post-metadata">

**Author:** ![MrMcKvarz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrMcKvarz](https://forums.unrealengine.com/u/MrMcKvarz)\
**Post date:** [June 20, 2020, 9:48pm UTC](https://forums.unrealengine.com/t/interacting-with-an-android-device-using-c/465656/2 "2020-06-20T21:48:03Z")

</div>

If you don’t want to use someone else’s plugins you’ll probably need to write native code. You can write in objective directly in your cpp files, but you need to use jni and java to do that for android.
