aboutsummaryrefslogtreecommitdiff
path: root/HelloWorld.java
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-04-13 00:00:19 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-10-02 23:30:38 +0200
commit162f0d4f619f76b7fafc28f683ca8ddfa9d44a46 (patch)
tree938eccd861ffc88fe650028878edd9a6514efeb0 /HelloWorld.java
parentd23a8567e685304e6ff099bdeb02a24f3770dc13 (diff)
Simplify down a bit
Diffstat (limited to 'HelloWorld.java')
-rw-r--r--HelloWorld.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/HelloWorld.java b/HelloWorld.java
new file mode 100644
index 0000000..45d4eb8
--- /dev/null
+++ b/HelloWorld.java
@@ -0,0 +1,26 @@
+import helloworld.R;
+import android.app.Activity;
+import android.os.Bundle;
+import android.widget.TextView;
+import java.net.HttpURLConnection;
+import java.net.URL;
+
+public class HelloWorld extends Activity {
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+
+ try {
+ URL url = new URL("https://slcl.privatedns.org");
+
+ HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
+ } catch (Exception e) {
+ //TODO: handle exception
+ }
+
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+ TextView text = (TextView)findViewById(R.id.my_text);
+ text.setText("Hello, world!");
+ }
+}