How to Make a Quiz App in Android? | GeeksforGeeks

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ม.ค. 2025

ความคิดเห็น • 68

  • @GeeksforGeeksVideos
    @GeeksforGeeksVideos  3 ปีที่แล้ว +4

    WISH TO CONTRIBUTE VIDEOS ON GEEKSFORGEEKS? Please submit this Google Form - docs.google.com/forms/d/e/1FAIpQLScSVFlE-stz69M_l46xcwZlVRzDxT_91dlc-px5ytr7QHYmkQ/viewform

    • @yashverma6583
      @yashverma6583 2 ปีที่แล้ว

      Variable 'currentpos' is accessed from within inner class, needs to be final or effectively final getting this issue in my onlick how to solve it sir

  • @masiyong8842
    @masiyong8842 2 ปีที่แล้ว +6

    For those who have the problem about all correct but getting 9/10, just change the questionattemp to 0. questionattemp =1 means its already counted.

  • @onceazwa8510
    @onceazwa8510 3 ปีที่แล้ว

    you saved my life for my assignment! thank you so much!

  • @sainarendra74
    @sainarendra74 3 ปีที่แล้ว +3

    I was surprised 😯, by looking at pasting the same code 4 times. Especially in this channel 😥.

  • @suhasjvrundavan3614
    @suhasjvrundavan3614 3 ปีที่แล้ว +8

    where can i get the source code for this project

  • @sanjanamhatre7803
    @sanjanamhatre7803 2 ปีที่แล้ว +3

    whats the backend of this project

  • @wizard9389
    @wizard9389 3 ปีที่แล้ว +1

    Next video on file sharing android app please 💯

  • @MisterWealth
    @MisterWealth 2 ปีที่แล้ว +1

    How can I assign the values to each of the answers and change this from a quiz app to an app that is a price estimator? I want to give quotes/estimates to people who want video editing done and this app will help give people an idea of costs.

  • @kumarritik3476
    @kumarritik3476 3 ปีที่แล้ว +2

    Thankyou ❤️...

  • @AnkitKumar-vd2dd
    @AnkitKumar-vd2dd 3 ปีที่แล้ว +2

    nice approach!

  • @נדבהוכהויזר
    @נדבהוכהויזר 3 ปีที่แล้ว +12

    The app works for me but how do I set questions not to repeat themselves (because of the random)?

    • @YONG26188
      @YONG26188 3 ปีที่แล้ว +2

      did you get the solution ?

    • @מיקיאור
      @מיקיאור 2 ปีที่แล้ว

      did you get the solution ?

    • @starkendeavours7072
      @starkendeavours7072 2 ปีที่แล้ว

      Yes.
      He is using the random() method, so same questions will repeat that's obvious.
      Hint - 1 : Just Create a method isAttempted(), and check if ( isAttempted()) is true... If true, then call the setDataToViews() method again... Hopefully it'll resolve.
      Hint - 2 : Its not necessary to use random() method. You can simply traverse through the ArrayList from start till end.. In that case no such scenarios of repeating questions will generate... In my opinion it's not recommended to use random() method.. if you are displaying the attempted questions and score...

  • @theradshoom6929
    @theradshoom6929 2 ปีที่แล้ว +1

    can you show how to stop the questions from repeating the same questions ??

  • @RajeshMudi
    @RajeshMudi 3 ปีที่แล้ว

    How to implement admin panel and also add purchase code verification process. Please reply 😔😔😔.

  • @Chandutravelvlogs
    @Chandutravelvlogs 3 ปีที่แล้ว

    Thank you ❤️

  • @abhishekchaudhary4058
    @abhishekchaudhary4058 3 ปีที่แล้ว +6

    I developed the app and following are the issues in the app.
    1.The Max obtained points will be 9 even if you answer everything correctly.
    2.Even if you give 10 different questions, same questions get displayed again and again.

    • @slideguy5925
      @slideguy5925 3 ปีที่แล้ว

      May be the number obtained loop is less than number of the question (

    • @Saranya-ui9bo
      @Saranya-ui9bo 3 ปีที่แล้ว

      Hey abhishek..
      I'm trying to implement a small quiz application for the project..
      Pls guide me.

    • @AHTSkills
      @AHTSkills 2 ปีที่แล้ว

      Same here

    • @AHTSkills
      @AHTSkills 2 ปีที่แล้ว

      Did you got solution bro if yes the please tell me how

    • @kojagirdevelopers
      @kojagirdevelopers 2 ปีที่แล้ว +1

      Try this, questionattempted = "1" is right their, Change this, questionattempted = "0"

  • @rrohitha1712
    @rrohitha1712 2 ปีที่แล้ว

    I did the same thing but first I gave a home page showing welcome and gave a get started button. When I click the button it should go to the questions page but the app is getting closed. Before I wrote code for questions, it worked and directed to questions page(empty at first) but after writing code it keeps getting directed back..can someone explain me why this is happening??

  • @sambitpradhan9577
    @sambitpradhan9577 2 ปีที่แล้ว

    Sir please tell me in this project we need any api

  • @rrajkumar9796
    @rrajkumar9796 3 ปีที่แล้ว +2

    I am trying this app working good.
    But attempt questions complete show bottom sheet dialogue box.
    Whenever click restart button again open bottom sheet dialogue box.
    How to solve

    • @psycho5553
      @psycho5553 3 ปีที่แล้ว +5

      he did the misstake at retartQuizBtn.
      on the "Onclick"
      questionsattempted = 0;
      must be at the start before the currentpos = random thing
      otherwise it will open it twice

    • @rrajkumar9796
      @rrajkumar9796 3 ปีที่แล้ว

      Done successfully.
      App working good 👍

    • @theradshoom6929
      @theradshoom6929 2 ปีที่แล้ว +1

      @@psycho5553 do you know how to show the right answer when you get the wrong answer??

    • @eshakhalid360
      @eshakhalid360 ปีที่แล้ว

      Did you know how to show the correct answer

  • @siddharthkharvi1217
    @siddharthkharvi1217 3 ปีที่แล้ว +6

    Bro plz next time turn on dark theme
    Eye hurts

  • @bharatpanchal6261
    @bharatpanchal6261 3 ปีที่แล้ว

    Pls add random question and restart button and share intent result

  • @l.aguirre5550
    @l.aguirre5550 2 ปีที่แล้ว

    hola.. como puedo omitir el random?? quiero que las preguntas vayan en el orden que fueron escritos y no que se repita.. gracias

  • @differentgaming8378
    @differentgaming8378 3 ปีที่แล้ว

    Sir/madam, actually iam developing a small quiz app of 10 levels, and iam stuck now, because I don't know how to code to lock and unlock 🔒➕🔓 levels and store in shared preference, please help me.

  • @Sakuharuu
    @Sakuharuu 3 ปีที่แล้ว

    the score sheet doesn't show up, why is that?

  • @AinasDiaries
    @AinasDiaries 3 ปีที่แล้ว +2

    Is this kotlin or java???

  • @abdulmazee6362
    @abdulmazee6362 2 ปีที่แล้ว

    i didn’t get mainactivity java file

  • @rushikeshborkar9424
    @rushikeshborkar9424 3 ปีที่แล้ว

    which editer is used for it

  • @YONG26188
    @YONG26188 3 ปีที่แล้ว

    The app works for me but why the question just repeat ,can someone help me ?

    • @starkendeavours7072
      @starkendeavours7072 2 ปีที่แล้ว

      He is using the random() method, so same questions will repeat that's obvious.
      Hint - 1 : Just Create a method isAttempted(), and check if ( isAttempted()) is true... If true, then call the setDataToViews() method again... Hopefully it'll resolve.
      Hint - 2 : Its not necessary to use random() method. You can simply traverse through the ArrayList from start till end.. In that case no such scenarios of repeating questions will generate... In my opinion it's not recommended to use random() method.. if you are displaying the attempted questions and score...

  • @sarojnishrivastava3422
    @sarojnishrivastava3422 3 ปีที่แล้ว

    Bottom Sheet Dialog ki error aa rahi hai, please help me

  • @neloyislam4002
    @neloyislam4002 2 ปีที่แล้ว +2

    source code ???

    • @kojagirdevelopers
      @kojagirdevelopers 2 ปีที่แล้ว

      Available

    • @neloyislam4002
      @neloyislam4002 2 ปีที่แล้ว +1

      @@kojagirdevelopers too late.. I have already finished 2 semesters

    • @kojagirdevelopers
      @kojagirdevelopers 2 ปีที่แล้ว

      @@neloyislam4002 I created this code today only.

    • @emanjamal6202
      @emanjamal6202 ปีที่แล้ว +1

      @@kojagirdevelopers hello i need the source code do you hava it?

  • @injob247
    @injob247 3 ปีที่แล้ว

    Sir hindi me ni bnega kya video

  • @ahmadtashli1333
    @ahmadtashli1333 2 ปีที่แล้ว

    If you have answered the questions and the score has not changed, delete the toLowerCase in option1Btn in onClick,
    The same goes for the other options

  • @AHTSkills
    @AHTSkills 2 ปีที่แล้ว

    Whatever you select but ans are always 9 correct 🤣

    • @kojagirdevelopers
      @kojagirdevelopers 2 ปีที่แล้ว

      Try this, questionattempted = "1" is right their, Change this, questionattempted = "0"

    • @hamzaayaz7665
      @hamzaayaz7665 10 หลายเดือนก่อน

      The problem is with the extra semi colons at the end of option3Btn and all the other options

  • @nikitashewale7210
    @nikitashewale7210 3 ปีที่แล้ว +1

    anybody plz provide source code

  • @sairamdonthula7827
    @sairamdonthula7827 3 ปีที่แล้ว +1

    👌👌

  • @kumarritik3476
    @kumarritik3476 3 ปีที่แล้ว +2

    Thankyou ❤️...