public class MyClass extends Activity { private class myTask extends AsyncTask<Void, Void, Void> { //initiate vars public myTask() { super(); //my params here } protected Void doInBackground(Void... params) { //do stuff return null; } @Override protected void onPostExecute(Void result) { //do stuff myMethod(myValue); } } private myHandledValueType myMethod(Value myValue) { //handle value return myHandledValueType; }}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)