Back to project page OpenHSK.
The source code is released under:
This work is licensed under a Creative Commons Attribution 3.0 Unported License. Original author of word lists: http://lingomi.com/ Original author of definitions: http://cc-cedict.org Original autho...
If you think the Android project OpenHSK listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package edu.openhsk.utils; /* w w w. ja v a 2 s. c o m*/ import android.os.AsyncTask; import android.util.Log; public class AsyncSoundPlayer extends AsyncTask<Object,Integer,Boolean> { private static final String LOG_TAG = AsyncSoundPlayer.class.getSimpleName(); @Override protected Boolean doInBackground(Object... params) { String fileName = (String) params[0]; SoundManager soundManager = (SoundManager) params[1]; Log.d(LOG_TAG, "Playing soundfile " + fileName); soundManager.playSoundFile(fileName); return true; } }