Back to project page SMS-Generator.
The source code is released under:
Copyright (c) 2013 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without r...
If you think the Android project SMS-Generator 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 net.colindodd.smsgenerator.thread; // w ww .j a v a 2s . co m import net.colindodd.smsgenerator.messaging.MessageTask; import android.os.AsyncTask; public class GenerateMessagesTask extends AsyncTask<MessageTask, Void, Void> { private OnTaskCompleted listener; public GenerateMessagesTask setOnTaskCompletedListener(OnTaskCompleted listener) { this.listener = listener; return this; } @Override protected Void doInBackground(MessageTask... params) { params[0].generateRandomMessages(); return null; } @Override protected void onPostExecute(Void nothing){ if(listener != null) { listener.onTaskCompleted(); } } }