Tuesday, August 3, 2010

Tutorial: Developing a Quiz App on Android




Recently, i had to integrate a quiz module in an e-book application.I would be glad to share my code along with the schema. Using SQLite, i have the following table definitions for my schema:


CREATE TABLE Quiz(Correct_Answer TEXT, Quiz_ID INTEGER PRIMARY KEY, Quiz_Text TEXT)


CREATE TABLE Answers(Answer TEXT, Answer_ID INTEGER PRIMARY KEY, Quiz_ID NUMERIC)


CREATE TABLE Android_Metadata("locale" TEXT DEFAULT 'en_US')

NOTE: Once created the database file is to be placed in the assets folder of the project.






In order to design the layout as shown in the picture above here is the code for main.xml:


main.xml


android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
xmlns:android="http://schemas.android.com/apk/res/android">





android:id="@+id/rdbGp1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_y="30dip"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
>





android:text="Save" android:id="@+id/btnSave" android:layout_width="100dip" android:layout_height="wrap_content" android:layout_x="50dip" android:layout_y="250dip">




android:layout_x="17dip" 
android:layout_y="15dip" 
android:id="@+id/TextView01" 
android:layout_width="wrap_content" 
android:text="Question" 
android:layout_height="wrap_content">









android:layout_x="100dip" 
android:layout_y="320dip" 
android:id="@+id/tvScore" 
android:layout_width="wrap_content" 
android:text="Score" 
android:layout_height="wrap_content">


-











Here's my Database Helper containing all the methods necessary to create and the Quiz database and to query it afterwards:




DatabaseHelper.java
package com.myapps.quiz;


import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;


import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SQLiteOpenHelper;


public class DataBaseHelper extends SQLiteOpenHelper{


//The Android's default system path of your application database.
private static String DB_PATH = "/data/data/com.myapps.quiz/databases/";
private static String DB_NAME = "quiz";
private static String Table_name="Quiz";


private SQLiteDatabase myDataBase;
private SQLiteDatabase myData;
private final Context myContext;


/**
* Constructor
* Takes and keeps a reference of the passed context in order to access to the application assets and resources.
* @param context
*/
public DataBaseHelper(Context context) {
super(context, DB_NAME, null, 1);
this.myContext = context;
}






/**
* Creates a empty database on the system and rewrites it with your own database.
* */
public void createDataBase() throws IOException{


boolean dbExist = checkDataBase();
if(dbExist){
//do nothing - database already exist
}else{
CopyFiles();
}
}


private void CopyFiles()
{
try
{
InputStream is = myContext.getAssets().open(DB_NAME);
File outfile = new File(DB_PATH,DB_NAME);
outfile.getParentFile().mkdirs();
outfile.createNewFile();


if (is == null)
throw new RuntimeException("stream is null");
else
{
FileOutputStream out = new FileOutputStream(outfile);
// BufferedOutputStream out = new BufferedOutputStream( new FileOutputStream(outfile));
byte buf[] = new byte[128];
do {
int numread = is.read(buf);
if (numread <= 0) break; out.write(buf, 0, numread); } while (true); is.close(); out.close(); } //AssetFileDescriptor af = am.openFd("world_treasure_hunter_deluxe.apk"); } catch (IOException e) { throw new RuntimeException(e); } } /** * Check if the database already exist to avoid re-copying the file each time you open the application. * @return true if it exists, false if it doesn't */ private boolean checkDataBase(){ SQLiteDatabase checkDB = null; try{ String myPath = DB_PATH + DB_NAME; checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY); }catch(SQLiteException e){ } if(checkDB != null){ checkDB.close(); } return checkDB != null ? true : false; } /** * Copies your database from your local assets-folder to the just created empty database in the * system folder, from where it can be accessed and handled. * This is done by transfering bytestream. * */ private void copyDataBase() throws IOException{ //Open your local db as the input stream InputStream myInput = myContext.getAssets().open(DB_NAME); // Path to the just created empty db String outFileName = DB_PATH + DB_NAME; //Open the empty db as the output stream OutputStream myOutput = new FileOutputStream(outFileName); //transfer bytes from the inputfile to the outputfile byte[] buffer = new byte[1024]; int length; while ((length = myInput.read(buffer))>0){
myOutput.write(buffer, 0, length);
}


//Close the streams
myOutput.flush();
myOutput.close();
myInput.close();


}


public void openDataBase() throws SQLException{


//Open the database
String myPath = DB_PATH + DB_NAME;
myDataBase = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);


}


@Override
public synchronized void close() {


if(myDataBase != null)
myDataBase.close();


super.close();


}


@Override
public void onCreate(SQLiteDatabase db) {


}


@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {


}






/// Get Book content////////
public Cursor getQuiz_Content(int bookId)
{
String myPath = DB_PATH + DB_NAME;
myData = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);


Cursor cur;
cur=myData.rawQuery("select quiz_text from Quiz where quiz_id='"+bookId+"'",null);
cur.moveToFirst();


myData.close();
return cur;
};
//////////////////////////






/// Get Book content////////
public Cursor getQuiz_List()
{
String myPath = DB_PATH + DB_NAME;
myData = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);
int i;


Cursor cur;
cur=myData.rawQuery("select quiz_id,quiz_text,correct_answer from quiz",null);
cur.moveToFirst();
i = cur.getCount();
myData.close();
return cur;
};
//////////////////////////




public Cursor getAns(int quizid)
{
String myPath = DB_PATH + DB_NAME;
myData = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);


Cursor cur;
cur = myData.rawQuery("select answers from answer where quiz_id='"+quizid+"'", null);
cur.moveToFirst();
myData.close();
return cur;
}


public Cursor getAnsList()
{
String myPath = DB_PATH + DB_NAME;
myData = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);


Cursor cur;
cur = myData.rawQuery("select answers from answer", null);
cur.moveToFirst();
myData.close();


return cur;
}




public Cursor getCorrAns()
{
String myPath = DB_PATH + DB_NAME;
myData = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);


Cursor cur;
cur = myData.rawQuery("select correct_answer from quiz", null);
cur.moveToFirst();
myData.close();


return cur;
}
//---updates a title---
/* public boolean UpdateFavourite_Individual(long rowid,String fav)
{
String myPath = DB_PATH + DB_NAME;
myData = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READWRITE);


ContentValues args = new ContentValues();
args.put("bookmark", fav);
return myData.update("lyrics", args,
"rowid=" + rowid, null) > 0;
}*/
//////////////////




}








Here's the Quiz class to add the front-end functionality(like adding radio buttons and scoring functionality):




Quiz.java


package com.myapps.quiz;


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.main);
        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) findViewById(R.id.rdbGp1);
        
        
        
        
        radioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {

@Override
public void onCheckedChanged(RadioGroup group, int checkedId) {
// TODO Auto-generated method stub
for(int i=0; i
                  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);

}

}



}





909 comments:

  1. is it possible to upload the project in a zip file?

    ReplyDelete
  2. I can send you the entire project if you like. Let me have your email address.

    ReplyDelete
    Replies
    1. sir can i have the project sample?....this is my email..juliusceasarpalma@gmail.com

      Delete
  3. that would be great! you can send it to me.view@gmail.com. thanks a lot!

    ReplyDelete
  4. I would love a copy of the project aswell if you dont mind :) trev.perkins at gmail.com

    ReplyDelete
  5. Sure! Please do post your comments about how you feel about it.

    ReplyDelete
  6. i have a question.. how does your database store the questions, correct answer, and the choices for each question? had problems running the app since it doesn't create the database, and if it did the database would be empty.. thanks in advance!

    ReplyDelete
  7. I have used a pre-built database.Download the SQLite browser and run the queries as directed in the beginning of the quiz tutorial.
    Your feedback is appreciated

    ReplyDelete
  8. Hey Maxood,
    Can you please send me the whole project in zip/rar format. It would be of great help. I really liked your project.
    My email id is garimasrivastava.garima@gmail.com

    ReplyDelete
  9. Hi Maxwood,

    Could you please send me the whole project in ZIP format.
    Thank you very much.
    my e-mail is: specijalac2@yahoo.com

    ReplyDelete
  10. Hi Maxwood,

    Could you please send me the project.
    Thank you very much.
    Email: chrishatfield21@gmail.com

    ReplyDelete
  11. Please ensure to correspond withme on maqsood_rahman@hotmail.com. Thank you

    ReplyDelete
  12. Hi, Maxood. Thanks for sharing, I would like to have a copy of it, please send to 'sunhsilu' at gmail.com.

    ReplyDelete
  13. Maxood, great tutorial! Please email me the project in zip formay to freebie@prhsolutions.com. Thanks!

    Paul72

    ReplyDelete
  14. please could you email me the project - I would be most grateful and happy to post my feedback once I have tested it. My email is search4it AT gmail.com
    Thanks

    ReplyDelete
  15. hey! Would really appreciate if you could mail the project to kayt0912@hotmail.com : )

    ReplyDelete
  16. This comment has been removed by a blog administrator.

    ReplyDelete
  17. Look into Logcat window and let me know about the exact error.

    ReplyDelete
  18. This comment has been removed by a blog administrator.

    ReplyDelete
  19. missed off first line of log....
    sqlite3_open_v2("/data/data/com.myapps.quiz/databases/quiz", &handle, 1, NULL) failed

    ReplyDelete
  20. Thanks for letting me know! Just debugged the errors, edited my code and reposted it.
    I like to have more feedback from you folks what else you want to add to this Quiz app.
    Cheers:)

    ReplyDelete
  21. Brilliant, thanks. Had a quick look - a few comments:
    Text doesnt always fit on the screen and doesnt scroll - I have only tried this on an AVD, not on my handset.
    It would be good if you could hide the score until the end of the quiz (and maybe also have a button you could click to reveal the answer there and then.
    Finally, it would be good to have a summary of right and wrong answers at the end and maybe the option to go back and try the quiz again answering only the incorrect answers.
    I will try to edit the code myself to implement this and let you know how I get on but time is short for me.

    ReplyDelete
  22. This comment has been removed by a blog administrator.

    ReplyDelete
  23. Search4IT: Did you get a chance to update this app as per your comment on this thread on November 3, 2010 8:09 AM .... ??

    ReplyDelete
  24. I havent had a chance, Im afraid. Maqsood did email out updated code. I have uploaded it to Mega Upload which you can get here: http://www.megaupload.com/?d=FE4IYAO5
    I hope this is OK with Maqsood - if not, let me know and I'll take it down.

    ReplyDelete
  25. This comment has been removed by a blog administrator.

    ReplyDelete
  26. With the code as posted on mega upload, I was able to run the programme without modification. I am a relative novice at Android programming so would not have spotted the missing createDataBase() call.

    ReplyDelete
  27. Hi Maxood,
    Could you please send me the zipped project, i will check it out and let you know with feedback or more features.

    Please send to clickmob (at) gmail.com

    Thankyou
    Lucy

    ReplyDelete
  28. Hi Maxood

    I am new to the android scene and have been having some trouble with the code above, could you please email me a copy of the zipped project, unfortunately the link to the megaupload site mentioned above is now expired.

    Many Thanks

    Killian

    88kpow ( at ) gmail.com

    ReplyDelete
  29. Hey Maxood,

    thanks for your great tutorial.
    I really like your work!

    It would be really helpful, if anybody could send me the whole project.

    draschke ( at ) gmail.com
    Many Thanks
    Dirk

    ReplyDelete
  30. Hey guys,

    pls., don't forget me.
    (I'm still waiting for the file for the project.)

    Thank you!
    Dirk

    ReplyDelete
  31. Hello,

    I am extremely interested in receiving the zipped project as well. edpaten@gmail.com . Thanks so much. Ed

    ReplyDelete
  32. I am very much interested in this project as well. Please send a copy of zipped project when you got time. it's nashsaint@gmail.com

    Many thanks.

    ReplyDelete
  33. could you send it to my email as well sjmurat@gmail.com thanks

    ReplyDelete
  34. Hi. I would also really appreciate this project. redmercaclass at gmail.com

    I'll let you know how I get on with it.

    Thanks again,

    James

    ReplyDelete
  35. Hi Maxood, please send me the whole project in zip/rar format.

    My email is: cp_poison@yahoo.com

    Appreciate it mate!
    Dave

    ReplyDelete
  36. hi excellent work, can i have the project aswell please

    ice_c00l@hotmail.com

    ReplyDelete
  37. great work, can i have the project in zip/rar please sendo to lautenai at gmail dot com

    ReplyDelete
  38. Hello, Your Work's Very Interesting, Could you send me the source in zip or rar format.
    my email : hyun.hye.jung@gmail.com
    thank you.

    ReplyDelete
  39. Hey, thanks for the tutorial. Can you please send the tutorial to me to :D email: milanaman111@gmail.com

    Once again thanks !!

    ReplyDelete
  40. hello can you send me the zipped file of the project...tqvm...farez9759@yahoo.com

    ReplyDelete
  41. Maxood,
    Absolutely great. Could you be so king to send me the zip file

    Many Thanks

    ReplyDelete
  42. Just found this site looks like the tutorial i have been looking for. Can i get a zipped copy. Omarblufire@hotmail.com

    ReplyDelete
  43. hey, could you send the project to wisewidow@hotmail.co.uk,would love to have ago at editing it.

    ReplyDelete
  44. Very nice, thank you, can you send me project via email chung@1112group.com

    ReplyDelete
  45. Hi maxood,

    Its really excellent work .. so could u plz send me the entire project..?
    Also plz suggest me sir how to synchronize contacts from the mobile to the sqlite cdatabase..?

    Regards
    munirasu

    ReplyDelete
  46. Hi maxmood

    Please could you sedn me the entire project

    Regards

    Naran

    ReplyDelete
  47. Hi,
    Can I get a copy of the project zip file?
    lickey10@gmail.com

    Thanks!

    ReplyDelete
  48. HI Maqsood

    Please could you send me the entire project?
    albanikos@gmail.com

    Regards,
    Alban

    ReplyDelete
  49. Dear Maqsood, Kindly send me the complete project in ZIP format with environment instructions.

    Wajid Hussain
    0333-3018684

    wjdhussain@yahoo.com

    ReplyDelete
  50. Maxood, Nice Tutorial,Thanks I'm also developing such application and I'm planing to use XML as my resource files to keep the quiz and answers instead of SQLite. What is your idea about that and what is the best way to maintain the external data?

    Thanks
    Pathum

    ReplyDelete
  51. This comment has been removed by the author.

    ReplyDelete
  52. This comment has been removed by the author.

    ReplyDelete
  53. "rzaartz@yahoo.com".......& u wld get a simple implementation .......

    ReplyDelete
  54. Thanks Raycliare! I highly value and appreciate your feedback.

    ReplyDelete
  55. Could you please send me the whole project in ZIP format.
    Thank you very much.
    my e-mail is: avilaleonidas@hotmail.com

    ReplyDelete
  56. :-).... am glad my feedback was appreciated nice tutorial you got there it really helped me a lot. Thank you

    ReplyDelete
  57. Are u Ok with the post with my email to send the implementation if not notify me by mail and i would remove it

    ReplyDelete
  58. Hi,

    Please send the project in zip format, would be glad to provide comments.

    Thanks,

    cruzcj@cox.net

    ReplyDelete
  59. May i have the zipped project pls! THX! johnbadras@gmail.com

    ReplyDelete
  60. Hi!
    I would like to have the file thanks!
    And thanks for such a great tutorial ;)
    kajan0912@gmail.com

    ReplyDelete
  61. can you please send it to me?..
    zash13x@gmail.com

    this would be a great help

    ReplyDelete
  62. thanks a lot for this tutorial, and share your knowledge
    can you send the file zip to habib.lege@gmail.com ?

    ReplyDelete
  63. Hi Maxood,
    Iam a student and I have started doing Android projects. I need some help from you to solve the issues in those. Before that I kindly request you to send the quiz app to gopinm2006@gmail.com

    Cheers...

    ReplyDelete
  64. Hello Maxood,

    I am developing an application where the Quiz is an part of it.. Could please mail me the code so that i can refer it. My Email Id is rahilrbolar@gmail.com

    ReplyDelete
  65. thanks for this tutorial. Can I have the source code thanks (dorian at portalis.it)

    ReplyDelete
  66. Thanks for the tutorial ...Can you please send me the zip source file

    ReplyDelete
  67. hai can u please send me the zip source file iam strucked at one point. we have to enter data into the database
    iam getting this error 05-04 18:25:17.304: ERROR/Database(15614): sqlite3_open_v2("/data/data/com.quizQuestions/databases/Quiz1", &handle, 1, NULL) failed

    ReplyDelete
  68. Can u please send me the zip source file my maild id is srikar.nandu@gmail.com

    ReplyDelete
  69. I finally found a good tutorial for making quizzes. If it isn't too much trouble can you send the zip project to mink22@hotmail thanks!

    ReplyDelete
  70. it would be great if you send me the zip source into my email.
    please send it to okiwicaksono@gmail.com

    ReplyDelete
  71. Would you please send me the zip source to my email address: pvtweb@gmail.com. Many thanks!

    ReplyDelete
  72. Can you please send me the source code. My email: darkevil1604@yahoo.com

    Thank so much!!

    ReplyDelete
  73. Would you like to send me your source code in zip or rar file via my email lqvinh_vnn@yahoo.com Many thanks!!!

    ReplyDelete
  74. pleassse send me the source code gopikris90@gmail.com
    thanks in advance.. :)

    ReplyDelete
  75. Hello!
    Can you please send me the zip source file
    mzzsss@gmail.com

    ReplyDelete
  76. Hi!
    Could you please send me entire project sources too?
    korobko.sergey@gmail.com

    ReplyDelete
  77. Greetings. I'd love to have a copy of the zip source file. Please send me a copy at theoliviaong@gmail.com. Thanks!

    ReplyDelete
  78. Can I please have the zip/rar package?
    Would really help me!
    axsrox@gmail.com
    Send it there please.

    ReplyDelete
  79. Would be great if you could send me the project so I can have a look as it should help me greatly in a new project im working on. Please :)
    zac@zpwebsites.com

    ReplyDelete
  80. Hi Maxwood, Thank you for posting this tutorial. It's really neat and its just what I was searching for.
    Can you please mail me the project, my email is gamesha@gmail.com

    Thanks a lot.

    ReplyDelete
  81. This is a great tutorial, could I please have a zipped copy of the project? chris.erac@gmail.com

    Thanks in advance.

    ReplyDelete
  82. Hi can you send me a copy of the entire source and project thanks in advanced

    ReplyDelete
  83. Hi! Can you please send me the zipped project to my email at : robert at everyl dot com

    Thank you so much, you are doing a great job!

    ReplyDelete
  84. Hey, you should enter this code in [code][/code] brackets (code brackets) otherwise it is not complete (a lot of tags are excluded because the HTML tries to read them). Just a thought...

    ReplyDelete
  85. Can you send it to me, please. me(at)iminthe.us
    its such a great code Id love to tweak and learn from. REALLY nice job!

    ReplyDelete
  86. Hello Maxood.

    Great work

    I would also very much appreciate the package.

    gruk42 at hotmail.se

    Regards
    Martin

    ReplyDelete
  87. This is a great tutorial, could I please have a zipped copy of the project?

    harry0600@yahoo.com

    Thanks in advance.

    ReplyDelete
  88. Hi Maxood,
    I'm a student developing a similar application....Could I get the source files at dhanyaroji@gmail.com?

    Thanks and Regards,
    Dhanya

    ReplyDelete
  89. Hi! Can you please send me the zipped project to my email at : aqdashusain at gmail dot com

    Thank you so much, you are doing a great job!

    ReplyDelete
  90. Hi,

    Could you please send me entire project sources too?
    My email is : sosso.larbo@gmail.com

    ReplyDelete
  91. Hi Maxood ,
    Could you please send me entire project sources too?
    My e mail id: mahesh.saini.niit@gmail.com

    ReplyDelete
  92. please send me the entire project on my email id:-
    mohammad.abdullah296@gmail.com

    ReplyDelete
  93. Hi,

    May I have the zipped project please? dark.maverick20[at]gmail.com

    Thanks and regards, keep up the great work!!

    Gabriel

    ReplyDelete
  94. Hi, Can you please send me the project? vinu0819@gmail.com

    ReplyDelete
  95. Has anyone gotten him to send the source code and if so would you be willing to send it to me as I have not yet heard back from him.

    ReplyDelete
  96. Hi, Can you please send me the project? vincenzo.amoruso@gmail.com
    Thanks in advance
    Ciao
    Vincenzo

    ReplyDelete
  97. Hi can you please send me the project? vamsi.saraswat@gmail.com

    ReplyDelete
  98. Hi

    Can you please send me the zip source file

    alsmail436@gmail.com

    Thanks

    ReplyDelete
  99. Sindh,

    I think your project has great potential. I think you could add some categories to it as well as a randomization of question's and answers and a start from question. Could you you send me the zip file (vtpilot00@gmail) so I can investigate how to incorporate those features in your code thanks. J

    ReplyDelete
  100. Great:)

    I appreciate your effort and would like to have zip file: dipen.patel@usmletutoring.com

    Thank you in advance,

    ReplyDelete
  101. Hi, am interested in this project. Can you send the zip file to v.seng88@gmail.com? thx.

    ReplyDelete
  102. Wow your example is great!!

    I request your source zip file.

    I am just student in University.

    Can you send the zip file?

    please help me

    mail : dolmaus@gmail.com

    ReplyDelete
  103. The example looks fantastic. Could get a zipped copy of the source as well?

    Thanks for posting this.

    kevin.scott@coldwarcafe.com

    Thanks!

    ReplyDelete
  104. Awesome work! Plz mail me the zip of source code!

    mail: delhi.king@gmail.com

    Thanks.

    ReplyDelete
  105. Hello Maxood,

    I am developing an android application where the Quiz is an part of it. Could please mail me the code so that i can refer it.
    My Email Id is dineshslg@gmail.com
    Its really urgent.

    Thanks a lot,
    Dinesh

    ReplyDelete
  106. Hi Maxood,

    I would also love a copy. Great work!
    My address is chris.mundt@gmail.com
    Thanks in advance!

    Chris

    ReplyDelete
  107. Thanks for appreciating the code buddies! I shall be sending the zipped file on this weekend to interested Android lovers. Thanks again and keep browsing my blog for new updates every week.

    ReplyDelete
    Replies
    1. hello buddy!
      can i have the source code for these?
      you can send me at my email

      ---> sepsisbra@yahoo.com
      thanks in advance!

      Delete
    2. Sure! I will send the sourcecode to you via email today.

      Maqsood

      Delete
  108. hi maxood, can you please send me the zip file..here is my email address..

    rosemariearaos@gmail.com

    thank you..

    ReplyDelete
  109. Could i get a copy too?
    My email:
    commander_jay@hotmail.com

    Thanks!

    ReplyDelete
  110. Great!! can you please send me the zip file?

    thanks a lot!
    dulcegao@gmail.com

    ReplyDelete
  111. Dear Maxood,

    Please send me the entire project.

    aqdashusain@gmail.com

    Thanks in advance.


    Regards,
    Aqdas Husain

    ReplyDelete
  112. I would like to look at the code for this project as well. Please send an email with the project to rchassereau1@gmail.com.

    Thanks

    ReplyDelete
  113. Nice!

    Hi Maxood!

    Please send me the zip file of this project, my email id is: pak2army@gmail.com


    with best Regards,
    Mohsin Raza

    ReplyDelete
  114. Could you? please send me the project .zip?
    dale.magnin@gmail.com

    great program!

    ReplyDelete
  115. best!

    Hello Maxood!

    Please send me the zip file of this project, my email id is: tahwee@yahoo.com

    thx
    with best Regards,
    Tony

    ReplyDelete
  116. please send me the entire project on my email id:-
    abdihusseinow@gmail.com

    Thanks in advance!

    ReplyDelete
  117. Hi Maxood!

    I´m realy interested in your project.
    Please be so kind and send me the zip file, too. My email is: lukaszet@yahoo.de

    thx
    with best Regards,
    Lukas

    ReplyDelete
  118. Hi Maxood,

    Will you be so kind to send me the entire project? Very useful it is! My email is: arvi90 'monkeys tail' gmail dot com

    Regards,
    Arvind

    ReplyDelete
  119. Hi!

    Please send me the zip file of this project
    andsoft.andreev@gmail.com

    Thanks!

    ReplyDelete
  120. kindly plzz send the zip file at alupandey(at)gmail.com...
    i urgently need it..thanking u in anticipation..

    ReplyDelete
  121. Great Work! Please send me zipped copy of the project to makther08@gmail.com

    ReplyDelete
  122. Nice project.
    Hello Maxood!

    Please send me the zip file of this project, my email id is: napoleon_dan@yahoo.com

    thx
    with best Regards,
    Dan

    ReplyDelete
  123. hey can yu send yur project to my id ?

    testingking10@gmail.com

    ReplyDelete
  124. Hi Maxood,

    will u be so kind to send me the source files (r.scheibelhofer@gmx.at).

    big thx,
    Robert

    ReplyDelete
  125. that would be great! you can send it to krlos.sdas@gmail.com. thanks a lot!

    ReplyDelete
  126. Can u send the project zip file to me also?
    e_besalti@hotmail.com

    ReplyDelete
  127. nice tutorial, could u please send me the project

    thx

    rika.psari@gmail.com

    ReplyDelete
  128. Nice one! Can you please mail me the project too?

    djeggie@gmail.com

    ReplyDelete
  129. nice tutorial, plz sent me the project.
    email: duc.nguyenmanh@gmail.com
    thanks!

    ReplyDelete
  130. Hello Maxood

    Can you please send me the project as zip file.

    Email: adityakrishnarao@gmail.com

    Thanks.

    ReplyDelete
  131. This comment has been removed by the author.

    ReplyDelete
  132. Hi!

    Can you send the code to: isaacgango@gmail.com. Thanks ! : )

    ReplyDelete
  133. Hi!
    I try to analysts your code and see in onCheckedChanged functions you are using
    for(....)
    RadioButton btn = (RadioButton) radioGroup.getChildAt(i);
    if (btn.isPressed() && btn.isChecked() && questNo < 5){
    // todo something
    }
    I think it complex and some time rabiobutton will not checked when pressed (i tested it).
    Why you are not using:
    public void onCheckedChanged(RadioGroup group, int checkedId) {
    RadioButton btn =(RadioButton)findViewById(checkedId);
    if (btn.isPressed() && questNo < NumQues)
    {
    //todo something
    }
    }

    what do you think about the my code?

    ReplyDelete
  134. Ur Program is very nice,,,,

    Hi! Can you please send me the zipped project to my email,,,, karthi.vels@gmail.com


    Thanks in Avdvance,,,

    ReplyDelete
  135. nice work!
    can i get a copy of the project too?
    tolis_za@hotmail.com
    thanks a lot

    ReplyDelete
  136. can I get a copy of the project too?
    ahmedsouid11@gmail.com
    thanks :)

    ReplyDelete
  137. could u please send me the project file to my email mohameed1986@gmail.com

    thx a lot

    ReplyDelete
  138. hi
    can you please send me the complete source code please.
    email id: nagarjuna.alcove@gmail.com

    ReplyDelete
  139. hello..
    can you please send me the project file to my email Shenz17@live.com
    I'll be really thankfull if you can send it..

    ReplyDelete
  140. Great tutorial
    Please send me a copy of the project to seker.v.c@gmail.com
    Thanks and Regards

    ReplyDelete
  141. Thank you very much maxood.Your code helped me a lot.But i wish to have the entire project if u dnt have a problem.can u send me on nishantprasad29@gmail.com ??

    ReplyDelete
  142. Please could I have the code. Emails karlritchie@gmail.com

    ReplyDelete
  143. hi
    sir could you please send me the source code
    my email id is:nani01216@gmail.com

    ReplyDelete
  144. hello Max
    could you please send me the project file to my email because i am facing some bugs

    mohammed_tahir@ymail.com

    ReplyDelete
  145. hi,
    plz send me the project to (rathish100@gmailcom)

    ReplyDelete
  146. Hello, very nice project, can you send me a copy please. I would greatly appreciate that. Thanks in advance my email is sfcddm1@gmail.com

    Thanks

    ReplyDelete
  147. Good job. Much appreciated example. Please send me the source code to my email id: tepaper.info@gmail.com
    Thanks

    ReplyDelete
  148. Another fan here, could you please send me the zipped project also, eine.love at gmail.com?

    Thanks for the good work.

    ReplyDelete
  149. Maxood, great tutorial! Please email me the project in zip formay to :
    fischerfaysal@hotmail.fr
    Thanks!

    ReplyDelete
  150. Very good indeed! Please email me the zipped project to: nanjgo@gmail.com... Or anyone who alredy have the project. Please and thanks! :)

    ReplyDelete
  151. Can anybody answer my beginner questions ?:(
    What can i do to make this tutorial work?
    I have to create a database(name quiz with table Quiz), and locate it "/data/data/com.myapps.quiz/databases/"; ?
    I got errors on checkDataBase function and MyOutput variable and the Quiz.java too :( Somebody pls help me.

    ReplyDelete
  152. please send me this zip code my email add shivangtrivedi@yahoo.co.in

    ReplyDelete
  153. Hi;)
    please send me this zip code ;))
    my email rozmiarek.marcin@gmail.com

    ReplyDelete
  154. Salam Maxood,
    Does the App count how many correct/wrong user did in quiz?
    Can you please send the project in zip format to banu.nasim@gmail.com ?

    ReplyDelete
  155. nice tutorial man. can you or anyone here send me a zipped version of this or a similar project to cillscarpetfitting@gmail.com

    cheers!

    ReplyDelete
  156. Hi, can I have the zipped project as well?
    milanmilojevic at hotmail.com

    ReplyDelete
  157. could i have the zipped project too ?

    Thanks !

    jhimmel219@gmail.com

    ReplyDelete
  158. Can you please send it to tanu_138@hotmail.com. Would really appreciate, Thank you

    ReplyDelete
  159. Please send the zip project to my mail id
    kumaranand2014@gmail.com


    Thanks in advance!!!

    ReplyDelete
  160. Great work! Can you send me the zip file please?

    davemcavanagh@gmail.com

    Thanks

    ReplyDelete
  161. Hey Maxwood,
    I had sent you email earlier. I need zip file for this. Can you check your email plz..
    I would really appreciate for your sharing.


    Thank you.

    ReplyDelete
  162. Thanks for your post, if you don't mind send the entire project.zip to my mail id. My mail id is rameshmenan@ymail.com

    ReplyDelete
  163. please send it to me too, jepoy.82@gmail.com and if you like to link exchange :)

    ReplyDelete
  164. Hi Maxwood,

    Please send me the whole project to the email
    ; loccis@gmail.com

    ReplyDelete
  165. can u mail the project file at rachitank@gmail.com

    ReplyDelete
  166. Please send me the whole project to the email

    qt.revolution@gmail.com

    ReplyDelete
  167. Hello sir can you send me the zip file of this project I'll thankful to you..my
    Email id-mvishnoi35@gmail.com

    Thanks

    ReplyDelete
  168. very nice tutorial.
    Plz send me Project code at gulfdice.com@gmail.com
    .thanks in advance.

    ReplyDelete
  169. Hello Viewers,

    I had uploaded the quiz application in media fire here is the link download

    http://www.mediafire.com/?j8y6dbmz919xvx3

    ReplyDelete
  170. This comment has been removed by the author.

    ReplyDelete
  171. Hey there, can you please send me the whole project at heavensiege@yahoo.com
    Thanks for the good work :D

    ReplyDelete
  172. can you send me the code on
    hassen.yessine@gmail.com
    thanks

    ReplyDelete
  173. sir kindly send project to my id
    sudharsan10mar1989@gmail.com

    ReplyDelete
  174. Sir please send me the Zip for this project.

    my id is vikaspanwar.vik9@gmail.com

    ReplyDelete
  175. Could you please send me the zip file for the project? My email is gdangas@ellab.gr

    ReplyDelete
  176. i would like to make an game for my friends, so i'd like the code aswell if it would be possible, my email is schwinchn@gmail.com. Keep up the good work

    ReplyDelete
  177. Many thanks for the tutorial, would it be possible to have a look at the source-code (nic.antonucci@gmail.com)?

    Best,
    Nicoletta

    ReplyDelete
  178. Could you please send me the zip file for the project? My email is anastasia4@hotmail.it
    Thanks.

    Hello Anastasia

    ReplyDelete
  179. This comment has been removed by the author.

    ReplyDelete
  180. Hi there, thank you for the tutorial. Would it be possible to get the zip file? My email is one2rufilipino@gmail.com Thank you so much.

    ReplyDelete
  181. Hi, could you send me the zipped application to franco [at] vivalapappa.it?

    ReplyDelete
  182. Hello Muhammad, really interesting. Could you please send me the zipped project file? My email is megasalexandros356323@yahoo.it. Thanks!

    ReplyDelete
  183. hello,nice tutorial. Could you send the zip file? the email is kingrebound[at]tiscali.it
    Thanks!

    ReplyDelete
  184. Hello this is a very nice tutorial, would be grateful to you if you send me a copy of the zip file....to my mail id ghani.adc@gmail.com.


    Thanks in advance
    Ghani

    ReplyDelete
  185. Nice tutorial! I'm working with something similar. Can you send me the zip file to rey110011@gmail.com?

    Thanks
    Rey

    ReplyDelete
  186. hi, im a newbie. can you help me by sending the source code to my email??

    sephisbra@yahoo.com

    its a big help.. thank you!

    ReplyDelete
  187. Hello, you're good buddy,
    can you help a newbie like me? pls send me the zip file @ my email

    sephisbra@yahoo.com

    im counting on you buddy, Thanks!

    ReplyDelete
  188. Could you send me the zip file please matthew845@msn.com

    ReplyDelete
  189. HI, Could you send me the zip file please 99oror@gmail.com greate toturial!

    ReplyDelete
  190. Hi Maxwood, Thank you for posting this tutorial. It's really neat and its just what I was searching for.
    Can you please mail me the project, my email is hollward at hotmail.com

    Thanks a lot.

    ReplyDelete
  191. Hello Maxwood,I've seen your project here and it's interesting,being a newbie I want to know the entire project :) Can you send it to me the zip file on this project? Here's my email MarkVincentPenales@yahoo.com

    Thanks man!!! :D

    ReplyDelete
  192. Hi Maxwood, thank you for this tutorial. My database code is completely different from this, i want to try this also for gaining the knowledge on databases in android, so can u please mail me the code to my mail: srikanth.gnani@gmail.com

    ReplyDelete
    Replies
    1. Did you received any reply from Maxwood? :)

      Delete
    2. I will be sending the sourcecode to you folks today. Accept my apologies for the delay.

      Maqsood

      Delete
  193. This comment has been removed by the author.

    ReplyDelete
  194. HI, Could you send me the zip file please my is mahamattahir48gmail.com

    ReplyDelete
  195. can you send me the project in a zip file please at adistaktos@hotmail.com?

    ReplyDelete