# Is it necessary to load the fmod.jar file from an activity derived class?

**URL:** https://qa.fmod.com/t/is-it-necessary-to-load-the-fmod-jar-file-from-an-activity-derived-class/21310
**Category:** FMOD Engine
**Tags:** android
**Created:** [March 1, 2024, 12:35am UTC](https://qa.fmod.com/t/is-it-necessary-to-load-the-fmod-jar-file-from-an-activity-derived-class/21310 "2024-03-01T00:35:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![emptyclip](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@emptyclip](https://qa.fmod.com/u/emptyclip)
#### Post date: [March 1, 2024, 12:35am UTC](https://qa.fmod.com/t/is-it-necessary-to-load-the-fmod-jar-file-from-an-activity-derived-class/21310/1 "2024-03-01T00:35:34Z")

</div>

Hey guys,  
Our title uses the non-java native activity (native\_glue\_wrapper.c). Do we need to use the fmod.jar library? I think it mentions asset loading as one item. If we do, can we do all of this from custom JNI calls?

Thank you!  
Matt

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [March 1, 2024, 5:29am UTC](https://qa.fmod.com/t/is-it-necessary-to-load-the-fmod-jar-file-from-an-activity-derived-class/21310/2 "2024-03-01T05:29:39Z")

</div>

We require [fmod.jar to be included](https://fmod.com/docs/2.02/api/platforms-android.html#java) for our threads and various other essential services, but you only need to initialize it from an Activity if you want to use our asset loading and automatic latency configuration.

It looks like `org.fmod.FMOD.init` is also required for headset change detection on some devices (historically Samsung devices) when using [AAudio](https://fmod.com/docs/2.02/api/core-api-system.html#fmod_outputtype_aaudio). If this is a problem and you don’t want to have any Activities at all you can use the [OpenSL](https://fmod.com/docs/2.02/api/core-api-system.html#fmod_outputtype_opensl) output type.

Other than that, you could potentially call into the jar yourself with JNI, but we don’t have any publicly supported API for that. We could look into making one available for situations like this, but for now it would probably be best to add a Java activity if you want any of the above mentioned features.
