我的android应用程序中有这个类:
public class Academic extends Activity {
String reg, regi, name, course, branch, sem, subjects, present, total,
batch, success;
GetHttp student;
JSONObject returned;
private ProgressDialog pDialog;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.academic);
SharedPreferences app_preferences = PreferenceManager
.getDefaultSharedPreferences(this);
reg = app_preferences.getString("Registration", null);
student = new GetHttp();
new studentDetails().execute();
}
public void onPause() {
this.finish();
}
class studentDetails extends AsyncTask<String, String, String> {
//get JSON data and display
}
}
当我回击时,我得到了这个异常:
android.app.SuperNotCalledException:活动 {com.erp.centurion/com.erp.centurion.Academic} 没有调用 super.onPause()
请帮助找出我收到此错误的原因。提前致谢。