diff --git a/app/.gitignore b/app/.gitignore
index 796b96d..0da7183 100644
--- a/app/.gitignore
+++ b/app/.gitignore
@@ -1 +1,74 @@
+# Built application files
+*.apk
+*.ap_
+
+# Files for the ART/Dalvik VM
+*.dex
+
+# Java class files
+*.class
+
+# Generated files
+bin/
+gen/
+out/
+
+# Gradle files
+.gradle/
+build/
+
+# Local configuration file (sdk path, etc)
+local.properties
+
+# Proguard folder generated by Eclipse
+proguard/
+
+# Log Files
+*.log
+
+# Android Studio Navigation editor temp files
+.navigation/
+
+# Android Studio captures folder
+captures/
+
+# IntelliJ
+*.iml
+.idea/workspace.xml
+.idea/tasks.xml
+.idea/gradle.xml
+.idea/assetWizardSettings.xml
+.idea/dictionaries
+.idea/libraries
+.idea/caches
+
+# Keystore files
+# Uncomment the following line if you do not want to check your keystore files in.
+#*.jks
+
+# External native build folder generated in Android Studio 2.2 and later
+.externalNativeBuild
+
+# Google Services (e.g. APIs or Firebase)
+google-services.json
+
+# Freeline
+freeline.py
+freeline/
+freeline_project_description.json
+
+# fastlane
+fastlane/report.xml
+fastlane/Preview.html
+fastlane/screenshots
+fastlane/test_output
+fastlane/readme.md
+*.iml
+.gradle
+/local.properties
+/.idea/workspace.xml
+/.idea/libraries
+.DS_Store
/build
+/captures
+.externalNativeBuild
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index 6dd2b91..be1ca65 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -27,7 +27,7 @@
*/
apply plugin: 'com.android.application'
-apply plugin: 'io.fabric'
+
/*
def keystorePropertiesFile = rootProject.file("keystore.properties")
@@ -50,8 +50,8 @@ android {
applicationId "ai.loko.hk.ui"
minSdkVersion 19 //19
targetSdkVersion 28
- versionCode 26
- versionName '2.2.1'
+ versionCode 27
+ versionName '2.2.2'
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
versionNameSuffix '-capybara'
@@ -102,14 +102,9 @@ dependencies {
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
+
implementation 'com.google.android.gms:play-services-vision:17.0.2'
- implementation 'com.google.firebase:firebase-core:16.0.4'
- implementation 'com.google.firebase:firebase-crash:16.2.1'
- implementation 'com.google.firebase:firebase-messaging:17.3.4'
- implementation 'com.google.firebase:firebase-config:16.1.0'
- implementation('com.crashlytics.sdk.android:crashlytics:2.9.5@aar') {
- transitive = true;
- }
+
def room_version = "1.1.1"
implementation "android.arch.persistence.room:runtime:$room_version"
annotationProcessor "android.arch.persistence.room:compiler:$room_version"
@@ -137,4 +132,4 @@ dependencies {
gradle.taskGraph.whenReady {
setOutputName
}*/
-apply plugin: 'com.google.gms.google-services'
+
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 80ce739..ae58b57 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -42,7 +42,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
() {
+ rightBmb.addBuilder(new HamButton.Builder().normalImageRes(R.drawable.ic_directions_run_black_24dp).subNormalText("Click here to go to github release page").normalText("Update.").listener(new OnBMClickListener() {
@Override
- public void onComplete(@NonNull Task task) {
- if (task.isSuccessful())
- mFirebaseRemoteConfig.activateFetched();
-
+ public void onBoomButtonClick(int index) {
+ startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/SubhamTyagi/loco-answers/releases/")));
}
- });
-
- int latest = Integer.valueOf(mFirebaseRemoteConfig.getString(Constant.LATEST));
- if (latest - Constant.VERSION > 1) {
-
- new SweetAlertDialog(this, SweetAlertDialog.NORMAL_TYPE)
- .setTitleText("New update is available")
- .setContentText("Kindly update the app, Some problems are fixed and accuracy is extremely improved and much more.. ")
- .setConfirmText("Update now")
- .setConfirmClickListener(new SweetAlertDialog.OnSweetClickListener() {
- @Override
- public void onClick(SweetAlertDialog sweetAlertDialog) {
- startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/SubhamTyagi/loco-answers/releases/")));
- sweetAlertDialog.dismissWithAnimation();
- }
- }).show();
- } else if (latest > Constant.VERSION) {
- new SweetAlertDialog(this, SweetAlertDialog.NORMAL_TYPE)
- .setTitleText("New update is available")
- .setContentText("Kindly update the app, Some problems are fixed and accuracy is extremely improved and much more.. ")
- .setConfirmText("Update now")
- .setConfirmClickListener(new SweetAlertDialog.OnSweetClickListener() {
- @Override
- public void onClick(SweetAlertDialog sweetAlertDialog) {
- startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/SubhamTyagi/loco-answers/releases/")));
-
- }
- })
- .setCancelText("Later")
- .setCancelClickListener(new SweetAlertDialog.OnSweetClickListener() {
- @Override
- public void onClick(SweetAlertDialog sweetAlertDialog) {
- sweetAlertDialog.dismissWithAnimation();
- }
- })
- .show();
- }
+ }));
}
private boolean isServiceRunning(Class> serviceClass) {
@@ -427,7 +351,7 @@ protected void onResume() {
private void about() {
new SweetAlertDialog(this, SweetAlertDialog.NORMAL_TYPE)
.setTitleText("Trivia Hack VERSION " + Constant.VERSION_NAME)
- .setContentText("Trivia Hack " + Constant.VERSION_NAME)
+ .setContentText("This app is free and open source hosted on GitHub")
.setConfirmText("Ok")
.setConfirmClickListener(new SweetAlertDialog.OnSweetClickListener() {
@Override
@@ -454,6 +378,7 @@ public void onClick(SweetAlertDialog sweetAlertDialog) {
}).show();
}
+
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
//if ()
diff --git a/app/src/main/java/ai/loko/hk/ui/activities/ProfileActivity.java b/app/src/main/java/ai/loko/hk/ui/activities/ProfileActivity.java
index 9765776..9d34bf2 100644
--- a/app/src/main/java/ai/loko/hk/ui/activities/ProfileActivity.java
+++ b/app/src/main/java/ai/loko/hk/ui/activities/ProfileActivity.java
@@ -35,6 +35,7 @@
import android.content.pm.PackageManager;
import android.media.projection.MediaProjectionManager;
import android.net.Uri;
+import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.provider.Settings;
@@ -69,7 +70,7 @@
import ai.loko.hk.ui.ocr.Points;
import ai.loko.hk.ui.services.OCRFloating;
import cn.pedant.SweetAlert.SweetAlertDialog;
-import io.fabric.sdk.android.services.concurrency.AsyncTask;
+
import ui.R;
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
@@ -79,9 +80,12 @@ public class ProfileActivity extends AppCompatActivity implements ListItemSwipeL
private static final int storageReadPermission = 412;
private final String TAG = "ProfileActivity";
List profiles = new ArrayList<>();
+
private CoordinatorLayout coordinatorLayout;
+
private RecyclerView mRecyclerView;
private ProfileAdapter mProfileAdapter;
+
private AppDatabase db;
private MediaProjectionManager mMediaProjectionManager;
private Intent mScreenshotIntent;
@@ -262,7 +266,7 @@ public void onClick(View view) {
}
private void setUpDataFromDB() {
- new AsyncTask() {
+ new AsyncTask() {
@Override
protected Void doInBackground(Void... voids) {
List profileEntities = db.profileDAO().getAll();
diff --git a/app/src/main/java/ai/loko/hk/ui/constants/Constant.java b/app/src/main/java/ai/loko/hk/ui/constants/Constant.java
index 58b4cce..fbc398c 100644
--- a/app/src/main/java/ai/loko/hk/ui/constants/Constant.java
+++ b/app/src/main/java/ai/loko/hk/ui/constants/Constant.java
@@ -33,19 +33,14 @@
import ui.BuildConfig;
public class Constant {
- //TODO:why i am using this, Why not using BuildConfig "i don't know :)"
- public static final int VERSION = 26;
- public static final String VERSION_NAME = "2.2.1";
- public static final boolean DEBUG = BuildConfig.DEBUG;
+
+ public static final String VERSION_NAME = "2.2.2";
public static final int CODE_DRAW_OVER_OTHER_APP_PERMISSION = 2084;
public static final int CODE_FOR_SCREEN_CAPTURE = 1349;
- public static final String LATEST = "latest";
-
public static final String path = Environment.getExternalStorageDirectory() + "/TriviaHacK/";
public static final String pathToErrors = Environment.getExternalStorageDirectory() + "/TriviaHacK/errors";
public static final String pathToTesseract = Environment.getExternalStorageDirectory() + "/tesseract/tessdata/";
public static final String tesseractPath = Environment.getExternalStorageDirectory() + "/tesseract/";
-
public static final String X1_FLOAT = "X1_FLOAT";
public static final String X2_FLOAT = "X2_FLOAT";
public static final String Y1_FLOAT = "Y1_FLOAT";
diff --git a/app/src/main/java/ai/loko/hk/ui/utils/CustomToast.java b/app/src/main/java/ai/loko/hk/ui/utils/CustomToast.java
index 661a63c..1453aa8 100644
--- a/app/src/main/java/ai/loko/hk/ui/utils/CustomToast.java
+++ b/app/src/main/java/ai/loko/hk/ui/utils/CustomToast.java
@@ -37,10 +37,10 @@
import ui.R;
-public class CustomToast {
+public class CustomToast {
private Context context = null;
private String msg;
- private int duration=0;
+ private int duration = 0;
public CustomToast(Context context) {
this.context = context;
diff --git a/app/src/main/java/ai/loko/hk/ui/utils/Utils.java b/app/src/main/java/ai/loko/hk/ui/utils/Utils.java
index b33f86a..62fb3d3 100644
--- a/app/src/main/java/ai/loko/hk/ui/utils/Utils.java
+++ b/app/src/main/java/ai/loko/hk/ui/utils/Utils.java
@@ -28,8 +28,6 @@
package ai.loko.hk.ui.utils;
-import android.graphics.Bitmap;
-import android.graphics.Color;
import android.support.annotation.Nullable;
import java.util.ArrayList;
@@ -82,7 +80,6 @@ public static ArrayList getSimplifiedQuestion(String question, int a) {
public static int count(String subString, String string) {
int cnt = 0;
- // String regex = "\\b" + subString + "\\b";
Pattern p = Pattern.compile("\\b" + subString + "\\b");
Matcher m = p.matcher(string);
while (m.find())
@@ -98,34 +95,4 @@ public static int count2(String subString, String string) {
cnt++;
return cnt;
}
-
- public static Bitmap getGrayscaleImage(Bitmap src) {
- int width = src.getWidth();
- int height = src.getHeight();
- // create output bitmap
- Bitmap bmOut = Bitmap.createBitmap(width, height, src.getConfig());
- // color information
- int A, R, G, B;
- int pixel;
- for (int x = 0; x < width; ++x) {
- for (int y = 0; y < height; ++y) {
- // get pixel color
- pixel = src.getPixel(x, y);
- A = Color.alpha(pixel);
- R = Color.red(pixel);
- G = Color.green(pixel);
- B = Color.blue(pixel);
- int gray = (int) (0.2989 * R + 0.5870 * G + 0.1140 * B);
- // use 128 as threshold, above -> white, below -> black
- if (gray > 128) {
- gray = 255;
- } else {
- gray = 0;
- }
- // set new pixel color to output bitmap
- bmOut.setPixel(x, y, Color.argb(A, gray, gray, gray));
- }
- }
- return bmOut;
- }
}
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 1c2e826..56193cc 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -47,7 +47,7 @@
Stop OCR
Overlay Permission
Accessibility Permission
- All Trivia App Supported now :}
+ Trivia apps in which you can take screenshot of questions, are supported
search_engine_key
custom_search_engine
custom_search_engine_url
diff --git a/build.gradle b/build.gradle
index 8aee7ef..9f1b5e8 100644
--- a/build.gradle
+++ b/build.gradle
@@ -32,18 +32,17 @@ buildscript {
repositories {
google()
jcenter()
- maven { url 'https://maven.fabric.io/public' }
maven {
url "https://jitpack.io"
}
}
dependencies {
- classpath 'com.android.tools.build:gradle:3.2.0'
+ classpath 'com.android.tools.build:gradle:3.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:4.0.1'
- classpath 'io.fabric.tools:gradle:1.+'
+
}
}
diff --git a/crashreporter/build.gradle b/crashreporter/build.gradle
index 4f6ee06..f0e9525 100644
--- a/crashreporter/build.gradle
+++ b/crashreporter/build.gradle
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion 28
- buildToolsVersion "28.0.2"
+ buildToolsVersion "28.0.3"
defaultConfig {
minSdkVersion 15
@@ -33,4 +33,32 @@ dependencies {
}
+/*
+ * Copyright (C) 2018 SHUBHAM TYAGI
+ *
+ * This file is part of Trivia Hack.
+ * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * https://www.gnu.org/licenses/gpl-3.0
+ *
+ * Trivia Hack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Trivia Hack. If not, see .
+ *
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+
//apply from: 'upload.gradle'
\ No newline at end of file
diff --git a/crashreporter/src/main/AndroidManifest.xml b/crashreporter/src/main/AndroidManifest.xml
index a90930a..d29805a 100644
--- a/crashreporter/src/main/AndroidManifest.xml
+++ b/crashreporter/src/main/AndroidManifest.xml
@@ -1,6 +1,34 @@
+
+
+ package="com.balsikandar.crashreporter">
+ android:exported="false"/>
+ android:theme="@style/CrashReporter.Theme"/>
+ android:theme="@style/CrashReporter.Theme"/>
diff --git a/crashreporter/src/main/java/com/balsikandar/crashreporter/CrashReporter.java b/crashreporter/src/main/java/com/balsikandar/crashreporter/CrashReporter.java
index 5a1e8fd..0fdf439 100644
--- a/crashreporter/src/main/java/com/balsikandar/crashreporter/CrashReporter.java
+++ b/crashreporter/src/main/java/com/balsikandar/crashreporter/CrashReporter.java
@@ -1,11 +1,39 @@
+/*
+ * Copyright (C) 2018 SHUBHAM TYAGI
+ *
+ * This file is part of Trivia Hack.
+ * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * https://www.gnu.org/licenses/gpl-3.0
+ *
+ * Trivia Hack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Trivia Hack. If not, see .
+ *
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+
package com.balsikandar.crashreporter;
import android.content.Context;
import android.content.Intent;
import com.balsikandar.crashreporter.ui.CrashReporterActivity;
-import com.balsikandar.crashreporter.utils.CrashReporterNotInitializedException;
import com.balsikandar.crashreporter.utils.CrashReporterExceptionHandler;
+import com.balsikandar.crashreporter.utils.CrashReporterNotInitializedException;
import com.balsikandar.crashreporter.utils.CrashUtil;
public class CrashReporter {
diff --git a/crashreporter/src/main/java/com/balsikandar/crashreporter/CrashReporterInitProvider.java b/crashreporter/src/main/java/com/balsikandar/crashreporter/CrashReporterInitProvider.java
index 5bbb2a5..cd033a3 100644
--- a/crashreporter/src/main/java/com/balsikandar/crashreporter/CrashReporterInitProvider.java
+++ b/crashreporter/src/main/java/com/balsikandar/crashreporter/CrashReporterInitProvider.java
@@ -1,3 +1,31 @@
+/*
+ * Copyright (C) 2018 SHUBHAM TYAGI
+ *
+ * This file is part of Trivia Hack.
+ * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * https://www.gnu.org/licenses/gpl-3.0
+ *
+ * Trivia Hack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Trivia Hack. If not, see .
+ *
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+
package com.balsikandar.crashreporter;
/**
diff --git a/crashreporter/src/main/java/com/balsikandar/crashreporter/adapter/CrashLogAdapter.java b/crashreporter/src/main/java/com/balsikandar/crashreporter/adapter/CrashLogAdapter.java
index afb27bf..42f3de2 100644
--- a/crashreporter/src/main/java/com/balsikandar/crashreporter/adapter/CrashLogAdapter.java
+++ b/crashreporter/src/main/java/com/balsikandar/crashreporter/adapter/CrashLogAdapter.java
@@ -1,3 +1,31 @@
+/*
+ * Copyright (C) 2018 SHUBHAM TYAGI
+ *
+ * This file is part of Trivia Hack.
+ * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * https://www.gnu.org/licenses/gpl-3.0
+ *
+ * Trivia Hack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Trivia Hack. If not, see .
+ *
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+
package com.balsikandar.crashreporter.adapter;
import android.content.Context;
@@ -10,7 +38,6 @@
import com.balsikandar.crashreporter.R;
import com.balsikandar.crashreporter.ui.LogMessageActivity;
-import com.balsikandar.crashreporter.utils.CrashUtil;
import com.balsikandar.crashreporter.utils.FileUtils;
import java.io.File;
diff --git a/crashreporter/src/main/java/com/balsikandar/crashreporter/adapter/MainPagerAdapter.java b/crashreporter/src/main/java/com/balsikandar/crashreporter/adapter/MainPagerAdapter.java
index 6f190d6..9a23d12 100644
--- a/crashreporter/src/main/java/com/balsikandar/crashreporter/adapter/MainPagerAdapter.java
+++ b/crashreporter/src/main/java/com/balsikandar/crashreporter/adapter/MainPagerAdapter.java
@@ -1,3 +1,31 @@
+/*
+ * Copyright (C) 2018 SHUBHAM TYAGI
+ *
+ * This file is part of Trivia Hack.
+ * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * https://www.gnu.org/licenses/gpl-3.0
+ *
+ * Trivia Hack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Trivia Hack. If not, see .
+ *
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+
package com.balsikandar.crashreporter.adapter;
import android.support.v4.app.Fragment;
diff --git a/crashreporter/src/main/java/com/balsikandar/crashreporter/ui/CrashLogFragment.java b/crashreporter/src/main/java/com/balsikandar/crashreporter/ui/CrashLogFragment.java
index 64a7267..753209b 100644
--- a/crashreporter/src/main/java/com/balsikandar/crashreporter/ui/CrashLogFragment.java
+++ b/crashreporter/src/main/java/com/balsikandar/crashreporter/ui/CrashLogFragment.java
@@ -1,3 +1,31 @@
+/*
+ * Copyright (C) 2018 SHUBHAM TYAGI
+ *
+ * This file is part of Trivia Hack.
+ * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * https://www.gnu.org/licenses/gpl-3.0
+ *
+ * Trivia Hack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Trivia Hack. If not, see .
+ *
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+
package com.balsikandar.crashreporter.ui;
import android.content.Context;
diff --git a/crashreporter/src/main/java/com/balsikandar/crashreporter/ui/CrashReporterActivity.java b/crashreporter/src/main/java/com/balsikandar/crashreporter/ui/CrashReporterActivity.java
index a4d9079..2078fc8 100644
--- a/crashreporter/src/main/java/com/balsikandar/crashreporter/ui/CrashReporterActivity.java
+++ b/crashreporter/src/main/java/com/balsikandar/crashreporter/ui/CrashReporterActivity.java
@@ -1,3 +1,31 @@
+/*
+ * Copyright (C) 2018 SHUBHAM TYAGI
+ *
+ * This file is part of Trivia Hack.
+ * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * https://www.gnu.org/licenses/gpl-3.0
+ *
+ * Trivia Hack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Trivia Hack. If not, see .
+ *
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+
package com.balsikandar.crashreporter.ui;
import android.content.Intent;
diff --git a/crashreporter/src/main/java/com/balsikandar/crashreporter/ui/ExceptionLogFragment.java b/crashreporter/src/main/java/com/balsikandar/crashreporter/ui/ExceptionLogFragment.java
index a35bbe0..b24cf16 100644
--- a/crashreporter/src/main/java/com/balsikandar/crashreporter/ui/ExceptionLogFragment.java
+++ b/crashreporter/src/main/java/com/balsikandar/crashreporter/ui/ExceptionLogFragment.java
@@ -1,3 +1,31 @@
+/*
+ * Copyright (C) 2018 SHUBHAM TYAGI
+ *
+ * This file is part of Trivia Hack.
+ * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * https://www.gnu.org/licenses/gpl-3.0
+ *
+ * Trivia Hack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Trivia Hack. If not, see .
+ *
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+
package com.balsikandar.crashreporter.ui;
import android.content.Context;
@@ -70,14 +98,14 @@ public ArrayList getAllExceptions() {
String directoryPath;
String crashReportPath = CrashReporter.getCrashReportPath();
- if (TextUtils.isEmpty(crashReportPath)){
+ if (TextUtils.isEmpty(crashReportPath)) {
directoryPath = CrashUtil.getDefaultPath();
- } else{
+ } else {
directoryPath = crashReportPath;
}
File directory = new File(directoryPath);
- if (!directory.exists() || !directory.isDirectory()){
+ if (!directory.exists() || !directory.isDirectory()) {
throw new RuntimeException("The path provided doesn't exists : " + directoryPath);
}
diff --git a/crashreporter/src/main/java/com/balsikandar/crashreporter/ui/LogMessageActivity.java b/crashreporter/src/main/java/com/balsikandar/crashreporter/ui/LogMessageActivity.java
index 1bff3d3..de56ba9 100644
--- a/crashreporter/src/main/java/com/balsikandar/crashreporter/ui/LogMessageActivity.java
+++ b/crashreporter/src/main/java/com/balsikandar/crashreporter/ui/LogMessageActivity.java
@@ -1,20 +1,20 @@
/*
* Copyright (C) 2018 SHUBHAM TYAGI
*
- * This file is part of LoKo HacK.
+ * This file is part of Trivia Hack.
* Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* https://www.gnu.org/licenses/gpl-3.0
*
- * LoKo hacK is free software: you can redistribute it and/or modify
+ * Trivia Hack is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* You should have received a copy of the GNU General Public License
- * along with LoKo Hack. If not, see .
+ * along with Trivia Hack. If not, see .
*
*
* Unless required by applicable law or agreed to in writing, software
diff --git a/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/AppUtils.java b/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/AppUtils.java
index 47f6782..16bf664 100644
--- a/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/AppUtils.java
+++ b/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/AppUtils.java
@@ -1,8 +1,37 @@
+/*
+ * Copyright (C) 2018 SHUBHAM TYAGI
+ *
+ * This file is part of Trivia Hack.
+ * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * https://www.gnu.org/licenses/gpl-3.0
+ *
+ * Trivia Hack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Trivia Hack. If not, see .
+ *
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+
package com.balsikandar.crashreporter.utils;
import android.Manifest;
import android.accounts.Account;
import android.accounts.AccountManager;
+import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
@@ -41,7 +70,7 @@ private static String getUserIdentity(Context context) {
if (ActivityCompat.checkSelfPermission(context, Manifest.permission.GET_ACCOUNTS) ==
PackageManager.PERMISSION_GRANTED) {
AccountManager manager = (AccountManager) context.getSystemService(Context.ACCOUNT_SERVICE);
- Account[] list = manager.getAccounts();
+ @SuppressLint("MissingPermission") Account[] list = manager.getAccounts();
String emailId = null;
for (Account account : list) {
if (account.type.equalsIgnoreCase("com.google")) {
@@ -59,7 +88,7 @@ private static String getUserIdentity(Context context) {
public static String getDeviceDetails(Context context) {
return "Device Information\n"
- + "\nDEVICE.ID : " + getDeviceId(context)
+ /* + "\nDEVICE.ID : " + getDeviceId(context)*/
+ "\nUSER.ID : " + getUserIdentity(context)
+ "\nAPP.VERSION : " + getAppVersion(context)
+ "\nLAUNCHER.APP : " + getCurrentLauncherApp(context)
@@ -67,25 +96,25 @@ public static String getDeviceDetails(Context context) {
+ "\nVERSION.RELEASE : " + Build.VERSION.RELEASE
+ "\nVERSION.INCREMENTAL : " + Build.VERSION.INCREMENTAL
+ "\nVERSION.SDK.NUMBER : " + Build.VERSION.SDK_INT
- + "\nBOARD : " + Build.BOARD
- + "\nBOOTLOADER : " + Build.BOOTLOADER
+ // + "\nBOARD : " + Build.BOARD
+ // + "\nBOOTLOADER : " + Build.BOOTLOADER
+ "\nBRAND : " + Build.BRAND
+ "\nCPU_ABI : " + Build.CPU_ABI
+ "\nCPU_ABI2 : " + Build.CPU_ABI2
- + "\nDISPLAY : " + Build.DISPLAY
- + "\nFINGERPRINT : " + Build.FINGERPRINT
- + "\nHARDWARE : " + Build.HARDWARE
- + "\nHOST : " + Build.HOST
- + "\nID : " + Build.ID
+ //+ "\nDISPLAY : " + Build.DISPLAY
+ //+ "\nFINGERPRINT : " + Build.FINGERPRINT
+ //+ "\nHARDWARE : " + Build.HARDWARE
+ //+ "\nHOST : " + Build.HOST
+ /*+ "\nID : " + Build.ID*/
+ "\nMANUFACTURER : " + Build.MANUFACTURER
+ "\nMODEL : " + Build.MODEL
- + "\nPRODUCT : " + Build.PRODUCT
- + "\nSERIAL : " + Build.SERIAL
- + "\nTAGS : " + Build.TAGS
- + "\nTIME : " + Build.TIME
- + "\nTYPE : " + Build.TYPE
- + "\nUNKNOWN : " + Build.UNKNOWN
- + "\nUSER : " + Build.USER;
+ + "\nPRODUCT : " + Build.PRODUCT;
+ /* + "\nSERIAL : " + Build.SERIAL*/
+ // + "\nTAGS : " + Build.TAGS
+ // + "\nTIME : " + Build.TIME
+ //+ "\nTYPE : " + Build.TYPE
+ //+ "\nUNKNOWN : " + Build.UNKNOWN
+ //+ "\nUSER : " + Build.USER;
}
private static String timeZone() {
diff --git a/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/Constants.java b/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/Constants.java
index ec878e5..d7ffa1f 100644
--- a/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/Constants.java
+++ b/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/Constants.java
@@ -1,3 +1,31 @@
+/*
+ * Copyright (C) 2018 SHUBHAM TYAGI
+ *
+ * This file is part of Trivia Hack.
+ * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * https://www.gnu.org/licenses/gpl-3.0
+ *
+ * Trivia Hack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Trivia Hack. If not, see .
+ *
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+
package com.balsikandar.crashreporter.utils;
/**
diff --git a/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/CrashReporterException.java b/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/CrashReporterException.java
index ede6f5f..226fe57 100644
--- a/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/CrashReporterException.java
+++ b/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/CrashReporterException.java
@@ -1,3 +1,31 @@
+/*
+ * Copyright (C) 2018 SHUBHAM TYAGI
+ *
+ * This file is part of Trivia Hack.
+ * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * https://www.gnu.org/licenses/gpl-3.0
+ *
+ * Trivia Hack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Trivia Hack. If not, see .
+ *
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+
package com.balsikandar.crashreporter.utils;
/**
diff --git a/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/CrashReporterExceptionHandler.java b/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/CrashReporterExceptionHandler.java
index b2e2539..847f188 100644
--- a/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/CrashReporterExceptionHandler.java
+++ b/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/CrashReporterExceptionHandler.java
@@ -1,3 +1,31 @@
+/*
+ * Copyright (C) 2018 SHUBHAM TYAGI
+ *
+ * This file is part of Trivia Hack.
+ * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * https://www.gnu.org/licenses/gpl-3.0
+ *
+ * Trivia Hack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Trivia Hack. If not, see .
+ *
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+
package com.balsikandar.crashreporter.utils;
public class CrashReporterExceptionHandler implements Thread.UncaughtExceptionHandler {
diff --git a/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/CrashReporterNotInitializedException.java b/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/CrashReporterNotInitializedException.java
index 5b6d35a..ea42fb2 100644
--- a/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/CrashReporterNotInitializedException.java
+++ b/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/CrashReporterNotInitializedException.java
@@ -1,3 +1,31 @@
+/*
+ * Copyright (C) 2018 SHUBHAM TYAGI
+ *
+ * This file is part of Trivia Hack.
+ * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * https://www.gnu.org/licenses/gpl-3.0
+ *
+ * Trivia Hack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Trivia Hack. If not, see .
+ *
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+
package com.balsikandar.crashreporter.utils;
/**
diff --git a/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/CrashUtil.java b/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/CrashUtil.java
index c9031eb..2ded550 100644
--- a/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/CrashUtil.java
+++ b/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/CrashUtil.java
@@ -1,3 +1,31 @@
+/*
+ * Copyright (C) 2018 SHUBHAM TYAGI
+ *
+ * This file is part of Trivia Hack.
+ * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * https://www.gnu.org/licenses/gpl-3.0
+ *
+ * Trivia Hack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Trivia Hack. If not, see .
+ *
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+
package com.balsikandar.crashreporter.utils;
import android.app.NotificationManager;
@@ -55,7 +83,6 @@ public void run() {
String crashReportPath = CrashReporter.getCrashReportPath();
final String filename = getCrashLogTime() + Constants.EXCEPTION_SUFFIX + Constants.FILE_EXTENSION;
writeToFile(crashReportPath, filename, getStackTrace(exception));
-
showNotification(exception.getLocalizedMessage(), false);
}
diff --git a/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/FileUtils.java b/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/FileUtils.java
index 7a91d8d..4790b0e 100644
--- a/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/FileUtils.java
+++ b/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/FileUtils.java
@@ -1,3 +1,31 @@
+/*
+ * Copyright (C) 2018 SHUBHAM TYAGI
+ *
+ * This file is part of Trivia Hack.
+ * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * https://www.gnu.org/licenses/gpl-3.0
+ *
+ * Trivia Hack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Trivia Hack. If not, see .
+ *
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+
package com.balsikandar.crashreporter.utils;
import android.text.TextUtils;
diff --git a/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/SimplePageChangeListener.java b/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/SimplePageChangeListener.java
index 76cea0a..312dfd4 100644
--- a/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/SimplePageChangeListener.java
+++ b/crashreporter/src/main/java/com/balsikandar/crashreporter/utils/SimplePageChangeListener.java
@@ -1,3 +1,31 @@
+/*
+ * Copyright (C) 2018 SHUBHAM TYAGI
+ *
+ * This file is part of Trivia Hack.
+ * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * https://www.gnu.org/licenses/gpl-3.0
+ *
+ * Trivia Hack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Trivia Hack. If not, see .
+ *
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+
package com.balsikandar.crashreporter.utils;
import android.support.v4.view.ViewPager;
@@ -8,9 +36,13 @@
public abstract class SimplePageChangeListener implements ViewPager.OnPageChangeListener {
@Override
- public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {}
+ public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
+ }
+
@Override
public abstract void onPageSelected(int position);
+
@Override
- public void onPageScrollStateChanged(int state) {}
+ public void onPageScrollStateChanged(int state) {
+ }
}
diff --git a/crashreporter/src/main/res/drawable-v24/ic_launcher_foreground.xml b/crashreporter/src/main/res/drawable-v24/ic_launcher_foreground.xml
index 69c5e7a..946d341 100644
--- a/crashreporter/src/main/res/drawable-v24/ic_launcher_foreground.xml
+++ b/crashreporter/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -1,20 +1,20 @@
+
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24.0"
+ android:viewportHeight="24.0">
diff --git a/crashreporter/src/main/res/drawable/ic_menu_share_white_24dp.xml b/crashreporter/src/main/res/drawable/ic_menu_share_white_24dp.xml
index 1d53e22..412aee9 100644
--- a/crashreporter/src/main/res/drawable/ic_menu_share_white_24dp.xml
+++ b/crashreporter/src/main/res/drawable/ic_menu_share_white_24dp.xml
@@ -1,8 +1,36 @@
+
+
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24.0"
+ android:viewportHeight="24.0">
diff --git a/crashreporter/src/main/res/drawable/ic_search_white_24dp.xml b/crashreporter/src/main/res/drawable/ic_search_white_24dp.xml
index c927d3d..c69f15a 100644
--- a/crashreporter/src/main/res/drawable/ic_search_white_24dp.xml
+++ b/crashreporter/src/main/res/drawable/ic_search_white_24dp.xml
@@ -1,3 +1,31 @@
+
+
.
+ ~ along with Trivia Hack. If not, see .
~
~
~ Unless required by applicable law or agreed to in writing, software
@@ -26,8 +26,13 @@
~
-->
-
-
+
+
diff --git a/crashreporter/src/main/res/drawable/ic_warning_black_24dp.xml b/crashreporter/src/main/res/drawable/ic_warning_black_24dp.xml
index 7c69ee8..fc2eb6f 100644
--- a/crashreporter/src/main/res/drawable/ic_warning_black_24dp.xml
+++ b/crashreporter/src/main/res/drawable/ic_warning_black_24dp.xml
@@ -1,3 +1,31 @@
+
+
+
+
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ tools:context="com.balsikandar.crashreporter.ui.LogMessageActivity">
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/appbar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
+ app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
@@ -35,15 +63,15 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
- android:textColor="#ff0000" />
+ android:textColor="#ff0000"/>
diff --git a/crashreporter/src/main/res/layout/activity_main.xml b/crashreporter/src/main/res/layout/activity_main.xml
index afccb74..2775341 100644
--- a/crashreporter/src/main/res/layout/activity_main.xml
+++ b/crashreporter/src/main/res/layout/activity_main.xml
@@ -2,20 +2,20 @@
+
\ No newline at end of file
+ android:id="@+id/crashRecyclerView"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"/>
\ No newline at end of file
diff --git a/crashreporter/src/main/res/layout/crash_reporter_activity.xml b/crashreporter/src/main/res/layout/crash_reporter_activity.xml
index f2f61c9..e59e318 100644
--- a/crashreporter/src/main/res/layout/crash_reporter_activity.xml
+++ b/crashreporter/src/main/res/layout/crash_reporter_activity.xml
@@ -1,30 +1,58 @@
+
+
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context="com.balsikandar.crashreporter.ui.CrashReporterActivity">
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/appbar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
+ app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
+ android:layout_height="wrap_content"/>
@@ -33,6 +61,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/appbar"
- app:layout_behavior="@string/appbar_scrolling_view_behavior" />
+ app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
diff --git a/crashreporter/src/main/res/layout/custom_item.xml b/crashreporter/src/main/res/layout/custom_item.xml
index 28928e7..4800ffb 100644
--- a/crashreporter/src/main/res/layout/custom_item.xml
+++ b/crashreporter/src/main/res/layout/custom_item.xml
@@ -1,41 +1,69 @@
+
+
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+ android:textSize="16sp"/>
+ android:textSize="14sp"/>
+ android:background="#dcdada"/>
\ No newline at end of file
diff --git a/crashreporter/src/main/res/layout/exception_log.xml b/crashreporter/src/main/res/layout/exception_log.xml
index 41bab16..94639e8 100644
--- a/crashreporter/src/main/res/layout/exception_log.xml
+++ b/crashreporter/src/main/res/layout/exception_log.xml
@@ -1,4 +1,32 @@
+
+
\ No newline at end of file
+ android:id="@+id/exceptionRecyclerView"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"/>
\ No newline at end of file
diff --git a/crashreporter/src/main/res/menu/crash_detail_menu.xml b/crashreporter/src/main/res/menu/crash_detail_menu.xml
index 66d360e..59e7ecb 100644
--- a/crashreporter/src/main/res/menu/crash_detail_menu.xml
+++ b/crashreporter/src/main/res/menu/crash_detail_menu.xml
@@ -2,20 +2,20 @@
-