diff options
Diffstat (limited to 'HelloWorld.java')
| -rw-r--r-- | HelloWorld.java | 34 |
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!"); - } -} |
