Search code examples
androidmedia-player

How can i check if there is a speaker that i can use on device?


Actually i'm developing an app for Zebra MC3300 that previously was developed for another device where all was working as well but on MC3300 the app crash every time i'm trying to use MediaPlayer with the following error:

QCMediaPlayer could not be located....

So i'm starting to think that this device doesn't have any speacker but actually on it specsheet it says that the device has it.

So the question it how can i test for any available speacker?


Solution

  • That device does have a speaker - you can see from the integration guide at https://www.zebra.com/content/dam/zebra_new_ia/en-us/manuals/mobile-computers/mc33-android-v8.1-ug-en.pdf (table 3). Looks like the device does not support QCMediaPlayer - this answer is related: Why MediaPlayer throws NOT present error when creating instance of it?