diff --git a/AcademicR/.classpath b/AcademicR/.classpath
new file mode 100755
index 0000000..26bdfa6
--- /dev/null
+++ b/AcademicR/.classpath
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
diff --git a/AcademicR/.project b/AcademicR/.project
new file mode 100755
index 0000000..63ece95
--- /dev/null
+++ b/AcademicR/.project
@@ -0,0 +1,33 @@
+
+
+ AcademicR
+
+
+
+
+
+ com.android.ide.eclipse.adt.ResourceManagerBuilder
+
+
+
+
+ com.android.ide.eclipse.adt.PreCompilerBuilder
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ com.android.ide.eclipse.adt.ApkBuilder
+
+
+
+
+
+ com.android.ide.eclipse.adt.AndroidNature
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/AcademicR/.settings/org.eclipse.jdt.core.prefs b/AcademicR/.settings/org.eclipse.jdt.core.prefs
new file mode 100755
index 0000000..48ab4c6
--- /dev/null
+++ b/AcademicR/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.source=1.6
diff --git a/AcademicR/AndroidManifest.xml b/AcademicR/AndroidManifest.xml
new file mode 100755
index 0000000..c4d12ac
--- /dev/null
+++ b/AcademicR/AndroidManifest.xml
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/AcademicR/bin/AcademicR.apk b/AcademicR/bin/AcademicR.apk
new file mode 100755
index 0000000..fada152
Binary files /dev/null and b/AcademicR/bin/AcademicR.apk differ
diff --git a/AcademicR/bin/AndroidManifest.xml b/AcademicR/bin/AndroidManifest.xml
new file mode 100755
index 0000000..c4d12ac
--- /dev/null
+++ b/AcademicR/bin/AndroidManifest.xml
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/AcademicR/bin/classes.dex b/AcademicR/bin/classes.dex
new file mode 100755
index 0000000..450c2db
Binary files /dev/null and b/AcademicR/bin/classes.dex differ
diff --git a/AcademicR/bin/classes/com/example/academicr/BuildConfig.class b/AcademicR/bin/classes/com/example/academicr/BuildConfig.class
new file mode 100755
index 0000000..df720f6
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/BuildConfig.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/MainActivity$1.class b/AcademicR/bin/classes/com/example/academicr/MainActivity$1.class
new file mode 100755
index 0000000..d499899
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/MainActivity$1.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/MainActivity.class b/AcademicR/bin/classes/com/example/academicr/MainActivity.class
new file mode 100755
index 0000000..cbde2ef
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/MainActivity.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/R$attr.class b/AcademicR/bin/classes/com/example/academicr/R$attr.class
new file mode 100755
index 0000000..c39072a
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/R$attr.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/R$dimen.class b/AcademicR/bin/classes/com/example/academicr/R$dimen.class
new file mode 100755
index 0000000..4207c34
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/R$dimen.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/R$drawable.class b/AcademicR/bin/classes/com/example/academicr/R$drawable.class
new file mode 100755
index 0000000..6b36bd2
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/R$drawable.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/R$id.class b/AcademicR/bin/classes/com/example/academicr/R$id.class
new file mode 100755
index 0000000..cf80ee2
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/R$id.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/R$layout.class b/AcademicR/bin/classes/com/example/academicr/R$layout.class
new file mode 100755
index 0000000..68733e3
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/R$layout.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/R$menu.class b/AcademicR/bin/classes/com/example/academicr/R$menu.class
new file mode 100755
index 0000000..6bb8157
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/R$menu.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/R$string.class b/AcademicR/bin/classes/com/example/academicr/R$string.class
new file mode 100755
index 0000000..657aba8
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/R$string.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/R$style.class b/AcademicR/bin/classes/com/example/academicr/R$style.class
new file mode 100755
index 0000000..39a91b5
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/R$style.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/R.class b/AcademicR/bin/classes/com/example/academicr/R.class
new file mode 100755
index 0000000..f60d40d
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/R.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/Relation$1.class b/AcademicR/bin/classes/com/example/academicr/Relation$1.class
new file mode 100755
index 0000000..6921348
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/Relation$1.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/Relation$2.class b/AcademicR/bin/classes/com/example/academicr/Relation$2.class
new file mode 100755
index 0000000..6d0d1c0
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/Relation$2.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/Relation.class b/AcademicR/bin/classes/com/example/academicr/Relation.class
new file mode 100755
index 0000000..8361d0b
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/Relation.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/WellcomeActivity$1.class b/AcademicR/bin/classes/com/example/academicr/WellcomeActivity$1.class
new file mode 100755
index 0000000..b4ec6ab
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/WellcomeActivity$1.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/WellcomeActivity.class b/AcademicR/bin/classes/com/example/academicr/WellcomeActivity.class
new file mode 100755
index 0000000..5e90294
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/WellcomeActivity.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/get.class b/AcademicR/bin/classes/com/example/academicr/get.class
new file mode 100755
index 0000000..853e692
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/get.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/hop2.class b/AcademicR/bin/classes/com/example/academicr/hop2.class
new file mode 100755
index 0000000..45d847d
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/hop2.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/hop3$1$1.class b/AcademicR/bin/classes/com/example/academicr/hop3$1$1.class
new file mode 100755
index 0000000..b605bb5
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/hop3$1$1.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/hop3$1.class b/AcademicR/bin/classes/com/example/academicr/hop3$1.class
new file mode 100755
index 0000000..e0f9cea
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/hop3$1.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/hop3$2$1.class b/AcademicR/bin/classes/com/example/academicr/hop3$2$1.class
new file mode 100755
index 0000000..83c1fd0
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/hop3$2$1.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/hop3$2.class b/AcademicR/bin/classes/com/example/academicr/hop3$2.class
new file mode 100755
index 0000000..07ece30
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/hop3$2.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/hop3$3$1.class b/AcademicR/bin/classes/com/example/academicr/hop3$3$1.class
new file mode 100755
index 0000000..b37c7b3
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/hop3$3$1.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/hop3$3.class b/AcademicR/bin/classes/com/example/academicr/hop3$3.class
new file mode 100755
index 0000000..6ba45aa
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/hop3$3.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/hop3$4$1.class b/AcademicR/bin/classes/com/example/academicr/hop3$4$1.class
new file mode 100755
index 0000000..0ded024
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/hop3$4$1.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/hop3$4.class b/AcademicR/bin/classes/com/example/academicr/hop3$4.class
new file mode 100755
index 0000000..8ad2758
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/hop3$4.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/hop3$5$1.class b/AcademicR/bin/classes/com/example/academicr/hop3$5$1.class
new file mode 100755
index 0000000..36d74a7
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/hop3$5$1.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/hop3$5.class b/AcademicR/bin/classes/com/example/academicr/hop3$5.class
new file mode 100755
index 0000000..5d46184
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/hop3$5.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/hop3$6$1.class b/AcademicR/bin/classes/com/example/academicr/hop3$6$1.class
new file mode 100755
index 0000000..2084d2e
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/hop3$6$1.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/hop3$6.class b/AcademicR/bin/classes/com/example/academicr/hop3$6.class
new file mode 100755
index 0000000..b5930b9
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/hop3$6.class differ
diff --git a/AcademicR/bin/classes/com/example/academicr/hop3.class b/AcademicR/bin/classes/com/example/academicr/hop3.class
new file mode 100755
index 0000000..4ebeec2
Binary files /dev/null and b/AcademicR/bin/classes/com/example/academicr/hop3.class differ
diff --git a/AcademicR/bin/dexedLibs/android-support-v4-065f55d26fe3c714b2c9dde6a588926f.jar b/AcademicR/bin/dexedLibs/android-support-v4-065f55d26fe3c714b2c9dde6a588926f.jar
new file mode 100755
index 0000000..9ed1239
Binary files /dev/null and b/AcademicR/bin/dexedLibs/android-support-v4-065f55d26fe3c714b2c9dde6a588926f.jar differ
diff --git a/AcademicR/bin/dexedLibs/annotations-bd3a324d328b3f681ea879eab41a3609.jar b/AcademicR/bin/dexedLibs/annotations-bd3a324d328b3f681ea879eab41a3609.jar
new file mode 100755
index 0000000..b05919c
Binary files /dev/null and b/AcademicR/bin/dexedLibs/annotations-bd3a324d328b3f681ea879eab41a3609.jar differ
diff --git a/AcademicR/bin/res/crunch/drawable-hdpi/hop2.png b/AcademicR/bin/res/crunch/drawable-hdpi/hop2.png
new file mode 100755
index 0000000..7a4a523
Binary files /dev/null and b/AcademicR/bin/res/crunch/drawable-hdpi/hop2.png differ
diff --git a/AcademicR/bin/res/crunch/drawable-hdpi/hop3.png b/AcademicR/bin/res/crunch/drawable-hdpi/hop3.png
new file mode 100755
index 0000000..d9bca3e
Binary files /dev/null and b/AcademicR/bin/res/crunch/drawable-hdpi/hop3.png differ
diff --git a/AcademicR/bin/res/crunch/drawable-hdpi/hop31.png b/AcademicR/bin/res/crunch/drawable-hdpi/hop31.png
new file mode 100755
index 0000000..67d625d
Binary files /dev/null and b/AcademicR/bin/res/crunch/drawable-hdpi/hop31.png differ
diff --git a/AcademicR/bin/res/crunch/drawable-hdpi/ic_launcher.png b/AcademicR/bin/res/crunch/drawable-hdpi/ic_launcher.png
new file mode 100755
index 0000000..efa7c5f
Binary files /dev/null and b/AcademicR/bin/res/crunch/drawable-hdpi/ic_launcher.png differ
diff --git a/AcademicR/bin/res/crunch/drawable-hdpi/wellcome.png b/AcademicR/bin/res/crunch/drawable-hdpi/wellcome.png
new file mode 100755
index 0000000..997948c
Binary files /dev/null and b/AcademicR/bin/res/crunch/drawable-hdpi/wellcome.png differ
diff --git a/AcademicR/bin/res/crunch/drawable-hdpi/wellcome1.png b/AcademicR/bin/res/crunch/drawable-hdpi/wellcome1.png
new file mode 100755
index 0000000..8e7b9a6
Binary files /dev/null and b/AcademicR/bin/res/crunch/drawable-hdpi/wellcome1.png differ
diff --git a/AcademicR/bin/res/crunch/drawable-hdpi/wellcome11.png b/AcademicR/bin/res/crunch/drawable-hdpi/wellcome11.png
new file mode 100755
index 0000000..65d9956
Binary files /dev/null and b/AcademicR/bin/res/crunch/drawable-hdpi/wellcome11.png differ
diff --git a/AcademicR/bin/res/crunch/drawable-hdpi/wellcome2.png b/AcademicR/bin/res/crunch/drawable-hdpi/wellcome2.png
new file mode 100755
index 0000000..3fe3dc8
Binary files /dev/null and b/AcademicR/bin/res/crunch/drawable-hdpi/wellcome2.png differ
diff --git a/AcademicR/bin/res/crunch/drawable-hdpi/wellcome4.png b/AcademicR/bin/res/crunch/drawable-hdpi/wellcome4.png
new file mode 100755
index 0000000..984a0cf
Binary files /dev/null and b/AcademicR/bin/res/crunch/drawable-hdpi/wellcome4.png differ
diff --git a/AcademicR/bin/res/crunch/drawable-mdpi/ic_launcher.png b/AcademicR/bin/res/crunch/drawable-mdpi/ic_launcher.png
new file mode 100755
index 0000000..ec27f2e
Binary files /dev/null and b/AcademicR/bin/res/crunch/drawable-mdpi/ic_launcher.png differ
diff --git a/AcademicR/bin/res/crunch/drawable-xhdpi/ic_launcher.png b/AcademicR/bin/res/crunch/drawable-xhdpi/ic_launcher.png
new file mode 100755
index 0000000..92fc57d
Binary files /dev/null and b/AcademicR/bin/res/crunch/drawable-xhdpi/ic_launcher.png differ
diff --git a/AcademicR/bin/res/crunch/drawable-xxhdpi/ic_launcher.png b/AcademicR/bin/res/crunch/drawable-xxhdpi/ic_launcher.png
new file mode 100755
index 0000000..b6f8f4e
Binary files /dev/null and b/AcademicR/bin/res/crunch/drawable-xxhdpi/ic_launcher.png differ
diff --git a/AcademicR/bin/resources.ap_ b/AcademicR/bin/resources.ap_
new file mode 100755
index 0000000..2bafd43
Binary files /dev/null and b/AcademicR/bin/resources.ap_ differ
diff --git a/AcademicR/gen/com/example/academicr/BuildConfig.java b/AcademicR/gen/com/example/academicr/BuildConfig.java
new file mode 100755
index 0000000..d05177d
--- /dev/null
+++ b/AcademicR/gen/com/example/academicr/BuildConfig.java
@@ -0,0 +1,6 @@
+/** Automatically generated file. DO NOT MODIFY */
+package com.example.academicr;
+
+public final class BuildConfig {
+ public final static boolean DEBUG = true;
+}
\ No newline at end of file
diff --git a/AcademicR/gen/com/example/academicr/R.java b/AcademicR/gen/com/example/academicr/R.java
new file mode 100755
index 0000000..4f687f7
--- /dev/null
+++ b/AcademicR/gen/com/example/academicr/R.java
@@ -0,0 +1,105 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package com.example.academicr;
+
+public final class R {
+ public static final class attr {
+ }
+ public static final class dimen {
+ /** Default screen margins, per the Android Design guidelines.
+
+ Example customization of dimensions originally defined in res/values/dimens.xml
+ (such as screen margins) for screens with more than 820dp of available width. This
+ would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively).
+
+ */
+ public static final int activity_horizontal_margin=0x7f040000;
+ public static final int activity_vertical_margin=0x7f040001;
+ }
+ public static final class drawable {
+ public static final int button_style=0x7f020000;
+ public static final int button_style2=0x7f020001;
+ public static final int hop2=0x7f020002;
+ public static final int hop3=0x7f020003;
+ public static final int hop31=0x7f020004;
+ public static final int ic_launcher=0x7f020005;
+ public static final int text_style=0x7f020006;
+ public static final int wellcome=0x7f020007;
+ public static final int wellcome1=0x7f020008;
+ public static final int wellcome11=0x7f020009;
+ public static final int wellcome2=0x7f02000a;
+ public static final int wellcome3=0x7f02000b;
+ public static final int wellcome4=0x7f02000c;
+ }
+ public static final class id {
+ public static final int action_settings=0x7f080012;
+ public static final int button1=0x7f080003;
+ public static final int button11=0x7f08000e;
+ public static final int button12=0x7f080009;
+ public static final int button13=0x7f08000a;
+ public static final int button21=0x7f08000b;
+ public static final int button22=0x7f08000c;
+ public static final int button23=0x7f08000d;
+ public static final int editText1=0x7f080001;
+ public static final int editText2=0x7f080002;
+ public static final int endid=0x7f080008;
+ public static final int hop2=0x7f080005;
+ public static final int hop3=0x7f080006;
+ public static final int point1=0x7f08000f;
+ public static final int point2=0x7f080010;
+ public static final int point3=0x7f080011;
+ public static final int startid=0x7f080007;
+ public static final int textView1=0x7f080000;
+ public static final int versionNumber=0x7f080004;
+ }
+ public static final class layout {
+ public static final int activity_main=0x7f030000;
+ public static final int activity_wellcome=0x7f030001;
+ public static final int decide=0x7f030002;
+ public static final int hopthree=0x7f030003;
+ public static final int hoptwo=0x7f030004;
+ }
+ public static final class menu {
+ public static final int main=0x7f070000;
+ public static final int wellcome=0x7f070001;
+ }
+ public static final class string {
+ public static final int action_settings=0x7f050002;
+ public static final int app_name=0x7f050000;
+ public static final int hello_world=0x7f050001;
+ public static final int title_activity_wellcome=0x7f050003;
+ }
+ public static final class style {
+ /**
+ Base application theme, dependent on API level. This theme is replaced
+ by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
+
+
+ Theme customizations available in newer API levels can go in
+ res/values-vXX/styles.xml, while customizations related to
+ backward-compatibility can go here.
+
+
+ Base application theme for API 11+. This theme completely replaces
+ AppBaseTheme from res/values/styles.xml on API 11+ devices.
+
+ API 11 theme customizations can go here.
+
+ Base application theme for API 14+. This theme completely replaces
+ AppBaseTheme from BOTH res/values/styles.xml and
+ res/values-v11/styles.xml on API 14+ devices.
+
+ API 14 theme customizations can go here.
+ */
+ public static final int AppBaseTheme=0x7f060000;
+ /** Application theme.
+ All customizations that are NOT specific to a particular API-level can go here.
+ */
+ public static final int AppTheme=0x7f060001;
+ }
+}
diff --git a/AcademicR/ic_launcher-web.png b/AcademicR/ic_launcher-web.png
new file mode 100755
index 0000000..a18cbb4
Binary files /dev/null and b/AcademicR/ic_launcher-web.png differ
diff --git a/AcademicR/libs/android-support-v4.jar b/AcademicR/libs/android-support-v4.jar
new file mode 100755
index 0000000..f8fe333
Binary files /dev/null and b/AcademicR/libs/android-support-v4.jar differ
diff --git a/AcademicR/proguard-project.txt b/AcademicR/proguard-project.txt
new file mode 100755
index 0000000..f2fe155
--- /dev/null
+++ b/AcademicR/proguard-project.txt
@@ -0,0 +1,20 @@
+# To enable ProGuard in your project, edit project.properties
+# to define the proguard.config property as described in that file.
+#
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in ${sdk.dir}/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the ProGuard
+# include property in project.properties.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/AcademicR/project.properties b/AcademicR/project.properties
new file mode 100755
index 0000000..0840b4a
--- /dev/null
+++ b/AcademicR/project.properties
@@ -0,0 +1,14 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system edit
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+#
+# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
+#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
+
+# Project target.
+target=android-15
diff --git a/AcademicR/res/drawable-hdpi/button_style.xml b/AcademicR/res/drawable-hdpi/button_style.xml
new file mode 100755
index 0000000..af1d575
--- /dev/null
+++ b/AcademicR/res/drawable-hdpi/button_style.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/AcademicR/res/drawable-hdpi/button_style2.xml b/AcademicR/res/drawable-hdpi/button_style2.xml
new file mode 100755
index 0000000..87402e6
--- /dev/null
+++ b/AcademicR/res/drawable-hdpi/button_style2.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/AcademicR/res/drawable-hdpi/hop2.png b/AcademicR/res/drawable-hdpi/hop2.png
new file mode 100755
index 0000000..37b4d5f
Binary files /dev/null and b/AcademicR/res/drawable-hdpi/hop2.png differ
diff --git a/AcademicR/res/drawable-hdpi/hop3.png b/AcademicR/res/drawable-hdpi/hop3.png
new file mode 100755
index 0000000..15328b0
Binary files /dev/null and b/AcademicR/res/drawable-hdpi/hop3.png differ
diff --git a/AcademicR/res/drawable-hdpi/hop31.png b/AcademicR/res/drawable-hdpi/hop31.png
new file mode 100755
index 0000000..d88352f
Binary files /dev/null and b/AcademicR/res/drawable-hdpi/hop31.png differ
diff --git a/AcademicR/res/drawable-hdpi/ic_launcher.png b/AcademicR/res/drawable-hdpi/ic_launcher.png
new file mode 100755
index 0000000..288b665
Binary files /dev/null and b/AcademicR/res/drawable-hdpi/ic_launcher.png differ
diff --git a/AcademicR/res/drawable-hdpi/text_style.xml b/AcademicR/res/drawable-hdpi/text_style.xml
new file mode 100755
index 0000000..8d79868
--- /dev/null
+++ b/AcademicR/res/drawable-hdpi/text_style.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AcademicR/res/drawable-hdpi/wellcome.png b/AcademicR/res/drawable-hdpi/wellcome.png
new file mode 100755
index 0000000..eda9ba8
Binary files /dev/null and b/AcademicR/res/drawable-hdpi/wellcome.png differ
diff --git a/AcademicR/res/drawable-hdpi/wellcome1.png b/AcademicR/res/drawable-hdpi/wellcome1.png
new file mode 100755
index 0000000..f0e284a
Binary files /dev/null and b/AcademicR/res/drawable-hdpi/wellcome1.png differ
diff --git a/AcademicR/res/drawable-hdpi/wellcome11.png b/AcademicR/res/drawable-hdpi/wellcome11.png
new file mode 100755
index 0000000..ca380ee
Binary files /dev/null and b/AcademicR/res/drawable-hdpi/wellcome11.png differ
diff --git a/AcademicR/res/drawable-hdpi/wellcome2.png b/AcademicR/res/drawable-hdpi/wellcome2.png
new file mode 100755
index 0000000..4306e9c
Binary files /dev/null and b/AcademicR/res/drawable-hdpi/wellcome2.png differ
diff --git a/AcademicR/res/drawable-hdpi/wellcome3.png b/AcademicR/res/drawable-hdpi/wellcome3.png
new file mode 100755
index 0000000..beb2a60
Binary files /dev/null and b/AcademicR/res/drawable-hdpi/wellcome3.png differ
diff --git a/AcademicR/res/drawable-hdpi/wellcome4.png b/AcademicR/res/drawable-hdpi/wellcome4.png
new file mode 100755
index 0000000..f9fdf13
Binary files /dev/null and b/AcademicR/res/drawable-hdpi/wellcome4.png differ
diff --git a/AcademicR/res/drawable-mdpi/ic_launcher.png b/AcademicR/res/drawable-mdpi/ic_launcher.png
new file mode 100755
index 0000000..6ae570b
Binary files /dev/null and b/AcademicR/res/drawable-mdpi/ic_launcher.png differ
diff --git a/AcademicR/res/drawable-xhdpi/ic_launcher.png b/AcademicR/res/drawable-xhdpi/ic_launcher.png
new file mode 100755
index 0000000..d4fb7cd
Binary files /dev/null and b/AcademicR/res/drawable-xhdpi/ic_launcher.png differ
diff --git a/AcademicR/res/drawable-xxhdpi/ic_launcher.png b/AcademicR/res/drawable-xxhdpi/ic_launcher.png
new file mode 100755
index 0000000..85a6081
Binary files /dev/null and b/AcademicR/res/drawable-xxhdpi/ic_launcher.png differ
diff --git a/AcademicR/res/layout/activity_main.xml b/AcademicR/res/layout/activity_main.xml
new file mode 100755
index 0000000..9868155
--- /dev/null
+++ b/AcademicR/res/layout/activity_main.xml
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AcademicR/res/layout/activity_wellcome.xml b/AcademicR/res/layout/activity_wellcome.xml
new file mode 100755
index 0000000..f6ffd65
--- /dev/null
+++ b/AcademicR/res/layout/activity_wellcome.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AcademicR/res/layout/decide.xml b/AcademicR/res/layout/decide.xml
new file mode 100755
index 0000000..dec8e8b
--- /dev/null
+++ b/AcademicR/res/layout/decide.xml
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/AcademicR/res/layout/hopthree.xml b/AcademicR/res/layout/hopthree.xml
new file mode 100755
index 0000000..d07e783
--- /dev/null
+++ b/AcademicR/res/layout/hopthree.xml
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/AcademicR/res/layout/hoptwo.xml b/AcademicR/res/layout/hoptwo.xml
new file mode 100755
index 0000000..e52d2ae
--- /dev/null
+++ b/AcademicR/res/layout/hoptwo.xml
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/AcademicR/res/menu/main.xml b/AcademicR/res/menu/main.xml
new file mode 100755
index 0000000..33352e6
--- /dev/null
+++ b/AcademicR/res/menu/main.xml
@@ -0,0 +1,11 @@
+
diff --git a/AcademicR/res/menu/wellcome.xml b/AcademicR/res/menu/wellcome.xml
new file mode 100755
index 0000000..c966aa3
--- /dev/null
+++ b/AcademicR/res/menu/wellcome.xml
@@ -0,0 +1,11 @@
+
diff --git a/AcademicR/res/values-v11/styles.xml b/AcademicR/res/values-v11/styles.xml
new file mode 100755
index 0000000..e3ef53d
--- /dev/null
+++ b/AcademicR/res/values-v11/styles.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/AcademicR/res/values-v14/styles.xml b/AcademicR/res/values-v14/styles.xml
new file mode 100755
index 0000000..94dd245
--- /dev/null
+++ b/AcademicR/res/values-v14/styles.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
diff --git a/AcademicR/res/values-w820dp/dimens.xml b/AcademicR/res/values-w820dp/dimens.xml
new file mode 100755
index 0000000..f9f069f
--- /dev/null
+++ b/AcademicR/res/values-w820dp/dimens.xml
@@ -0,0 +1,10 @@
+
+
+
+ 64dp
+
+
diff --git a/AcademicR/res/values/dimens.xml b/AcademicR/res/values/dimens.xml
new file mode 100755
index 0000000..2e0e2ae
--- /dev/null
+++ b/AcademicR/res/values/dimens.xml
@@ -0,0 +1,7 @@
+
+
+
+ 16dp
+ 16dp
+
+
diff --git a/AcademicR/res/values/strings.xml b/AcademicR/res/values/strings.xml
new file mode 100755
index 0000000..2b2bff2
--- /dev/null
+++ b/AcademicR/res/values/strings.xml
@@ -0,0 +1,9 @@
+
+
+
+ AcademicR
+ Hello world!
+ Settings
+ WellcomeActivity
+
+
diff --git a/AcademicR/res/values/styles.xml b/AcademicR/res/values/styles.xml
new file mode 100755
index 0000000..4ea9326
--- /dev/null
+++ b/AcademicR/res/values/styles.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
diff --git a/AcademicR/src/com/example/academicr/MainActivity.java b/AcademicR/src/com/example/academicr/MainActivity.java
new file mode 100755
index 0000000..7d9f760
--- /dev/null
+++ b/AcademicR/src/com/example/academicr/MainActivity.java
@@ -0,0 +1,53 @@
+package com.example.academicr;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+
+public class MainActivity extends Activity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+ Button startButton = (Button)findViewById(R.id.button1);
+ startButton.setOnClickListener(new View.OnClickListener() {
+
+ @Override
+ public void onClick(View v) {
+ // TODO Auto-generated method stub
+ Intent intent = new Intent(MainActivity.this, Relation.class);
+ //طҪʱ
+ EditText input1=(EditText)findViewById(R.id.editText1);
+ EditText input2=(EditText)findViewById(R.id.editText2);
+ intent.putExtra("input1", input1.getText().toString());
+ intent.putExtra("input2", input2.getText().toString());
+ startActivity(intent);
+ }
+ });
+ }
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.menu.main, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ // Handle action bar item clicks here. The action bar will
+ // automatically handle clicks on the Home/Up button, so long
+ // as you specify a parent activity in AndroidManifest.xml.
+ int id = item.getItemId();
+ if (id == R.id.action_settings) {
+ return true;
+ }
+ return super.onOptionsItemSelected(item);
+ }
+}
diff --git a/AcademicR/src/com/example/academicr/Relation.java b/AcademicR/src/com/example/academicr/Relation.java
new file mode 100755
index 0000000..025e20d
--- /dev/null
+++ b/AcademicR/src/com/example/academicr/Relation.java
@@ -0,0 +1,69 @@
+package com.example.academicr;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.Button;
+import android.widget.TextView;
+
+public class Relation extends Activity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.decide);
+ Intent intent=getIntent();
+ final String input1=intent.getStringExtra("input1");
+ final String input2=intent.getStringExtra("input2");
+ Button hopButton1 = (Button)findViewById(R.id.hop2);
+ hopButton1.setOnClickListener(new View.OnClickListener() {
+
+ @Override
+ public void onClick(View v) {
+ // TODO Auto-generated method stub
+ Intent intent = new Intent(Relation.this, hop2.class);
+ //طҪʱ
+ intent.putExtra("input1", input1);
+ intent.putExtra("input2", input2);
+ startActivity(intent);
+
+ }
+ });
+ Button hopButton3 = (Button)findViewById(R.id.hop3);
+ hopButton3.setOnClickListener(new View.OnClickListener() {
+
+ @Override
+ public void onClick(View v) {
+ // TODO Auto-generated method stub
+ Intent intent = new Intent(Relation.this, hop3.class);
+ //طҪʱ
+ intent.putExtra("input1", input1);
+ intent.putExtra("input2", input2);
+ startActivity(intent);
+ }
+ });
+
+ }
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.menu.main, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ // Handle action bar item clicks here. The action bar will
+ // automatically handle clicks on the Home/Up button, so long
+ // as you specify a parent activity in AndroidManifest.xml.
+ int id = item.getItemId();
+ if (id == R.id.action_settings) {
+ return true;
+ }
+ return super.onOptionsItemSelected(item);
+ }
+}
\ No newline at end of file
diff --git a/AcademicR/src/com/example/academicr/WellcomeActivity.java b/AcademicR/src/com/example/academicr/WellcomeActivity.java
new file mode 100755
index 0000000..d980d6a
--- /dev/null
+++ b/AcademicR/src/com/example/academicr/WellcomeActivity.java
@@ -0,0 +1,63 @@
+package com.example.academicr;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.content.pm.PackageInfo;
+import android.content.pm.PackageManager;
+import android.content.pm.PackageManager.NameNotFoundException;
+import android.os.Bundle;
+import android.os.Handler;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.Window;
+import android.view.WindowManager;
+import android.widget.TextView;
+
+public class WellcomeActivity extends Activity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ requestWindowFeature(Window.FEATURE_NO_TITLE);//ر
+ getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);//ȫ
+ setContentView(R.layout.activity_wellcome);
+ PackageManager pm = getPackageManager();
+ try {
+ PackageInfo pi = pm.getPackageInfo("com.lyt.android", 0);
+ TextView versionNumber = (TextView) findViewById(R.id.versionNumber);
+ versionNumber.setText("Version " + pi.versionName);
+ } catch (NameNotFoundException e) {
+ e.printStackTrace();
+ }
+
+ new Handler().postDelayed(new Runnable(){
+
+ @Override
+ public void run() {
+ Intent intent = new Intent(WellcomeActivity.this, MainActivity.class);
+ startActivity(intent);
+ WellcomeActivity.this.finish();
+ }
+
+ }, 2500);
+ }
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.menu.wellcome, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ // Handle action bar item clicks here. The action bar will
+ // automatically handle clicks on the Home/Up button, so long
+ // as you specify a parent activity in AndroidManifest.xml.
+ int id = item.getItemId();
+ if (id == R.id.action_settings) {
+ return true;
+ }
+ return super.onOptionsItemSelected(item);
+ }
+}
diff --git a/AcademicR/src/com/example/academicr/get.java b/AcademicR/src/com/example/academicr/get.java
new file mode 100755
index 0000000..c98cca7
--- /dev/null
+++ b/AcademicR/src/com/example/academicr/get.java
@@ -0,0 +1,87 @@
+package com.example.academicr;
+
+
+public class get{
+
+ private String s;
+
+ public String[] getname2(String input)//ȡ
+ {
+ s = input;
+ int num = 0;//
+ int numfor2=0;
+ String[] name2 = new String[3];
+ s = s.replace("[", "");
+ //System.out.println(s);
+ String[] sArray = s.split("],");
+ //System.out.println(sArray[1]);
+ for (int i = 0 ; i < sArray.length; i++)
+ {
+
+
+ sArray[i] = sArray[i].replace("]","");
+ //System.out.println(sArray);
+ String[] aArray = sArray[i].split(",");
+ //System.out.println(aArray[1]);
+ if ((aArray.length == 3)&&(num<=2))
+ {
+ num++;
+ name2[numfor2]=aArray[1];
+ numfor2++;
+ }
+ //System.out.println(aArray);
+
+ }
+ if(name2.length<3)
+ {for(int j = name2.length; j<3; j++)
+ {name2[j]="NULL";};}
+ return name2;
+ }
+
+
+ public String[] getname3(String input)//ȡ
+ {
+ s = input;
+ System.out.println(s);
+ int num = 0;//
+ int numfor2=0;
+ String[] name3 = new String[6];
+ s = s.replace("[", "");
+ s = s.replace(" ", "");
+ System.out.println("11111111111111111111111");
+ //System.out.println(s);
+ String[] sArray = s.split("],");
+ //System.out.println(sArray[1]);
+ System.out.println("222222222222222222222");
+ for (int i = 0 ; i < sArray.length; i++)
+ {
+ System.out.println("3333333333333333333");
+ sArray[i] = sArray[i].replace("]","");
+ System.out.println(sArray[i]);
+ //System.out.println(sArray);
+ String[] aArray = sArray[i].split(",");
+ //System.out.println(aArray[1]);
+ if ((aArray.length == 4)&&(num<=2))
+ {
+ System.out.println("66666666666666666");
+ num++;
+ name3[numfor2]=aArray[1];
+ name3[numfor2+1]=aArray[2];
+ numfor2 = numfor2+2;
+ }
+ //System.out.println(aArray);
+
+ }
+ System.out.println("4444444444444444444");
+ System.out.println(name3.length);
+ int k=5;
+ while(name3[k]==null)
+ {name3[k]="NULL";
+ k--;System.out.println("777777777777777777");
+ if(k==-1)break;}
+ System.out.println("55555555555555555555555");
+ System.out.println(name3[0]);
+ return name3;
+ }
+};
+
diff --git a/AcademicR/src/com/example/academicr/hop2.java b/AcademicR/src/com/example/academicr/hop2.java
new file mode 100755
index 0000000..c78a789
--- /dev/null
+++ b/AcademicR/src/com/example/academicr/hop2.java
@@ -0,0 +1,178 @@
+package com.example.academicr;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.Reader;
+import java.io.UnsupportedEncodingException;
+import java.net.HttpURLConnection;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.content.pm.ActivityInfo;
+import android.os.Bundle;
+import android.os.StrictMode;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.Window;
+import android.view.WindowManager;
+import android.widget.TextView;
+
+public class hop2 extends Activity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ requestWindowFeature(Window.FEATURE_NO_TITLE);//ر
+ getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);//ȫ
+ setContentView(R.layout.hoptwo);
+ if (android.os.Build.VERSION.SDK_INT > 9) {
+ StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
+ StrictMode.setThreadPolicy(policy);
+ }
+ Intent intent=getIntent();
+ String input1=intent.getStringExtra("input1");
+ String input2=intent.getStringExtra("input2");
+
+ TextView startId = (TextView)findViewById(R.id.startid);
+ TextView endId = (TextView)findViewById(R.id.endid);
+ startId.setText(input1);
+ endId.setText(input2);
+ //http://edward.chinacloudapp.cn/bof333?id1=2094437628&id2=2273736245
+
+
+ String result = null;
+ int len = 500;
+
+ InputStream is = null;
+ try {
+ input1 = input1.replace(" ", "%20");
+ input2 = input2.replace(" ", "%20");
+ URL url = new URL("http://45.62.110.239:8080/bof333?id1="+input1+"&id2="+input2);
+ HttpURLConnection conn = (HttpURLConnection) url.openConnection();
+ conn.setRequestMethod("GET");
+ conn.setDoInput(true);
+ // Starts the query
+ conn.connect();
+ //int response = conn.getResponseCode();
+ is = conn.getInputStream();
+ // Convert the InputStream into a string
+ result = readIt(is, len);
+
+ // Makes sure that the InputStream is closed after the app is
+ // finished using it.
+ } catch (MalformedURLException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } finally {
+ if (is != null) {
+ try {
+ is.close();
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ }
+
+ System.out.println(result);
+
+ //String[] name;
+ //name=getname2(result);
+ get get1=new get();
+ String[] name;
+ name=get1.getname2(result);
+ System.out.println(name[0]);
+ //String[] name1;
+ //name1=getname3(result);
+
+ TextView point1 = (TextView)findViewById(R.id.point1);
+ TextView point2 = (TextView)findViewById(R.id.point2);
+ TextView point3 = (TextView)findViewById(R.id.point3);
+ point1.setText(name[0]);
+ point2.setText(name[1]);
+ point3.setText(name[2]);
+
+
+
+ }
+
+
+ public String[] getname3(String input)//ȡ
+ {
+ //s = input;
+ int num = 0;//
+ int numfor2=0;
+ String[] name3 = new String[6];
+ input = input.replace("[", "");
+ //System.out.println(s);
+ String[] sArray = input.split("],");
+ //System.out.println(sArray[1]);
+
+ for (int i = 0 ; i < sArray.length; i++)
+ {
+
+ sArray[i] = sArray[i].replace("]","");
+ //System.out.println(sArray);
+ String[] aArray = sArray[i].split(",");
+ //System.out.println(aArray[1]);
+ if ((aArray.length == 4)&&(num<=2))
+ {
+ num++;
+ name3[numfor2]=aArray[1];
+ name3[numfor2+1]=aArray[2];
+ numfor2 = numfor2+2;
+ }
+ //System.out.println(aArray);
+
+ }
+ if(name3.length<6)
+ {for(int j = name3.length; j<6; j++)
+ {name3[j]="NULL";};}
+ return name3;
+ }
+
+
+ public String readIt(InputStream stream, int len) throws IOException, UnsupportedEncodingException {
+ Reader reader = null;
+ reader = new InputStreamReader(stream, "UTF-8");
+ char[] buffer = new char[len];
+ reader.read(buffer);
+ return new String(buffer);
+ }
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.menu.main, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ // Handle action bar item clicks here. The action bar will
+ // automatically handle clicks on the Home/Up button, so long
+ // as you specify a parent activity in AndroidManifest.xml.
+ int id = item.getItemId();
+ if (id == R.id.action_settings) {
+ return true;
+ }
+ return super.onOptionsItemSelected(item);
+ }
+
+ @Override
+ protected void onResume() {
+ /**
+ * Ϊ
+ */
+ if(getRequestedOrientation()!=ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE){
+ setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
+ }
+ super.onResume();
+ }
+}
\ No newline at end of file
diff --git a/AcademicR/src/com/example/academicr/hop3.java b/AcademicR/src/com/example/academicr/hop3.java
new file mode 100755
index 0000000..c730fba
--- /dev/null
+++ b/AcademicR/src/com/example/academicr/hop3.java
@@ -0,0 +1,494 @@
+package com.example.academicr;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.Reader;
+import java.io.UnsupportedEncodingException;
+import java.net.HttpURLConnection;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import android.app.Activity;
+import android.app.AlertDialog;
+import android.content.DialogInterface;
+import android.content.Intent;
+import android.content.pm.ActivityInfo;
+import android.os.Bundle;
+import android.os.StrictMode;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.view.Window;
+import android.view.WindowManager;
+import android.widget.Button;
+import android.widget.TextView;
+
+public class hop3 extends Activity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ requestWindowFeature(Window.FEATURE_NO_TITLE);//ر
+ getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);//ȫ
+ setContentView(R.layout.hopthree);
+ if (android.os.Build.VERSION.SDK_INT > 9) {
+ StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
+ StrictMode.setThreadPolicy(policy);
+ }
+ Intent intent=getIntent();
+ String input1=intent.getStringExtra("input1");
+ String input2=intent.getStringExtra("input2");
+
+ TextView startId = (TextView)findViewById(R.id.startid);
+ TextView endId = (TextView)findViewById(R.id.endid);
+ startId.setText(input1);
+ endId.setText(input2);
+
+
+
+
+ String result3 = null;
+ int len = 5000;
+
+ InputStream is = null;
+ try {
+ input1 = input1.replace(" ", "%20");
+ input2 = input2.replace(" ", "%20");
+ URL url = new URL("http://45.62.110.239:8080/bof333?id1="+input1+"&id2="+input2);
+ HttpURLConnection conn = (HttpURLConnection) url.openConnection();
+ conn.setRequestMethod("GET");
+ conn.setDoInput(true);
+ // Starts the query
+ conn.connect();
+ //int response = conn.getResponseCode();
+ is = conn.getInputStream();
+ // Convert the InputStream into a string
+ result3 = readIt(is, len);
+
+ // Makes sure that the InputStream is closed after the app is
+ // finished using it.
+ } catch (MalformedURLException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } finally {
+ if (is != null) {
+ try {
+ is.close();
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ }
+
+ System.out.println(result3);
+
+ //final String[] name;
+ //name=getname3(result3);
+ get get2=new get();
+ final String[] name;
+ name=get2.getname3(result3);
+ System.out.println(name[0]);
+ //String[] name1;
+ //name1=getname3(result);
+
+ /*TextView point11 = (TextView)findViewById(R.id.button11);
+ TextView point12 = (TextView)findViewById(R.id.button12);
+ TextView point13 = (TextView)findViewById(R.id.button13);
+ TextView point21 = (TextView)findViewById(R.id.button21);
+ TextView point22 = (TextView)findViewById(R.id.button22);
+ TextView point23 = (TextView)findViewById(R.id.button23);
+ point11.setText(name[0]);
+ point12.setText(name[1]);
+ point13.setText(name[2]);
+ point21.setText(name[3]);
+ point22.setText(name[4]);
+ point23.setText(name[5]);*/
+
+ Button Button11 = (Button)findViewById(R.id.button11);
+ Button11.setText(name[0]);
+ Button11.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ // TODO Auto-generated method stub
+ //طҪʱ
+
+ String paper_result = null;
+ int len = 500;
+
+ InputStream is = null;
+ try {
+
+ URL url = new URL("http://45.62.110.239:8080/paper?id="+name[0]);
+ HttpURLConnection conn = (HttpURLConnection) url.openConnection();
+ conn.setRequestMethod("GET");
+ conn.setDoInput(true);
+ // Starts the query
+ conn.connect();
+ int response = conn.getResponseCode();
+ is = conn.getInputStream();
+ // Convert the InputStream into a string
+ paper_result = readIt(is, len);
+
+ // Makes sure that the InputStream is closed after the app is
+ // finished using it.
+ } catch (MalformedURLException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } finally {
+ if (is != null) {
+ try {
+ is.close();
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ }
+ new AlertDialog.Builder(hop3.this)
+ .setTitle("Paper ID : "+ name[0])
+ .setMessage(paper_result)
+ .setNegativeButton("Close", new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ //do nothing - it will close on its own
+ }
+ })
+ .show();
+
+ }
+ });
+ Button Button12 = (Button)findViewById(R.id.button12);
+ Button12.setText(name[0]);
+ Button12.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ // TODO Auto-generated method stub
+ //طҪʱ
+
+ String paper_result = null;
+ int len = 500;
+
+ InputStream is = null;
+ try {
+
+ URL url = new URL("http://45.62.110.239:8080/paper?id="+name[1]);
+ HttpURLConnection conn = (HttpURLConnection) url.openConnection();
+ conn.setRequestMethod("GET");
+ conn.setDoInput(true);
+ // Starts the query
+ conn.connect();
+ int response = conn.getResponseCode();
+ is = conn.getInputStream();
+ // Convert the InputStream into a string
+ paper_result = readIt(is, len);
+
+ // Makes sure that the InputStream is closed after the app is
+ // finished using it.
+ } catch (MalformedURLException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } finally {
+ if (is != null) {
+ try {
+ is.close();
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ }
+ new AlertDialog.Builder(hop3.this)
+ .setTitle("Paper ID : "+ name[1])
+ .setMessage(paper_result)
+ .setNegativeButton("Close", new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ //do nothing - it will close on its own
+ }
+ })
+ .show();
+
+ }
+ });
+
+ Button Button13 = (Button)findViewById(R.id.button13);
+ Button13.setText(name[2]);
+ Button13.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ // TODO Auto-generated method stub
+ //طҪʱ
+
+ String paper_result = null;
+ int len = 500;
+
+ InputStream is = null;
+ try {
+
+ URL url = new URL("http://45.62.110.239:8080/paper?id="+name[2]);
+ HttpURLConnection conn = (HttpURLConnection) url.openConnection();
+ conn.setRequestMethod("GET");
+ conn.setDoInput(true);
+ // Starts the query
+ conn.connect();
+ int response = conn.getResponseCode();
+ is = conn.getInputStream();
+ // Convert the InputStream into a string
+ paper_result = readIt(is, len);
+
+ // Makes sure that the InputStream is closed after the app is
+ // finished using it.
+ } catch (MalformedURLException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } finally {
+ if (is != null) {
+ try {
+ is.close();
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ }
+ new AlertDialog.Builder(hop3.this)
+ .setTitle("Paper ID : "+ name[2])
+ .setMessage(paper_result)
+ .setNegativeButton("Close", new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ //do nothing - it will close on its own
+ }
+ })
+ .show();
+
+ }
+ });
+
+ Button Button21 = (Button)findViewById(R.id.button21);
+ Button21.setText(name[3]);
+ Button21.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ // TODO Auto-generated method stub
+ //طҪʱ
+
+ String paper_result = null;
+ int len = 500;
+
+ InputStream is = null;
+ try {
+
+ URL url = new URL("http://45.62.110.239:8080/paper?id="+name[3]);
+ HttpURLConnection conn = (HttpURLConnection) url.openConnection();
+ conn.setRequestMethod("GET");
+ conn.setDoInput(true);
+ // Starts the query
+ conn.connect();
+ int response = conn.getResponseCode();
+ is = conn.getInputStream();
+ // Convert the InputStream into a string
+ paper_result = readIt(is, len);
+
+ // Makes sure that the InputStream is closed after the app is
+ // finished using it.
+ } catch (MalformedURLException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } finally {
+ if (is != null) {
+ try {
+ is.close();
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ }
+ new AlertDialog.Builder(hop3.this)
+ .setTitle("Paper ID : "+ name[3])
+ .setMessage(paper_result)
+ .setNegativeButton("Close", new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ //do nothing - it will close on its own
+ }
+ })
+ .show();
+
+ }
+ });
+
+ Button Button22 = (Button)findViewById(R.id.button22);
+ Button22.setText(name[4]);
+ Button22.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ // TODO Auto-generated method stub
+ //طҪʱ
+
+ String paper_result = null;
+ int len = 500;
+
+ InputStream is = null;
+ try {
+
+ URL url = new URL("http://45.62.110.239:8080/paper?id="+name[4]);
+ HttpURLConnection conn = (HttpURLConnection) url.openConnection();
+ conn.setRequestMethod("GET");
+ conn.setDoInput(true);
+ // Starts the query
+ conn.connect();
+ int response = conn.getResponseCode();
+ is = conn.getInputStream();
+ // Convert the InputStream into a string
+ paper_result = readIt(is, len);
+
+ // Makes sure that the InputStream is closed after the app is
+ // finished using it.
+ } catch (MalformedURLException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } finally {
+ if (is != null) {
+ try {
+ is.close();
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ }
+ new AlertDialog.Builder(hop3.this)
+ .setTitle("Paper ID : "+ name[4])
+ .setMessage(paper_result)
+ .setNegativeButton("Close", new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ //do nothing - it will close on its own
+ }
+ })
+ .show();
+
+ }
+ });
+
+ Button Button23 = (Button)findViewById(R.id.button23);
+ Button23.setText(name[5]);
+ Button23.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ // TODO Auto-generated method stub
+ //طҪʱ
+
+ String paper_result = null;
+ int len = 500;
+
+ InputStream is = null;
+ try {
+
+ URL url = new URL("http://45.62.110.239:8080/paper?id="+name[5]);
+ HttpURLConnection conn = (HttpURLConnection) url.openConnection();
+ conn.setRequestMethod("GET");
+ conn.setDoInput(true);
+ // Starts the query
+ conn.connect();
+ int response = conn.getResponseCode();
+ is = conn.getInputStream();
+ // Convert the InputStream into a string
+ paper_result = readIt(is, len);
+
+ // Makes sure that the InputStream is closed after the app is
+ // finished using it.
+ } catch (MalformedURLException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } finally {
+ if (is != null) {
+ try {
+ is.close();
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ }
+ new AlertDialog.Builder(hop3.this)
+ .setTitle("Paper ID : "+ name[5])
+ .setMessage(paper_result)
+ .setNegativeButton("Close", new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ //do nothing - it will close on its own
+ }
+ })
+ .show();
+
+ }
+ });
+
+
+ }
+
+
+ public String readIt(InputStream stream, int len) throws IOException, UnsupportedEncodingException {
+ Reader reader = null;
+ reader = new InputStreamReader(stream, "UTF-8");
+ char[] buffer = new char[len];
+ reader.read(buffer);
+ return new String(buffer);
+ }
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.menu.main, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ // Handle action bar item clicks here. The action bar will
+ // automatically handle clicks on the Home/Up button, so long
+ // as you specify a parent activity in AndroidManifest.xml.
+ int id = item.getItemId();
+ if (id == R.id.action_settings) {
+ return true;
+ }
+ return super.onOptionsItemSelected(item);
+ }
+
+ @Override
+ protected void onResume() {
+ /**
+ * Ϊ
+ */
+ if(getRequestedOrientation()!=ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE){
+ setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
+ }
+ super.onResume();
+ }
+}
\ No newline at end of file