public void startNewGame( View v ) throws ParseException{ //Get Question set ParseQuery<Question> query = ParseQuery.getQuery("Question"); query.fromLocalDatastore(); List<Question> questions = query.find(); if ( questions.size() > 0 ){ //Initialise Game with retrieved question set GamePlay c = new GamePlay(); c.setQuestions(questions); c.setNumRounds( questions.size() ); ((QuizApplication)getApplication()).setCurrentGame(c); //Start Game Now.. // Intent i = new Intent(this, QuestionActivity.class); startActivityForResult(i, 1); } else { Toast.makeText(this, "Not able to load any questions - please make sure you have internet connection", Toast.LENGTH_LONG).show(); } }