[Android Q&A, Help & Troubleshooting] dirtyfnd:
So I've decided to to teach myself how to program for android and have a general understanding for java. Well i decided to borrow someones code from the internet and utilize it to assist in creating my first quiz app. I am getting some errors in this code and was wondering if anyone would be so kind to assist me. Thanks

package com.danyluk.MedicStudyGuide;

import java.io.IOException;

import android.app.Activity;
import android.database.Cursor;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView;

public class Quiz extends Activity{
/** Called when the activity is first created. */
private RadioButton radioButton;
private TextView quizQuestion;
private TextView tvScore;

private int rowIndex = 1;
private static int score=0;
private int questNo=0;
private boolean checked=false;
private boolean flag=true;

private RadioGroup radioGroup;

String[] corrAns = new String[5];

final DataBaseHelper db = new DataBaseHelper(this);

Cursor c1;
Cursor c2;
Cursor c3;

int counter=1;
String label;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.quiz);
String options[] = new String[19];

// get reference to radio group in layout
RadioGroup radiogroup = (RadioGroup) findViewById(R.id.rdbGp1);

// layout params to use when adding each radio button
LinearLayout.LayoutParams layoutParams = new RadioGroup.LayoutParams(
RadioGroup.LayoutParams.WRAP_CONTENT,
RadioGroup.LayoutParams.WRAP_CONTENT);

try {
db.createDataBase();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
c3 = db.getCorrAns();

tvScore = (TextView) findViewById(R.id.tvScore);

for (int i=0;i<=4;i++)
{
corrAns[i]=c3.getString(0);
c3.moveToNext();

}

RadioGroup radioGroup = (RadioGroup) findViewById(R.id.rdbGp1);
radioGroup.setOnCheckedChangeListener(new OnCheckedChangeListener() {

public void onCheckedChanged(RadioGroup group, int checkedId) {
// TODO Auto-generated method stub
for(int i=0;;){
RadioButton btn = (RadioButton) radioGroup.getChildAt(i);

String text;

if (btn.isPressed() && btn.isChecked() && questNo < 5)
{

Log.e("corrAns[questNo]",corrAns[questNo]);

if (corrAns[questNo].equals(btn.getText()) && flag==true)
{
score++;
flag=false;
checked = true;
}
else if(checked==true)
{
score--;
flag=true;
checked = false;
}

}
}
tvScore.setText = ("Score: " + Integer.toString(score) + "/5");
Log.e("Score:", Integer.toString(score));
}
});

quizQuestion = (TextView) findViewById(R.id.TextView01);

displayQuestion();

/*Displays the next options and sets listener on next button*/
Button btnNext = (Button) findViewById(R.id.btnNext);
btnNext.setOnClickListener(btnNext_Listener);

/*Saves the selected values in the database on the save button*/
Button btnSave = (Button) findViewById(R.id.btnSave);
btnSave.setOnClickListener(btnSave_Listener);

}

/*Called when next button is clicked*/
private View.OnClickListener btnNext_Listener= new View.OnClickListener() {

@Override
public void onClick(View v) {
flag=true;
checked = false;
questNo++;

if (questNo < 5)
{
c1.moveToNext();
displayQuestion();
}

}

};

/*Called when save button is clicked*/
private View.OnClickListener btnSave_Listener= new View.OnClickListener() {

@Override
public void onClick(View v) {

}
};

private void displayQuestion()
{
//Fetching data quiz data and incrementing on each click

c1=db.getQuiz_Content(rowIndex);

c2 =db.getAns(rowIndex++);

quizQuestion.setText(c1.getString(0));

radioGroup.removeAllViews();
for (int i=0;i<=3;i++)
{
//Generating and adding 4 radio buttons dynamically
radioButton = new RadioButton(this);
radioButton.setText(c2.getString(0));
radioButton.setId(i);
c2.moveToNext();
radioGroup.addView(radioButton);

}

}}}