Develop Flag Quiz in Android Studio

Поділитися
Вставка
  • Опубліковано 17 гру 2024

КОМЕНТАРІ • 98

  • @MysticAuraLK
    @MysticAuraLK 6 років тому +1

    I'm getting this error :(
    "Access denied finding property "vendor.perf.iop_v3.enable"
    Access denied finding property "vendor.perf.iop_v3.enable.debug""

  • @Aldrakoin
    @Aldrakoin 7 років тому +1

    two questions
    Is it necessary to carry a database?
    And to move to a new activity at the time of winning and play as it would be?

  • @PixelProwess44
    @PixelProwess44 6 років тому +1

    how about if the ;ast question is wrong how can i go to the next activity ?

  • @Queen-fv1wk
    @Queen-fv1wk 6 років тому +1

    Hi Ti, query need your help. (1) newQuestion (turn);
    Error message: cannot solve method 'newQuestion(int)'.

  • @OrangGoa007
    @OrangGoa007 6 років тому +2

    its random for flag ??

  • @ch95848
    @ch95848 4 роки тому

    What are the advantages of adding more country to a java class database instead of using something like SQLite? If I'm trying to do a similar quiz with 500+ images (a flag for all the country and a map with position) should I use SQLite? I'm new to android studio so this method would be easier thanks to this video. Thank you very much, really good tutorial!!

    • @TihomirRAdeff
      @TihomirRAdeff  4 роки тому

      sqlite is more complicated and this tutorials should be useful for people which are beginners :)

  • @mranand494
    @mranand494 6 років тому +1

    i fixed my previous error ,,, ,In debugging mode the code is fine but while generating signed apk error appears "Error:Error: This class should provide a default constructor (a public constructor with no arguments) (test.quiz.animalquestion) [Instantiatable]"--when searched in internet it says add 'public animalquestion() {}' to class ' which i am not able to understand as iam new in this app making business therefore i request you to make vdeo on this

  • @payambassi8784
    @payambassi8784 6 років тому

    Hi, Tihomir RAdeff, Thank you for your suggestion. I had a look at this video, but it does not allow for example to go through all the questions and maybe get some right and some wrong. And then start the quiz again but only be given the questions that were answered incorrectly. Are you able to make a video of such feature or at least direct me as to which methods, Shared pref or other things I need to look for? Thanks in advance

    • @TihomirRAdeff
      @TihomirRAdeff  6 років тому

      You can save in SharedPreferences the numbers of the questions that are wrong and then show only them. I don't have video about this currently.

  • @genesisinigo7319
    @genesisinigo7319 6 років тому +1

    How to make databases and store it on shared preferences? Can you do that?

  • @evomind2005
    @evomind2005 6 років тому

    muito bom seus vídeos, sou brasileiro mais assisto seus videos

  • @sudheerpaturi2256
    @sudheerpaturi2256 7 років тому

    hi, can you tell me how to add all the scores to a list and make a score board to display the top scores everytime a player plays the game. Im using your database helper video to create a database, i just need to know how to add scores from this game to that database.

    • @TihomirRAdeff
      @TihomirRAdeff  7 років тому

      it's not easy to explain. But in video about the database I add simple elements to the database. In the same way you can add every new score to the database. And when you want to view them, just get them from the database and display them in listview for example. I have tutorials about simple listview.

    • @TihomirRAdeff
      @TihomirRAdeff  7 років тому

      Also if you want to keep only the top 3 scores for example, it can be with SharedPreferences without database. It would be easier I think.

    • @sudheerpaturi2256
      @sudheerpaturi2256 7 років тому

      in the database, you created a list and when you hardcode the values in main activity, you are calling the getallcontacts list and that is how contacts are being displayed.
      I want to know how to create a list for the scores in the flags quiz main activity and I want to know how to link it with the list like get all contacts in database helper

    • @TihomirRAdeff
      @TihomirRAdeff  7 років тому

      At the end of each game just save the score in the database like I save the items in the MainActivity of the Database tutorial. That way the score will save at the end of the database, and each new score will save after that. And when you are in the scores screen for example you can call the method which gets all elements from the database like I call gel all contacts. I don't see what is bothering you. Apparently you saw and understood the database tutorial. The logic is the same.

    • @sudheerpaturi2256
      @sudheerpaturi2256 7 років тому

      I will try it and I will get back to you if I have any further issues. thank you for replying quickly. your videos are really good. keep up the good work

  • @GamersPark
    @GamersPark 7 років тому

    hello sir i finnish makimg the apk.but when i run it to cellphone the will be "unfortunately the app was stop. what seems to be the problem?

    • @syimirnick
      @syimirnick 7 років тому

      i got the same problem .

  • @pholaris2225
    @pholaris2225 6 років тому

    Good morning or night... or afternoon, whatever, thanks for help but i have a query... how to put a question accompanied by the image using textView?

    • @TihomirRAdeff
      @TihomirRAdeff  6 років тому

      you should use imageview for the image. you cannot add image to textview.

    • @pholaris2225
      @pholaris2225 6 років тому

      @@TihomirRAdeff Yes, yes, but I'm talking about both, a text and image, text using textview and image with imageview in quiz, it's possible?

    • @TihomirRAdeff
      @TihomirRAdeff  6 років тому

      Yes it's possible.

  • @vipuljain215
    @vipuljain215 7 років тому +1

    why app closed automatically when attempt any wrong question ?

    • @TihomirRAdeff
      @TihomirRAdeff  7 років тому

      you missed something in the code

    • @romzysmael1114
      @romzysmael1114 7 років тому

      maybe you have only one activity in your project..the code finish() will close the activity

    • @vipuljain215
      @vipuljain215 7 років тому +1

      Thanks for reply , i got my fault

    • @nugojaparidze6114
      @nugojaparidze6114 6 років тому

      did you fix this problem?

    • @genesisinigo7319
      @genesisinigo7319 6 років тому

      Same question. Followed everything but still app closes when you tried to press the wrong answer.

  • @ReKardooo1
    @ReKardooo1 7 років тому +1

    the answers not showing in the button. in other words the buttons are empty .. Please help

    • @TihomirRAdeff
      @TihomirRAdeff  7 років тому

      +Gabriel Farlas watch the video again. you missed something.

    • @ReKardooo1
      @ReKardooo1 7 років тому

      the source code please

  • @mranand494
    @mranand494 6 років тому

    my app is crashing error-- java.lang.RuntimeException: Unable to start activity ComponentInfo{test.quiz/test.quiz.latest}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0

  • @HueNguyen-kk6iw
    @HueNguyen-kk6iw 6 років тому

    how can i make it with audio, what should i do ? , tks

  • @khurramshahzadkhan3556
    @khurramshahzadkhan3556 7 років тому

    Hello Sir I follow your code and make the same application and then I run it after running it's just show blank white screen at my mobile . What is the problem ? please can you help me?

    • @TihomirRAdeff
      @TihomirRAdeff  7 років тому

      +khurram khan you missed some code. watch the video again and compare with your code.

    • @akevinc
      @akevinc 7 років тому

      I had the same issue and my problem was that I followed this tutorial but only with 3 countries, so the 4th button never had the chance to get build. So my solution was to add more countries (more than 4 at least). Maybe you are having the same issue.

    • @khurramshahzadkhan3556
      @khurramshahzadkhan3556 7 років тому

      I added 12 countries with same 4 buttons but same problem exist

    • @akevinc
      @akevinc 7 років тому

      Are you getting any warning at the log window? If your images are no too big there should be no problem. Let me know if you are getting any warnings otherwise you can send me your code and I can check it up for you.

    • @khurramshahzadkhan3556
      @khurramshahzadkhan3556 7 років тому

      Bro where i can send you code
      ? By Email ?

  • @SteveNgaiCheeWeng
    @SteveNgaiCheeWeng 7 років тому

    Hi, my app closed when run this line 74: iv_flag.setImageResource(list.get(number - 1).getImage());

    • @TihomirRAdeff
      @TihomirRAdeff  7 років тому

      +Steve Ngai What is the error?

    • @SteveNgaiCheeWeng
      @SteveNgaiCheeWeng 7 років тому

      no error. anyway i found out the issue. after i resize the image to smaller size, it works already. thanks.

  • @Kundilisme
    @Kundilisme 6 років тому

    how to combine question string with picture into array like that ? tell me pls sir.

    • @TihomirRAdeff
      @TihomirRAdeff  6 років тому +1

      you have to make array with custom objects but you need java more java knowledge on this

    • @Kundilisme
      @Kundilisme 6 років тому

      @@TihomirRAdeff okay sir, i will learn for it. thank you for replying and make this tutorial.

  • @ezplar
    @ezplar 7 років тому

    Question sir. when i'm clicking an answer, the image wont change?

    • @TihomirRAdeff
      @TihomirRAdeff  7 років тому

      you missed something. look the code in the newQuestion() method. maybe something in there. or look the code in the buttons. you should change turn number on very click (turn++). Compare your code with the video. maybe something very small but you missed it.

    • @Queen-fv1wk
      @Queen-fv1wk 6 років тому

      eleo pilar How to solve 'newQuestion(turn)' problem? 'newQuestion' change red color, it seemed never use it.

  • @itsdanikameya
    @itsdanikameya 6 років тому

    hello sir! good day! do you know how to fix this error: contentDescription? it always show a warning sign. thank you so much!

    • @TihomirRAdeff
      @TihomirRAdeff  6 років тому

      Dannica Mae Tunod you can ignore it

    • @itsdanikameya
      @itsdanikameya 6 років тому

      Tihomir RAdeff thank you for replying sir! another question, I followed all your codes but there's an error when I tried to run it. instead of the names of the flags in String[] answers, it shows "res/drawsv24/[name of the flag] then even if i click the correct answer, it says "wrong!" what could be the error sir? thank you!

  • @unknownuser0323
    @unknownuser0323 6 років тому +1

    how can we add score in this?

    • @i_am_reshad
      @i_am_reshad 4 роки тому

      Put textview to layout, and come mainactivity.java find the turn++ sign in each setonclicklister method. Come below of turn++;
      Write it: textview.setText 1..2.3..4
      You got the idea)

  • @amgharamine9720
    @amgharamine9720 6 років тому

    Buttons are sometimes displayed empty

  • @nugojaparidze6114
    @nugojaparidze6114 6 років тому

    app closed automatically when attempt wrong answer can you help me?

    • @simoben2484
      @simoben2484 6 років тому

      maybe you have only one activity in your project..the code finish() will close the activity

  • @nannonaman5200
    @nannonaman5200 4 роки тому +1

    thankyou !!!!

  • @gallaherchris
    @gallaherchris 6 років тому +1

    Would've been a good video if there was sound

    • @i_am_reshad
      @i_am_reshad 4 роки тому

      Sorry i am not native speaker, so i changed this sentence into: would've been a good picture if there was you and comment it to the instagram photo of my best friend

  • @teena0311
    @teena0311 5 років тому

    Imageview is not coming to centre please help

    • @i_am_reshad
      @i_am_reshad 4 роки тому

      Try to give more information, which type of layout out did you use?

  • @danishfarooqui2815
    @danishfarooqui2815 7 років тому

    what about choices as images ??

    • @TihomirRAdeff
      @TihomirRAdeff  7 років тому

      If you answers are images insted of buttons you should add imageviews. And in your database instead of text choices you have to add drawable files. It's not that hard but if you are beginner maybe you will not succeed.

    • @stuart6088
      @stuart6088 6 років тому

      what do I need to check if the answer is correct? I have everything else working but in my attempt to compare the answer to the image chosen it never gives a positive response.

    • @aminabraikia6934
      @aminabraikia6934 4 роки тому

      @@stuart6088 what did you do to compare the answers plz help

  • @PuruWorld
    @PuruWorld 7 років тому

    can u make a flashlight app for me

  • @rushikulkarni6470
    @rushikulkarni6470 7 років тому

    can u tell how to add score

  • @raisisn
    @raisisn 6 років тому

    my Collection.shuffle red text why ??

    • @Queen-fv1wk
      @Queen-fv1wk 6 років тому

      Rais ilham my question(turn); turn red, why?

  • @hamzaahmed6868
    @hamzaahmed6868 6 років тому

    Source code please?

  • @jorgepocholonavarro6655
    @jorgepocholonavarro6655 6 років тому

    Hello, how about non image

    • @TihomirRAdeff
      @TihomirRAdeff  6 років тому

      jorge pocholo navarro I have tutorial about quiz without images on my channel.

    • @jorgepocholonavarro6655
      @jorgepocholonavarro6655 6 років тому

      Tihomir RAdeff can I have the link? Please 😊

    • @TihomirRAdeff
      @TihomirRAdeff  6 років тому

      ua-cam.com/video/JA9s_Fntg_4/v-deo.html

  • @deepikadeepika2900
    @deepikadeepika2900 3 роки тому

    Can u please share source code sirr

  • @nugojaparidze6114
    @nugojaparidze6114 6 років тому

    i cant ((

  • @FPix5
    @FPix5 6 років тому

    thanks a lot!

  • @2011marceloalejandro
    @2011marceloalejandro 5 років тому

    why app closed automatically when attempt any wrong question ?

    • @i_am_reshad
      @i_am_reshad 4 роки тому

      Try to delete setonclicklistener: just delete "finish()" method