Giter Site home page Giter Site logo

libretrivia's Introduction

tryton:
  os: "Fedora Workstation"
  languages:
   - "Python"
   - "Rust"
   - "Go"
   - "Java"
   - "Vala"
   - "C"
   - "Bash / POSIX Shell"
   - "C#"
   - "JavaScript"
  desktop: "GNOME"
  editor: "VSCode"
  terminal: "Tilix"
  shell: "fish"
  font: "JetBrains Mono"
  colors: "Dracula"

libretrivia's People

Contributors

allen-b1 avatar larissayasin avatar lgommans avatar macbrayne avatar singalhimanshu avatar tacothedank avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libretrivia's Issues

Add a possibility to share your results with friends

Many apps let you share the results with your contacts/friends, usually through the share button. LIbreTrivia could so the same, you could have a 'share' button where you send a screenshot to selected friends on your fav messenger.

[Bug] App crashes on incorrect answer to true/false question

Might be related to #23

Log:

11-11 14:44:36.292 E/AndroidRuntime(12047): FATAL EXCEPTION: main
11-11 14:44:36.292 E/AndroidRuntime(12047): Process: io.github.trytonvanmeer.libretrivia, PID: 12047
11-11 14:44:36.292 E/AndroidRuntime(12047): java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setBackgroundTintList(android.content.res.ColorStateList)' on a null object reference
11-11 14:44:36.292 E/AndroidRuntime(12047): 	at io.github.trytonvanmeer.libretrivia.activities.TriviaGameActivity.onAnswerClick(TriviaGameActivity.java:177)
11-11 14:44:36.292 E/AndroidRuntime(12047): 	at io.github.trytonvanmeer.libretrivia.fragments.TriviaQuestionFragment$AnswerButtonListener.onClick(TriviaQuestionFragment.java:114)
11-11 14:44:36.292 E/AndroidRuntime(12047): 	at android.view.View.performClick(View.java:6619)
11-11 14:44:36.292 E/AndroidRuntime(12047): 	at android.view.View.performClickInternal(View.java:6596)
11-11 14:44:36.292 E/AndroidRuntime(12047): 	at android.view.View.access$3100(View.java:780)
11-11 14:44:36.292 E/AndroidRuntime(12047): 	at android.view.View$PerformClick.run(View.java:25951)
11-11 14:44:36.292 E/AndroidRuntime(12047): 	at android.os.Handler.handleCallback(Handler.java:873)
11-11 14:44:36.292 E/AndroidRuntime(12047): 	at android.os.Handler.dispatchMessage(Handler.java:99)
11-11 14:44:36.292 E/AndroidRuntime(12047): 	at android.os.Looper.loop(Looper.java:193)
11-11 14:44:36.292 E/AndroidRuntime(12047): 	at android.app.ActivityThread.main(ActivityThread.java:6698)
11-11 14:44:36.292 E/AndroidRuntime(12047): 	at java.lang.reflect.Method.invoke(Native Method)
11-11 14:44:36.292 E/AndroidRuntime(12047): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:495)
11-11 14:44:36.292 E/AndroidRuntime(12047): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:859)

Libre trivia app gets crashed.

Actual behavior

I opened the libre trivia opensource android app and then I clicked on start game. After that I rotated my phone. Suddenly the app crashed.

How to reproduce

  • First you need to download the app from fdroid and then install it. After that open the app.

  • Click on the start game.

  • Rotate your phone. Unfortunately the app will crash suddenly.

https://youtu.be/OLSOk9ssX8Q

  • Browser: Libre trivia

  • Version: 0.2.3

  • Operating system:7.1.2

  • Device model:Redmi 4

feature request: offline mode

It would be great if it could be played offline. Maybe am option to pre download a large number of questions for offline.

App crashes whenever I try to answer a question.

Whenever I start a game, the app crashes when I tap an answer to the first question. Here's the log:

--------- beginning of main
04-10 19:36:22.062  8127  8127 I art     : Starting a blocking GC AddRemoveAppImageSpace
04-10 19:36:22.064  8127  8127 W System  : ClassLoader referenced unknown path: /data/app/io.github.trytonvanmeer.libretrivia-1/lib/arm64
04-10 19:36:22.143  8127  8145 I Adreno  : QUALCOMM build                   : 74df444, I409c65498b
04-10 19:36:22.143  8127  8145 I Adreno  : Build Date                       : 06/22/16
04-10 19:36:22.143  8127  8145 I Adreno  : OpenGL ES Shader Compiler Version: XE031.08.00.02
04-10 19:36:22.143  8127  8145 I Adreno  : Local Branch                     : N16
04-10 19:36:22.143  8127  8145 I Adreno  : Remote Branch                    : 
04-10 19:36:22.143  8127  8145 I Adreno  : Remote Branch                    : 
04-10 19:36:22.143  8127  8145 I Adreno  : Reconstruct Branch               : 
04-10 19:36:22.150  8127  8145 I OpenGLRenderer: Initialized EGL, version 1.4
04-10 19:36:22.150  8127  8145 D OpenGLRenderer: Swap behavior 1
04-10 19:36:34.584  8127  8159 D NetworkSecurityConfig: No Network Security Config specified, using platform default
04-10 19:36:34.585  8127  8159 W System  : ClassLoader referenced unknown path: /system/framework/tcmclient.jar
04-10 19:36:34.662  8127  8145 D OpenGLRenderer: endAllActiveAnimators on 0x7f6eefc400 (RippleDrawable) with handle 0x7f6e774320
04-10 19:36:35.909  8127  8127 E MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
04-10 19:36:35.909  8127  8127 E MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
04-10 19:36:35.929  8127  8139 E MediaPlayer: error (1, -2147483648)
04-10 19:36:35.930  8127  8127 D MediaPlayer: create failed:
04-10 19:36:35.930  8127  8127 D MediaPlayer: java.io.IOException: Prepare failed.: status=0x1
04-10 19:36:35.930  8127  8127 D MediaPlayer:   at android.media.MediaPlayer._prepare(Native Method)
04-10 19:36:35.930  8127  8127 D MediaPlayer:   at android.media.MediaPlayer.prepare(MediaPlayer.java:1184)
04-10 19:36:35.930  8127  8127 D MediaPlayer:   at android.media.MediaPlayer.create(MediaPlayer.java:943)
04-10 19:36:35.930  8127  8127 D MediaPlayer:   at android.media.MediaPlayer.create(MediaPlayer.java:914)
04-10 19:36:35.930  8127  8127 D MediaPlayer:   at io.github.trytonvanmeer.libretrivia.util.SoundUtil.playSound(SoundUtil.java:20)
04-10 19:36:35.930  8127  8127 D MediaPlayer:   at io.github.trytonvanmeer.libretrivia.activities.TriviaGameActivity.onAnswerClick(TriviaGameActivity.java:180)
04-10 19:36:35.930  8127  8127 D MediaPlayer:   at io.github.trytonvanmeer.libretrivia.fragments.TriviaQuestionFragment$AnswerButtonListener.onClick(TriviaQuestionFragment.java:113)
04-10 19:36:35.930  8127  8127 D MediaPlayer:   at android.view.View.performClick(View.java:5637)
04-10 19:36:35.930  8127  8127 D MediaPlayer:   at android.view.View$PerformClick.run(View.java:22433)
04-10 19:36:35.930  8127  8127 D MediaPlayer:   at android.os.Handler.handleCallback(Handler.java:751)
04-10 19:36:35.930  8127  8127 D MediaPlayer:   at android.os.Handler.dispatchMessage(Handler.java:95)
04-10 19:36:35.930  8127  8127 D MediaPlayer:   at android.os.Looper.loop(Looper.java:154)
04-10 19:36:35.930  8127  8127 D MediaPlayer:   at android.app.ActivityThread.main(ActivityThread.java:6186)
04-10 19:36:35.930  8127  8127 D MediaPlayer:   at java.lang.reflect.Method.invoke(Native Method)
04-10 19:36:35.930  8127  8127 D MediaPlayer:   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
04-10 19:36:35.930  8127  8127 D MediaPlayer:   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
04-10 19:36:35.931  8127  8127 D AndroidRuntime: Shutting down VM
--------- beginning of crash
04-10 19:36:35.931  8127  8127 E AndroidRuntime: FATAL EXCEPTION: main
04-10 19:36:35.931  8127  8127 E AndroidRuntime: Process: io.github.trytonvanmeer.libretrivia, PID: 8127
04-10 19:36:35.931  8127  8127 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.MediaPlayer.setVolume(float, float)' on a null object reference
04-10 19:36:35.931  8127  8127 E AndroidRuntime:        at io.github.trytonvanmeer.libretrivia.util.SoundUtil.playSound(SoundUtil.java:21)
04-10 19:36:35.931  8127  8127 E AndroidRuntime:        at io.github.trytonvanmeer.libretrivia.activities.TriviaGameActivity.onAnswerClick(TriviaGameActivity.java:180)
04-10 19:36:35.931  8127  8127 E AndroidRuntime:        at io.github.trytonvanmeer.libretrivia.fragments.TriviaQuestionFragment$AnswerButtonListener.onClick(TriviaQuestionFragment.java:113)
04-10 19:36:35.931  8127  8127 E AndroidRuntime:        at android.view.View.performClick(View.java:5637)
04-10 19:36:35.931  8127  8127 E AndroidRuntime:        at android.view.View$PerformClick.run(View.java:22433)
04-10 19:36:35.931  8127  8127 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:751)
04-10 19:36:35.931  8127  8127 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:95)
04-10 19:36:35.931  8127  8127 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:154)
04-10 19:36:35.931  8127  8127 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6186)
04-10 19:36:35.931  8127  8127 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
04-10 19:36:35.931  8127  8127 E AndroidRuntime:        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
04-10 19:36:35.931  8127  8127 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

LibreTrivia - Layout bug when user changes into landscape mode

Expected Behaviour

When one arrives at the landscape mode, one should be able to proceed with the game. The layout should be functional and the game should be playable.



Actual Behaviour

When one changes into landscape mode, one could not scroll the page. Making the game is unplayable. The layout is not functional in landscape mode.



Steps to reproduce

Launch LibreTrivia 0.2.3 on Android 7.0

Change into landscape mode by enabling auto-rotate function in the device.



Testing Environment

Device: Honor 8 Pro

Model number: DUK-L09

OS: Android 7.0

App Version: 0.2.3

Notes: App downloadable on F-droid



Recording of bug

https://youtu.be/JjAKuWG0U5c



Posted on Utopian.io - Rewarding Open Source Contributors

Improve recap page

Right now, it does not matter whether all your answers were correct or not, you get a recap page with a boring grey svg. IMHO it would be better to make it nicer. If you give all answers correct you could display a golden cup or even fireworks, if you give all wrong answers, something else...
There are many sites with free svgs (like https://publicdomainvectors.org/ or https://freesvg.org/) you could use and users here could think about what's the best choice.

Edit: I think it would be nice also if you specified the category and difficulty you chose.

Question and Feature request

In the F-Droid description of the app, you write something about the "Open Trivia Database", is this database planned to be multilingual? Sorry if this is the wrong place to put this question.

Thus, my feature request would be, if the database is planned to be multilingual, to add multiple languages into the app and the possibility to add questions into the database by the app.

Correct answer not unescaped.

The correct answer text is not unescaped, which gives it away.

Here's a nice example. Note how the raw HTML entity is shown only for the correct answer:

screenshot

Edit: LibreTrivia 0.2.3 from F-Droid.

the progress counter (shows number played out of the total game) disappears ones you click the home button and and then restore the app again

Expected behavior

i expected the progress counter (this shows how many played out of the selected number) to display after restoring the app from background

Actual behavior

when i restored the app from background, the game was were it was before i minimized it but the progress counter disappeared

How to reproduce

launch the app, click on start game , play (answer the game question) one or two games, the minimize the app, after which maximize from the background, then you will notice that the progress counter will disappear

  • Browser: Libre Trivia. Version 0.2.3
  • Operating system: Android 5.1.1 Lollipop. Infinix hot 3 LTE

Recording Of The Bug

https://youtu.be/WBZpj0o5Wow



Posted on Utopian.io - Rewarding Open Source Contributors

how to set TriviaDifficulty programmable ?

how to set TriviaDifficulty programmable ?
like i want as

String resultDifficulty = "";
if (datapoints<=200 ){
resultDifficulty = "EASY";
}
if (datapoints>201 ){
resultDifficulty = "MEDIUM";
}
if (datapoints>=500 ){
resultDifficulty = "HARD";
}

but wen use this as

TriviaQuery query = new TriviaQuery.Builder(amount)
.category(TriviaCategory.GENERAL_KNOWLEDGE)
//.difficulty(TriviaDifficulty.EASY)
.difficulty(resultDifficulty)
.build();

. get error as
game

Will you help me ?

Competitive Mode

A competitive mode similar to the swedish app "Quizkampen" would be really nice. The required effort for this is relatively high, but it should be fairly straight forward to implement this based on matrix

Show correct answer

When selecting the wrong answer, it should highlight in green what the right answer was or offer a summary including correct answers at the end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.