Wednesday, 19 September 2012

Android Quiz Game App Source Code

Keywords: Free Android quiz game source code, Project or code to create make android based quiz game download

Note: Updated version of Android App Quiz Game source code is available at Android Quiz Game Using XmlPullParser.

In this article, I am sharing source code to create android based quiz game. One can use this code to create their own personal quiz game. It was very interesting developing a QuoteQuiz app (Search for QuoteQuiz in Google play or Androidzoom.com) for android device.

As, I was new to android development, I had developed a simple quiz game app using only activities with basic skill of coding. There are many way, depending on developer, on how to develop it. In this app, I had only used activities and Xml files. No SQLite is used to save any data. Data between activities are passed using Intent.

Given below image are a glance of QuoteQuiz app. Subscribe to our newsletter to get the source code.





QuoteQuiz is created in very simple way so that beginner can learn it easily. Check out advance version of quiz on google play under SmakAndApp publisher.

Few code snippet used in coding.

Each Activity represent as new question.


@Override
 public void onCreate(Bundle savedInstanceState)
 {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.questone);
     
        Button NextButton = (Button) findViewById(R.id.id_btn_Next1);
        NextButton.setOnClickListener(this);
       
        TextView tvScore = (TextView) findViewById(R.id.id_tv_score1);
        tvScore.setText("Score : "+ 0);
    }

  @Override
 public void onClick(View v)
 {
  // TODO Auto-generated method stub
  int cnt = 0;
  RadioButton rdb1 = (RadioButton) findViewById(R.id.id_rbtn_Quest1_1);
  RadioButton rdb2 = (RadioButton) findViewById(R.id.id_rbtn_Quest1_2);

  if(rdb1.isChecked() || rdb2.isChecked() )
  {
   if(rdb1.isChecked())
   {
    cnt++;
 
   }
  Intent i = new Intent(this,QuestTwoActivity.class);
  i.putExtra("score",cnt);
  startActivity(i);
  finish();
  }

 }

Data sent between activities is shown below:

Intent i = new Intent(this,QuestTwoActivity.class);
i.putExtra("score",cnt);
"score" is key and "cnt" is value.



cnt = getIntent().getIntExtra("score",0);

"score" is key and 0 is default value i.e. if no data is passed it will assign 0.

103 comments:

  1. sir, where can i find the source code? i really need a guide for the scoring of a android quiz for my school project...

    ReplyDelete
    Replies
    1. To get source code just Subscribe to our Newsletters by providing email on top right side..

      Delete
    2. i already subscribed your newsletter..
      please do send me the source code..it'll help me a lot :))
      tnx

      Delete
  2. sir, can i get the source code too? we have a project and our only problem is the quiz part,.. this is my yahoo account
    bloodymonday07@yahoo.com

    ~tnx, it will really be a big help.

    ReplyDelete
  3. could you send me the source code too??
    noni.honami@gmail.com

    thanks a lot

    ReplyDelete
    Replies
    1. Subscribe to our Newsletters for source code.. you will receive code in 2 or 3 days..

      Delete
    2. can i? mateusz.berger@gmail.com

      Delete
  4. sir I subscribed to ur newsletter today.will I receive the source code for the quiz application today? Kindly send me at the earliest

    ReplyDelete
  5. Hello i subscribed to ur newsletter today. will i receive sorce code for quiz.could u send me at earliest
    thank you

    ReplyDelete
  6. Source code sent to all the subscribed member. Thanks.

    ReplyDelete
  7. thanks for ur code sir.Sir now I want to know how to do this using database(sqlite) or any other database .Cud u pls tell me about this as I am newbie.

    ReplyDelete
  8. source code sent to all ??

    yvsgkhn@gmail.com

    thank you :)

    ReplyDelete
  9. I subcribed to you now , Can you pls give me the source code at the earliest? Thanking you in advance.
    :)

    ReplyDelete
  10. sir I subscribed to your newsletter today and I need sorce code for quiz. I have a project in which I am facing problem in QUIZ part so please could u send me at earliest if possible.
    My email id is = linktoranjeet@gmail.com
    thankss in advance, your help would be appreciated...

    ReplyDelete
  11. Hi.. I have subscribed to this portal. Can you please send me the project at ravividhani.professional@gmail.com.

    ReplyDelete
  12. Source code sent to all the verified subscribed member. Plz let me know if someone didn't got it. Thanks.

    ReplyDelete
  13. Hi...I haven't got it yet.. i will appropriated if you could send me to siwaily@gmail.com..

    ReplyDelete
  14. Hi....
    I have subscribed today itself.so please do send me the source code.My mail I.D is reddync@gmail.com
    Thank You

    ReplyDelete
  15. hey pls send me the source code of this quiz its for a project really urgent.. i have subscribed... my id is gudeamit148@gmail.com

    ReplyDelete
  16. thanks for ur code sir.Sir now I want to know how to do this using database(sqlite) or any other database .Cud u pls tell me about this as I am newbie.

    ReplyDelete
    Replies
    1. Hi flame soon i will post article on this.. Thanks for comment and time..

      Delete
  17. sir, can i get the source code too? we have a project and our only problem is the quiz part,.. this is my gmail account burakertem91@gmail.com

    ReplyDelete
  18. sir can i get the source code too?

    my email is lord_zetta2006@yahoo.com

    ReplyDelete
  19. i already subscribe it.. please sent it to lord_zetta2006@yahoo.com

    thx for ur help...

    ReplyDelete
  20. pls send the source code to vineetvaidya6@gmail.com

    ReplyDelete
  21. sir can i get source code of your app? i really need it for my thesis. pls can you send it to me as soon as possible. i already subscribe on your newsletter. here's my email nadztdwp@gmail.com

    thanks. Godbless

    ReplyDelete
  22. sir pls send. pls! i really need it badly. =(

    ReplyDelete
  23. i already subscribed to you now sir can you send me the complete code at the earliest..tnx..

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

    ReplyDelete
  25. i already subscribe...can you please send me the code?? we need it badly...thank you... here's my e-mail raven_cristina_1023@yahoo.com

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

    ReplyDelete
  27. Already done, bilyk@o2.pl, big thanks

    ReplyDelete
  28. hey pls send this pls . i badly need it for my project :( here my email ecahperez@gmail.com

    ReplyDelete
  29. Sir , Please Send me the the Source code ... I appreciate your help .. Please .. i need it for my Coding ..

    ReplyDelete
  30. Hi Sir! Already subscribed. Here's my e-mail, kattanasco@yahoo.com. Badly needed for a project. Thank you.

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

    ReplyDelete
  32. I have already subscribed just before so will i get the source code. I need the source code very badly and desperately sir . Kindly send the code for duvvuri.murthy1991@gmail.com pleaseeeee

    ReplyDelete
  33. already subscribed can you send me the code?

    ReplyDelete
  34. Hello.. i just subscribe to ur newsletter..can you please send me the source code of this app..thx man.

    ReplyDelete
  35. sir, please send me the source code at johnpaul_1408@yahoo.com. I already subscribed but i dont received the source code yet. please...

    ReplyDelete
  36. Replies
    1. hey dude can u email me code , it 'll be great help??? my id is srikanthlraj.raj@gmail.com

      Delete
  37. please send to me the source at xuanc1hanu@gmail.com as soone as possible.I need your code for my practices.thanks

    ReplyDelete
  38. can i have the source code too sir for my project! here is my email pgtan34@gmail.com

    ReplyDelete
  39. sir , i subscribed.. please send me source code its urgent. thank you.. kapil.rajpurohit18@gmail.com (my email id).

    ReplyDelete
  40. Hello Sir! Already subscribed. Can you send me the source please at petroula.ko@gmail.com?

    ReplyDelete
  41. Please email me the code sheelgohe@gmail.com

    ReplyDelete
  42. I subscribed your portal, please send codes to hakan_yesilli@hotmail.com

    ReplyDelete
  43. Sir please send me the source code for the same. Already subscribed to your blog.
    bagri.sunil@gmail.com
    thanks in advance

    ReplyDelete
  44. i have registerere.. when i'll be getting code?? if i get earliest it 'll be helpfull

    ReplyDelete
  45. Anyone who has got the code pls send to my email srikanthlraj.raj@gmail .. thank u

    ReplyDelete
  46. can anyone send me project to patilpoonam40@gmail.com

    ReplyDelete
  47. Would really appreciate a copy of the project. Daniel.underhay@gmail.com

    Cheers in advance.

    ReplyDelete
  48. I already subscribed but i dont received the source code yet. Can you send me a copy of the project to alqueriescf@gmail.com ? Thank you.

    ReplyDelete
  49. code sent to all verified subscriber..

    ReplyDelete
  50. Sir,I hav subscribed to ur newsletters today. plz send me code with simply created sqlite database without using assets,sqlite browser & all.

    ReplyDelete
  51. Hi, i have subscribed , can you please send me the code . It would be a great help .

    Thanks

    ReplyDelete
  52. Confirmed my subscription. Could you please send me the source code? Thanks!

    ReplyDelete
  53. hello sir ,
    i got your quizapp source code but there is 1 error i can't solve that error. can you help me .
    ERROR in res-->values-v11-->styles.xml
    style name="AppTheme" parent="android:Theme.Holo.Light".
    ERROR is : no resource found that matches the given name 'android:Theme.Holo.Light'.
    help me please.

    ReplyDelete
  54. I've already subscribed to it, plz do send me the complete source code as early as possible.. mailme.pab13@gmail.com

    ReplyDelete
  55. Sir can you please do me a favour by mailing the source code across to email id " nageurbipz@gmail.com ".Thanks in advance sir, will be very kind of you if shared along.

    ReplyDelete
  56. i just subscribeb can you plz send me the quiz source code

    ReplyDelete
  57. please send me the quiz source code to apivat60@gmail.com
    Thank you.

    ReplyDelete
  58. subscribed.bt nt recevd d code!!!:(


    itz ayushj12190@gmail.com

    ReplyDelete
  59. hi, could you send me source code, please. i need it for my project. my mail adress is "ftmbozyigit@gmail.com". Thanks..

    ReplyDelete
  60. Hello sir
    I already subscribed to you can you send me the complete quiz source code at the earlies please to alankhad@gmail.com
    much appreciated.

    thank you very much

    ReplyDelete
  61. please send me the quiz source code to erdemcelik1989@gmail.com
    Thank you.

    ReplyDelete
  62. Hi,

    Thank you ever so much for sending me the source code, unfortunately I seem to be having slight a problem with the project once the file has been imported.

    The error message I have reads "The project cannot be built until build path errors are resolved"
    The location is unknown but it appears to be a Java problem.

    Your help is very much appreciated.

    Thanks

    ReplyDelete
  63. can u send me source code sir ??
    please.

    mc.miftahudin@gmail.com

    ReplyDelete
  64. Great example.
    I would appreciate a copy of the source code as well - skompdev @ skomp . net

    Thanks!

    ReplyDelete
  65. can u send me source code sir ??
    please.
    faisalrahim268@gmail.com

    ReplyDelete
  66. Hey, I did subscribe can you please sen me the source code sir?

    Thank you in advance
    ista.alhamdani@hotmail.com

    ReplyDelete
  67. pls send the source code to aichabenrached3@gmail.com

    ReplyDelete
  68. I've signed up newsletter / already subscribe ..
    Can I get the complete source code of this project to my email..
    I really need it soon ..
    thank you very much, sir.. :)

    ReplyDelete
  69. Hello,i have also subscribed, can you provide me the sourscode of the quiz.

    Thanks

    ReplyDelete
  70. Can you send me the source code to vasanthaltimate@gmail.com.
    I already subscribed..

    ReplyDelete
  71. Hello sir!!
    I need the full source code of quiz app.I have subscribed to you.Pls send me the source code at rashi.cutiegal22@gmail.com
    as soon as possible.I have to submit a project on quiz app.
    thankyou sir!!

    ReplyDelete
  72. Good day sir. I have finished subscribing to your account, but i haven't received the source. I really need the source code asap sir. thanks a bunch!

    ReplyDelete
  73. ahilleas100@hotmail.com plzz ~~

    ReplyDelete
  74. i just suscribes. pls send me the sourcecode aniel99@web.de

    ReplyDelete
  75. i jux subscribed send source code to cerovy305@gmail.com

    ReplyDelete
  76. i just subscribed send source code to ledinhcuong248@gmail.com
    thank for your share

    ReplyDelete
  77. Hi! I've already subcribed here.. can you pls send me the source code.. here's my email elc_hunter@yahoo.com

    thank you very much for sharing.

    ReplyDelete
  78. hello sir .. i need the source code immediately . please send it to me .. i already subscribed .

    ReplyDelete
  79. Dear sir, I have subscribed already, may you please send the source code to cwf.lyn@gmail.com ? Thank you , it will truly help a lot to my learning ! :)

    ReplyDelete
  80. i've just subcribe to your news letter sir, can i have the source codes now? here is my email fdarkweb@gmail.com. thank you in advance.

    ReplyDelete
  81. I have subscribe please send me the code!!! my mail id is yewrajesh@gmail.com. thank you in advance

    ReplyDelete
  82. Hi. i have also subscribed, can you provide me the sourscode of the quiz.

    my email is ihags@paran.com .

    thanks a lot.

    ReplyDelete
  83. Hi friends we will send code soon to our user who haven't got it yet. Currently we are working hard in our upcoming project. Soon we are going to update our blog design, so user can easily get code on the go and have good experience on reading our blog..

    ReplyDelete
  84. One more request to all our user, like our facebook page so we can reach large number of user and you can be in touch with us on facebook.. Have a nice day..

    ReplyDelete
  85. Please send me the source code I've already subscribed. thanks

    ReplyDelete
  86. hello can u send me code in this mailid
    harshalkalavadiya@gmail.com

    ReplyDelete
  87. can i see the source good pls tnx:) already subscribe

    ReplyDelete
  88. How to get the source code after we subscribe?

    ReplyDelete
  89. sir I need the source code of this project too. thanks
    hope u can send it to my email-syntax0701@gmail.com
    thanks

    ReplyDelete
  90. Code sent to all verified subscriber

    ReplyDelete
  91. hello sir i have subscribed . please send me the full source code. I need to submit my project I will be helpful if you send code

    ReplyDelete