From 9deda2ec431699a7c11bc49f5011498bb1cb6c05 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Fri, 14 Apr 2023 01:19:29 +0200 Subject: [PATCH] Add Test class --- HelloWorld.java | 3 +++ Makefile | 3 ++- Test.java | 6 ++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Test.java diff --git a/HelloWorld.java b/HelloWorld.java index d118cee..4f93a65 100644 --- a/HelloWorld.java +++ b/HelloWorld.java @@ -11,9 +11,12 @@ public class HelloWorld extends Activity { protected void onCreate(Bundle savedInstanceState) { try { + Test t = new Test(); URL url = new URL("https://slcl.privatedns.org"); HttpsURLConnection c = (HttpsURLConnection) url.openConnection(); + t.f(); + c.setFollowRedirects(true); OutputStream os = c.getOutputStream(); diff --git a/Makefile b/Makefile index c0a2e70..1da3506 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,8 @@ ANDROIDSDK = /usr/lib/android-sdk DX = $(ANDROIDSDK)/build-tools/debian/dx PLATFORM = $(ANDROIDSDK)/platforms/android-23/android.jar OBJECTS = \ - HelloWorld.class + HelloWorld.class \ + Test.class RESOURCES = \ res/layout/activity_main.xml R = helloworld/R.java diff --git a/Test.java b/Test.java new file mode 100644 index 0000000..7db23ce --- /dev/null +++ b/Test.java @@ -0,0 +1,6 @@ +public class Test { + public int a; + public void f() { + System.out.println("hi!"); + } +}