Add Test class

This commit is contained in:
Xavier Del Campo Romero 2023-04-14 01:19:29 +02:00
parent 434a4cd4a2
commit 9deda2ec43
3 changed files with 11 additions and 1 deletions

View File

@ -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();

View File

@ -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

6
Test.java Normal file
View File

@ -0,0 +1,6 @@
public class Test {
public int a;
public void f() {
System.out.println("hi!");
}
}