Back to project page SpeechWriter.
The source code is released under:
MIT License
If you think the Android project SpeechWriter 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.psu.rcy5017.speechwriter.task; //w w w. j a v a 2 s.c o m import android.os.AsyncTask; import edu.psu.rcy5017.speechwriter.datasource.SpeechDataSource; import edu.psu.rcy5017.speechwriter.model.Speech; public class CreateSpeechTask extends AsyncTask<Void, Void, Speech> { private Speech speech; private final SpeechDataSource datasource; public CreateSpeechTask(SpeechDataSource datasource) { this.datasource = datasource; } @Override protected Speech doInBackground(Void... params) { datasource.open(); speech = datasource.createSpeech("New Speech"); datasource.close(); return speech; } }