diff --git a/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.java deleted file mode 100644 index 982ba51..0000000 --- a/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.example.myapplication; - -import android.content.Context; - -import androidx.test.platform.app.InstrumentationRegistry; -import androidx.test.ext.junit.runners.AndroidJUnit4; - -import org.junit.Test; -import org.junit.runner.RunWith; - -import static org.junit.Assert.*; - -/** - * Instrumented test, which will execute on an Android device. - * - * @see Testing documentation - */ -@RunWith(AndroidJUnit4.class) -public class ExampleInstrumentedTest { - @Test - public void useAppContext() { - // Context of the app under test. - Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); - assertEquals("com.example.myapplication", appContext.getPackageName()); - } -} \ No newline at end of file diff --git a/app/src/main/java/com/example/myapplication/MainActivity.java b/app/src/main/java/com/example/myapplication/MainActivity.java index 6d7d258..86783d3 100644 --- a/app/src/main/java/com/example/myapplication/MainActivity.java +++ b/app/src/main/java/com/example/myapplication/MainActivity.java @@ -20,6 +20,12 @@ protected void onCreate(Bundle savedInstanceState) { final Button httpsButton = findViewById(R.id.https_button); httpsButton.setOnClickListener(v -> launchUrl("https://slash-statuesque-bracket.glitch.me/pwatest/")); + + final Button httpButton2 = findViewById(R.id.http_button2); + httpButton2.setOnClickListener(v -> launchUrl("http://elite-small-find.glitch.me/pwatest/")); + + final Button httpsButton2 = findViewById(R.id.https_button2); + httpsButton2.setOnClickListener(v -> launchUrl("https://elite-small-find.glitch.me/pwatest/")); } private void launchUrl(String url) { @@ -29,4 +35,4 @@ private void launchUrl(String url) { e.printStackTrace(); } } -} +} \ No newline at end of file diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 065ffa3..5890816 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -9,32 +9,66 @@ + +