-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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. |
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 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
) | ||
|
||
|
||
|
||
# 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!!  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.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. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
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' | ||
} |
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 *; | ||
#} |
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()); | ||
} | ||
} |
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> |
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; | ||
} | ||
} |