Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .gradle/4.6/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/4.6/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/4.6/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified .gradle/4.6/javaCompile/classAnalysis.bin
Binary file not shown.
Binary file modified .gradle/4.6/javaCompile/jarAnalysis.bin
Binary file not shown.
Binary file modified .gradle/4.6/javaCompile/javaCompile.lock
Binary file not shown.
Binary file modified .gradle/4.6/javaCompile/taskHistory.bin
Binary file not shown.
Binary file modified .gradle/4.6/javaCompile/taskJars.bin
Binary file not shown.
Binary file modified .gradle/4.6/taskHistory/taskHistory.bin
Binary file not shown.
Binary file modified .gradle/4.6/taskHistory/taskHistory.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.

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.

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

2 changes: 1 addition & 1 deletion .idea/misc.xml

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

548 changes: 304 additions & 244 deletions .idea/workspace.xml

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions app/app.iml
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@
<orderEntry type="library" name="Gradle: com.android.support:support-v4-27.1.1" level="project" />
<orderEntry type="library" name="Gradle: android.arch.lifecycle:common:1.1.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.google.android.gms:play-services-tasks-16.0.1" level="project" />
<orderEntry type="library" name="Gradle: com.google.android.gms:play-services-measurement-sdk-api-16.0.2" level="project" />
<orderEntry type="library" name="Gradle: com.google.code.gson:gson:2.7@jar" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:customtabs-27.1.1" level="project" />
<orderEntry type="library" name="Gradle: com.google.android.gms:play-services-measurement-base-16.0.3" level="project" />
<orderEntry type="library" name="Gradle: com.google.zxing:core:3.3.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.twitter:twitter-text:1.14.3@jar" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:recyclerview-v7-27.1.1" level="project" />
Expand All @@ -163,10 +165,12 @@
<orderEntry type="library" name="Gradle: com.github.bumptech.glide:gifdecoder-4.8.0" level="project" />
<orderEntry type="library" name="Gradle: com.facebook.android:facebook-share-4.37.0" level="project" />
<orderEntry type="library" name="Gradle: com.squareup.okhttp3:okhttp:3.4.2@jar" level="project" />
<orderEntry type="library" name="Gradle: com.google.android.gms:play-services-ads-lite-17.0.0" level="project" />
<orderEntry type="library" name="Gradle: com.facebook.android:facebook-applinks-4.37.0" level="project" />
<orderEntry type="library" name="Gradle: com.twitter.sdk.android:tweet-composer-3.1.0" level="project" />
<orderEntry type="library" name="Gradle: com.google.android.gms:play-services-auth-base-16.0.0" level="project" />
<orderEntry type="library" name="Gradle: com.google.android.gms:play-services-auth-16.0.1" level="project" />
<orderEntry type="library" name="Gradle: com.google.android.gms:play-services-ads-base-17.0.0" level="project" />
<orderEntry type="library" name="Gradle: com.twitter.sdk.android:tweet-ui-3.1.0" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:gridlayout-v7-27.1.1" level="project" />
<orderEntry type="library" name="Gradle: com.android.support.constraint:constraint-layout-solver:1.1.3@jar" level="project" />
Expand All @@ -179,10 +183,12 @@
<orderEntry type="library" name="Gradle: com.android.support:cardview-v7-27.1.1" level="project" />
<orderEntry type="library" name="Gradle: com.parse.bolts:bolts-android:1.4.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:animated-vector-drawable-27.1.1" level="project" />
<orderEntry type="library" name="Gradle: com.google.android.gms:play-services-ads-identifier-16.0.0" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:support-compat-27.1.1" level="project" />
<orderEntry type="library" name="Gradle: com.parse.bolts:bolts-tasks:1.4.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.twitter.sdk.android:twitter-3.1.0" level="project" />
<orderEntry type="library" name="Gradle: android.arch.lifecycle:viewmodel-1.1.0" level="project" />
<orderEntry type="library" name="Gradle: com.google.android.gms:play-services-ads-17.0.0" level="project" />
<orderEntry type="library" name="Gradle: com.parse.bolts:bolts-applinks:1.4.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.github.bumptech.glide:glide-4.8.0" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:support-vector-drawable-27.1.1" level="project" />
Expand All @@ -201,5 +207,6 @@
<orderEntry type="library" name="Gradle: com.facebook.android:facebook-messenger-4.37.0" level="project" />
<orderEntry type="library" name="Gradle: com.github.bumptech.glide:disklrucache:4.8.0@jar" level="project" />
<orderEntry type="library" name="Gradle: android.arch.core:common:1.1.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.google.android.gms:play-services-gass-17.0.0" level="project" />
</component>
</module>
4 changes: 3 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ android {
}

dependencies {

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.facebook.android:facebook-android-sdk:4.37.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
Expand All @@ -33,6 +34,7 @@ dependencies {
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.twitter.sdk.android:twitter:3.1.0'
implementation 'com.twitter.sdk.android:twitter-core:3.1.0'
implementation 'com.google.android.gms:play-services-ads:17.0.0'

}

Expand All @@ -45,4 +47,4 @@ configurations.all {
}
}
}
}
}
23 changes: 17 additions & 6 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package="com.example.msq.quizzy">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<application
android:allowBackup="true"
Expand All @@ -25,26 +26,36 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".registerPg"></activity>
<activity android:name=".registerPg" />

<meta-data android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_app_id"/>
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_app_id" />

<activity android:name="com.facebook.FacebookActivity"
android:configChanges=
"keyboard|keyboardHidden|screenLayout|screenSize|orientation"
<activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="@string/app_name" />
<activity
android:name="com.facebook.CustomTabActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data android:scheme="@string/fb_login_protocol_scheme" />
</intent-filter>
</activity>
<activity android:name=".quizPg" />

<!-- app id = ca-app-pub-2174142312533088~2596900768 -->
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544~3347511713" />

<activity android:name=".bookmarkPg"></activity>
</application>

</manifest>
102 changes: 102 additions & 0 deletions app/src/main/java/com/example/msq/quizzy/JsonObj.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
package com.example.msq.quizzy;

import android.os.Parcel;
import android.os.Parcelable;

public class JsonObj implements Parcelable {
String question;
String QID;
String options[];
String answer;
String qNo;

public JsonObj(String question, String QID, String[] options, String answer, String qNo) {
this.question = question;
this.QID = QID;
this.options = options;
this.answer = answer;
this.qNo = qNo;
}

public JsonObj() {
this.question = "not found!";
this.QID = "not found!";
this.options = new String[]{"not found!"};
this.answer = "not found!";
this.qNo = "not found!";
}

protected JsonObj(Parcel in) {
question = in.readString();
QID = in.readString();
options = in.createStringArray();
answer = in.readString();
qNo = in.readString();
}

public static final Creator<JsonObj> CREATOR = new Creator<JsonObj>() {
@Override
public JsonObj createFromParcel(Parcel in) {
return new JsonObj(in);
}

@Override
public JsonObj[] newArray(int size) {
return new JsonObj[size];
}
};

public String getQuestion() {
return question;
}

public void setQuestion(String question) {
this.question = question;
}

public String getQID() {
return QID;
}

public void setQID(String QID) {
this.QID = QID;
}

public String[] getOptions() {
return options;
}

public void setOptions(String[] options) {
this.options = options;
}

public String getAnswer() {
return answer;
}

public void setAnswer(String answer) {
this.answer = answer;
}

public String getqNo() {
return qNo;
}

public void setqNo(String qNo) {
this.qNo = qNo;
}

@Override
public int describeContents() {
return 0;
}

@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeString(question);
parcel.writeString(QID);
parcel.writeStringArray(options);
parcel.writeString(answer);
parcel.writeString(qNo);
}
}
Loading