diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-04-14 01:19:29 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-10-02 23:30:38 +0200 |
| commit | 5024eae960cc1b56fb0e0aebc6edaa86690d446d (patch) | |
| tree | 107ccf687a799983b9229e2e2e309d8701416870 | |
| parent | c64a043a8e28675e5349223e35fc5245deae6dfd (diff) | |
Add Test class
| -rw-r--r-- | HelloWorld.java | 3 | ||||
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | Test.java | 6 |
3 files changed, 11 insertions, 1 deletions
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(); @@ -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!"); + } +} |
