diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 2e50692..070c9f7 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -12,7 +12,7 @@ android:supportsRtl="true" android:theme="@style/AppTheme"> @@ -21,6 +21,11 @@ + + " + email + ""; + emailTV.setText(Html.fromHtml(href)); + emailTV.setMovementMethod(LinkMovementMethod.getInstance()); + } + + private void setupVersion() { + final String versionName = BuildConfig.VERSION_NAME; + final String versionText = String.format(res.getString(R.string.version), versionName); + version.setText(versionText); + } + + private void setupCopyright() { + final int year = Calendar.getInstance().get(Calendar.YEAR); + final String copyrightText = String.format(res.getString(R.string.copyright), year); + copyright.setText(copyrightText); + } +} diff --git a/app/src/main/java/com/simplemobiletools/draw/MainActivity.java b/app/src/main/java/com/simplemobiletools/draw/MainActivity.java index ce6b95a..be54395 100644 --- a/app/src/main/java/com/simplemobiletools/draw/MainActivity.java +++ b/app/src/main/java/com/simplemobiletools/draw/MainActivity.java @@ -69,6 +69,10 @@ public class MainActivity extends AppCompatActivity { case R.id.menu_share: shareImage(); return true; + case R.id.about: + final Intent intent = new Intent(getApplicationContext(), AboutActivity.class); + startActivity(intent); + return true; default: return super.onOptionsItemSelected(item); } diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml new file mode 100644 index 0000000..e1949cf --- /dev/null +++ b/app/src/main/res/layout/activity_about.xml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/menu/menu.xml b/app/src/main/res/menu/menu.xml index 1705230..f17239b 100644 --- a/app/src/main/res/menu/menu.xml +++ b/app/src/main/res/menu/menu.xml @@ -11,5 +11,8 @@ android:icon="@android:drawable/ic_menu_share" android:title="Share" app:showAsAction="always"/> - + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index a63b914..be11e48 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -7,4 +7,13 @@ Save file Please enter a file name Could not save the file without accessing the external storage + + + About + For more simple apps please visit:\nhttp://simplemobiletools.com + You can send your feedback and new app suggestions at: + hello@simplemobiletools.com + License + v %1$s + Copyright © Simple Mobile Tools %1$d