diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 9751b31..50bc110 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -21,6 +21,10 @@
android:label="@string/app_name"
android:logo="@drawable/icsee_logo"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">
+
+ android:screenOrientation="landscape" />
-
+
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
index 166d786..da94ba0 100644
--- a/build.gradle
+++ b/build.gradle
@@ -5,7 +5,7 @@ buildscript {
}
dependencies {
- classpath 'com.android.tools.build:gradle:7.2.2'
+ classpath 'com.android.tools.build:gradle:7.3.0'
}
}
@@ -14,6 +14,9 @@ apply plugin: 'com.android.application'
dependencies {
implementation fileTree(dir: 'libs', include: '*.jar')
implementation 'com.quickbirdstudios:opencv:3.4.15'
+ implementation 'androidx.appcompat:appcompat:1.5.1'
+ implementation 'androidx.preference:preference:1.2.0'
+ implementation 'com.google.android.material:material:1.6.1'
}
android {
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..d015431
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1,2 @@
+android.useAndroidX=true
+android.enableJetifier=true
\ No newline at end of file
diff --git a/res/layout/settings_activity.xml b/res/layout/settings_activity.xml
new file mode 100644
index 0000000..de6591a
--- /dev/null
+++ b/res/layout/settings_activity.xml
@@ -0,0 +1,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
new file mode 100644
index 0000000..6cf9ed4
--- /dev/null
+++ b/res/values/arrays.xml
@@ -0,0 +1,12 @@
+
+
+
+ - Reply
+ - Reply to all
+
+
+
+ - reply
+ - reply_all
+
+
\ No newline at end of file
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 93ba1ad..3795f7a 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -14,4 +14,19 @@
Application logo
icsee_filter
Settings / About
+ ICSeeSettingsActivity
+
+
+ Messages
+ Sync
+
+
+ Your signature
+ Default reply action
+
+
+ Sync email periodically
+ Download incoming attachments
+ Automatically download attachments for incoming emails
+ Only download attachments when manually requested
\ No newline at end of file
diff --git a/res/xml/root_preferences.xml b/res/xml/root_preferences.xml
new file mode 100644
index 0000000..67158db
--- /dev/null
+++ b/res/xml/root_preferences.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/settings.gradle b/settings.gradle
deleted file mode 100644
index 97e3e8e..0000000
--- a/settings.gradle
+++ /dev/null
@@ -1 +0,0 @@
-// include ':opencv_modules:opencv-android-3.3.1:opencv'
diff --git a/src/gr/scify/icsee/ICSeeSettingsActivity.java b/src/gr/scify/icsee/ICSeeSettingsActivity.java
new file mode 100644
index 0000000..0573577
--- /dev/null
+++ b/src/gr/scify/icsee/ICSeeSettingsActivity.java
@@ -0,0 +1,32 @@
+package gr.scify.icsee;
+
+import android.os.Bundle;
+import androidx.appcompat.app.ActionBar;
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.preference.PreferenceFragmentCompat;
+
+public class ICSeeSettingsActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.settings_activity);
+ if (savedInstanceState == null) {
+ getSupportFragmentManager()
+ .beginTransaction()
+ .replace(R.id.settings, new SettingsFragment())
+ .commit();
+ }
+ ActionBar actionBar = getSupportActionBar();
+ if (actionBar != null) {
+ actionBar.setDisplayHomeAsUpEnabled(true);
+ }
+ }
+
+ public static class SettingsFragment extends PreferenceFragmentCompat {
+ @Override
+ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
+ setPreferencesFromResource(R.xml.root_preferences, rootKey);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/gr/scify/icsee/ICSeeStartActivity.java b/src/gr/scify/icsee/ICSeeStartActivity.java
index 696dd3a..d202877 100644
--- a/src/gr/scify/icsee/ICSeeStartActivity.java
+++ b/src/gr/scify/icsee/ICSeeStartActivity.java
@@ -11,19 +11,17 @@
import android.os.Build;
import android.os.Bundle;
import android.os.Vibrator;
-import android.text.Html;
-import android.text.method.LinkMovementMethod;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ProgressBar;
import android.widget.TextView;
-import gr.scify.icsee.camera.ModifiedLoaderCallback;
-import gr.scify.icsee.sounds.SoundPlayer;
+
import org.opencv.android.LoaderCallbackInterface;
import org.opencv.android.OpenCVLoader;
-import java.util.Locale;
+import gr.scify.icsee.camera.ModifiedLoaderCallback;
+import gr.scify.icsee.sounds.SoundPlayer;
public class ICSeeStartActivity extends Activity {
protected Context mContext;