aboutsummaryrefslogtreecommitdiff
path: root/HelloWorld.java
diff options
context:
space:
mode:
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!");
+ }
+}