From 37845f76cab1f71dfe2aea72f3bff4ade7114f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=96ScreamingOranges?= Date: Mon, 10 May 2021 19:58:32 -0400 Subject: [PATCH] Removed helper activity, and replaced with redirect to browser --- app/src/main/AndroidManifest.xml | 4 ---- .../java/com/example/icuepyphone/HelpActivity.java | 14 -------------- .../java/com/example/icuepyphone/MainActivity.java | 5 +++-- app/src/main/res/layout/activity_help.xml | 9 --------- 4 files changed, 3 insertions(+), 29 deletions(-) delete mode 100644 app/src/main/java/com/example/icuepyphone/HelpActivity.java delete mode 100644 app/src/main/res/layout/activity_help.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b08a58a..2c5b9e7 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -21,10 +21,6 @@ android:screenOrientation="portrait" android:parentActivityName=".MainActivity"> - - diff --git a/app/src/main/java/com/example/icuepyphone/HelpActivity.java b/app/src/main/java/com/example/icuepyphone/HelpActivity.java deleted file mode 100644 index 3452d78..0000000 --- a/app/src/main/java/com/example/icuepyphone/HelpActivity.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.example.icuepyphone; - -import androidx.appcompat.app.AppCompatActivity; - -import android.os.Bundle; - -public class HelpActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_help); - } -} \ No newline at end of file diff --git a/app/src/main/java/com/example/icuepyphone/MainActivity.java b/app/src/main/java/com/example/icuepyphone/MainActivity.java index bc6e141..3130595 100644 --- a/app/src/main/java/com/example/icuepyphone/MainActivity.java +++ b/app/src/main/java/com/example/icuepyphone/MainActivity.java @@ -11,6 +11,7 @@ import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.graphics.drawable.LayerDrawable; +import android.net.Uri; import android.os.Bundle; import android.view.Menu; import android.view.MenuInflater; @@ -55,8 +56,8 @@ public boolean onOptionsItemSelected(@NonNull MenuItem item) { context = getApplicationContext(); switch (item.getItemId()) { case R.id.help: - Intent help_intent = new Intent(this, HelpActivity.class); - startActivity(help_intent); + Intent intent = new Intent(Intent.ACTION_VIEW).setData(Uri.parse("https://github.com/ScreamingOranges/iCueConnect-Android/blob/master/README.md")); + startActivity(intent); return true; case R.id.settings: Intent pusher_config_intent = new Intent(this, PusherConfigActivity.class); diff --git a/app/src/main/res/layout/activity_help.xml b/app/src/main/res/layout/activity_help.xml deleted file mode 100644 index 7ba6262..0000000 --- a/app/src/main/res/layout/activity_help.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - \ No newline at end of file