Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
roh-it committed Feb 13, 2018
0 parents commit 70fac76
Show file tree
Hide file tree
Showing 152 changed files with 6,376 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
.externalNativeBuild
22 changes: 22 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions License.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Sarveshchavan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
60 changes: 60 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Quiz Game
- Quiz game for android
- Written by Sarvesh chavan
- Under The MIT License (MIT)
- Copyright (c) 2017 Sarvesh chavan

# Usage
- Import the TriviaQuiz game into Android studio.

# Features
- Educational (General knowledge).
- Added comments above code so it will help you understand code much better
- It has database to store questions
- Correct answer +1 coin (Coins at top left corner)
- Timmer of 20 sec for each question (Timer at top right corner)
- Random questions at each play (It will peek random ques and will show it to the user)
- Good and Extensible UI.
- Can be played offline
- Compatibility with Android API-14 and above
- minSdkVersion 14
- targetSdkVersion 25

# Screenshots
![screenshot_2017-09-12-18-09-11-050](https://user-images.githubusercontent.com/22947683/30327745-d58f6054-9792-11e7-95f6-cc58f26a87de.jpg)
![screenshot_2017-09-12-18-10-14-944](https://user-images.githubusercontent.com/22947683/30327761-dc22de64-9792-11e7-8f07-2a470352d6ae.jpg)
![screenshot_2017-09-12-18-11-59-568](https://user-images.githubusercontent.com/22947683/30327767-e06793ac-9792-11e7-93c4-4f952042b0ed.jpg)
![screenshot_2017-09-12-18-09-28-914](https://user-images.githubusercontent.com/22947683/30327776-e5c1f022-9792-11e7-8063-903ad3c06c6c.jpg)
![screenshot_2017-09-12-18-09-53-445](https://user-images.githubusercontent.com/22947683/30327780-e91bd936-9792-11e7-8050-a051439294d5.jpg)
![screenshot_2017-09-12-18-11-44-119](https://user-images.githubusercontent.com/22947683/30327828-0c65a0ac-9793-11e7-987c-20c00e70ff8a.jpg))



# Notice
- Feel free to import the project in android studio it is for educational purpose (to learn to build the quiz type android appication)
- If you do like what you saw please give it a star!! ![star](https://user-images.githubusercontent.com/22947683/30509991-c2950a48-9a81-11e7-9023-48796c02d00f.PNG) it mean a lot to me it boosts me to build more game and help you guys.
- For any details or query fill free to email me - [email protected]

# Other games
Do check out my other games
- [Trivia Knowledge](https://github.com/sarveshchavan7/Trivia-Knowledge)
- [Angry Birds](https://github.com/sarveshchavan7/AngryBirds)
- [Math Game](https://github.com/sarveshchavan7/Math-game)


# Donation
- If this project helps you reduce time to develop, you can give me a cup of coffee :)
- It will help me to build more games
[![](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.me/sarveshchavan)

# License
<pre>
MIT License

Copyright (c) 2017 sarvesh chavan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
34 changes: 34 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "rovi.iq"
minSdkVersion 14
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})

compile 'com.android.support:appcompat-v7:25.1.0'
compile 'info.hoang8f:fbutton:1.0.5'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
implementation 'com.android.support:cardview-v7:25.1.0'
implementation 'com.android.support:recyclerview-v7:25.1.0'
}
17 changes: 17 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\Users\LENOVO\AppData\Local\Android\Sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
26 changes: 26 additions & 0 deletions app/src/androidTest/java/rovi/iq/ExampleInstrumentedTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package rovi.iq;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
* Instrumentation test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("rovi.iq", appContext.getPackageName());
}
}
32 changes: 32 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="rovi.iq">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.AppCompat.NoActionBar">
<activity android:name="rovi.iq.Main2Activity">
<intent-filter>
<action android:name="android.intent.action.MAIN"
/>

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="rovi.iq.HomeScreen" />
<activity android:name="rovi.iq.PlayAgain" />
<activity android:name="rovi.iq.GameWon" />
<activity android:name="rovi.iq.Time_Up" />
<activity android:name="rovi.iq.MainActivity"
android:label="Select a Category"/>
<activity android:name="rovi.iq.GeneralKnowledgeActivity" />
<activity android:name="rovi.iq.ZooActivity" />
<activity android:name="rovi.iq.SportsActivity" />
<activity android:name="rovi.iq.FilmActivity" />
<activity android:name="rovi.iq.GeoActivity"></activity>
</application>

</manifest>
Binary file added app/src/main/assets/fonts/TitilliumWeb-Bold.ttf
Binary file not shown.
Binary file added app/src/main/assets/fonts/shablagooital.ttf
Binary file not shown.
33 changes: 33 additions & 0 deletions app/src/main/java/rovi/iq/Details.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package rovi.iq;

/**
* Created by Rrohi on 12-02-2018.
*/
public class Details {


private int image_id;
private String cat_name;

public Details(int image_id,String cat_name)
{
this.setImage_id(image_id);
this.setCat_name(cat_name);
}

public int getImage_id() {
return image_id;
}

public void setImage_id(int image_id) {
this.image_id = image_id;
}

public String getCat_name() {
return cat_name;
}

public void setCat_name(String cat_name) {
this.cat_name = cat_name;
}
}
Loading

0 comments on commit 70fac76

Please sign in to comment.