80,351
社区成员
发帖
与我相关
我的任务
分享
private class GetNewDataTask extends AsyncTask<Void, Void, Void>
{ ... }
Constructor c = GetNewDataTask.class.getConstructor();
AsyncTask<Void, Void, Void> at = (AsyncTask<Void, Void, Void>)c.newInstance();
java.lang.Class.getDeclaredConstructor(Class<?>...)
试下这个