aboutsummaryrefslogtreecommitdiff
path: root/HelloWorld.java
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-07 23:49:03 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-05-17 23:28:51 +0200
commit40f6d425a4429b16936cc8bb4900a23c3362a123 (patch)
treecc60a4a6995604f095952d7c3cda83913c92b61a /HelloWorld.java
parenta3bfeb15064ab85900e28f0f3f84b88e99c9a466 (diff)
WIP
Diffstat (limited to 'HelloWorld.java')
-rw-r--r--HelloWorld.java34
1 files changed, 0 insertions, 34 deletions
diff --git a/HelloWorld.java b/HelloWorld.java
deleted file mode 100644
index 4f93a65..0000000
--- a/HelloWorld.java
+++ /dev/null
@@ -1,34 +0,0 @@
-import helloworld.R;
-import android.app.Activity;
-import android.os.Bundle;
-import android.widget.TextView;
-import java.io.OutputStream;
-import java.net.URL;
-import javax.net.ssl.HttpsURLConnection;
-
-public class HelloWorld extends Activity {
- @Override
- 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();
- System.out.println("Response code:" + c.getResponseCode());
- } catch (Exception e) {
- System.out.println("Exception: " + e.getMessage());
- }
-
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
-
- TextView text = (TextView)findViewById(R.id.my_text);
- text.setText("Hello, world!");
- }
-}