Trying to load a class from Parse , however the application will work as soon as I run it! Here is the code:
ListView listview; List<ParseObject> ob; ProgressDialog mProgressDialog; ArrayAdapter<String> adapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_big_board); new RemoteDataTask().execute(); } private class RemoteDataTask extends AsyncTask<Void, Void, Void> { @Override protected void onPreExecute() { super.onPreExecute(); mProgressDialog = new ProgressDialog(BigBoard.this); mProgressDialog.setTitle("Parse.com Simple ListView Tutorial"); mProgressDialog.setMessage("Loading..."); mProgressDialog.setIndeterminate(false); mProgressDialog.show(); } @Override protected Void doInBackground(Void... params) {
And this is what I get in logcat:
> 10-22 20:40:18.705 12588-12872/obx.com.futurister E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask
Guess the problem with the doInBackground() method? Am I missing something? Please help thanks
source share