Quantcast
Viewing all articles
Browse latest Browse all 330

Detecting headphones

Hello I am developing an app for both iOS and Android, but for the time being, I am focusing on Android. It is meant for use at an art-museum, so I am not interested in any sound playing, if there are no headphones plugged in. Basically, I just need to access a boolean, that is true, when they are plugged in, and false when they are not. Simple, you would think, right? I have been googling like crazy, trying to figure this out, and it seems I need to access specific manifests in order to get this going (at least on Android). The problem, however, is that I have never worked with manifests, and it seems really confusing. Does anyone know, either how to set this up in unity, or at least know of a good tutorial about using android manifests? I would prefer help with this specific problem for now, since I am under a bit of time-pressure (University - Yay! :P ), but I would really like to learn to use android manifests later on :) I know this question has been asked before on this site, but the threads seem really old and dead, so I'm trying my own. Thanks in advance :)

Viewing all articles
Browse latest Browse all 330

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>