Add Test class
This commit is contained in:
parent
434a4cd4a2
commit
9deda2ec43
|
@ -11,9 +11,12 @@ public class HelloWorld extends Activity {
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Test t = new Test();
|
||||||
URL url = new URL("https://slcl.privatedns.org");
|
URL url = new URL("https://slcl.privatedns.org");
|
||||||
HttpsURLConnection c = (HttpsURLConnection) url.openConnection();
|
HttpsURLConnection c = (HttpsURLConnection) url.openConnection();
|
||||||
|
|
||||||
|
t.f();
|
||||||
|
|
||||||
c.setFollowRedirects(true);
|
c.setFollowRedirects(true);
|
||||||
|
|
||||||
OutputStream os = c.getOutputStream();
|
OutputStream os = c.getOutputStream();
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -5,7 +5,8 @@ ANDROIDSDK = /usr/lib/android-sdk
|
||||||
DX = $(ANDROIDSDK)/build-tools/debian/dx
|
DX = $(ANDROIDSDK)/build-tools/debian/dx
|
||||||
PLATFORM = $(ANDROIDSDK)/platforms/android-23/android.jar
|
PLATFORM = $(ANDROIDSDK)/platforms/android-23/android.jar
|
||||||
OBJECTS = \
|
OBJECTS = \
|
||||||
HelloWorld.class
|
HelloWorld.class \
|
||||||
|
Test.class
|
||||||
RESOURCES = \
|
RESOURCES = \
|
||||||
res/layout/activity_main.xml
|
res/layout/activity_main.xml
|
||||||
R = helloworld/R.java
|
R = helloworld/R.java
|
||||||
|
|
Loading…
Reference in New Issue