diff --git a/HW2/.classpath b/HW2/.classpath new file mode 100644 index 0000000..26bdfa6 --- /dev/null +++ b/HW2/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/HW2/.project b/HW2/.project new file mode 100644 index 0000000..6516a62 --- /dev/null +++ b/HW2/.project @@ -0,0 +1,33 @@ + + + HW2 + + + + + + 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/HW2/.settings/org.eclipse.jdt.core.prefs b/HW2/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..48ab4c6 --- /dev/null +++ b/HW2/.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/HW2/AndroidManifest.xml b/HW2/AndroidManifest.xml new file mode 100644 index 0000000..1a17d99 --- /dev/null +++ b/HW2/AndroidManifest.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + diff --git a/HW2/ic_launcher-web.png b/HW2/ic_launcher-web.png new file mode 100644 index 0000000..c4cc69b Binary files /dev/null and b/HW2/ic_launcher-web.png differ diff --git a/HW2/libs/android-support-v4.jar b/HW2/libs/android-support-v4.jar new file mode 100644 index 0000000..9056828 Binary files /dev/null and b/HW2/libs/android-support-v4.jar differ diff --git a/HW2/proguard-project.txt b/HW2/proguard-project.txt new file mode 100644 index 0000000..f2fe155 --- /dev/null +++ b/HW2/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/HW2/project.properties b/HW2/project.properties new file mode 100644 index 0000000..4ab1256 --- /dev/null +++ b/HW2/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-19 diff --git a/HW2/res/drawable-hdpi/ic_launcher.png b/HW2/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..3893c8e Binary files /dev/null and b/HW2/res/drawable-hdpi/ic_launcher.png differ diff --git a/HW2/res/drawable-mdpi/ic_launcher.png b/HW2/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..a4a60a1 Binary files /dev/null and b/HW2/res/drawable-mdpi/ic_launcher.png differ diff --git a/HW2/res/drawable-xhdpi/ic_launcher.png b/HW2/res/drawable-xhdpi/ic_launcher.png new file mode 100644 index 0000000..52f0167 Binary files /dev/null and b/HW2/res/drawable-xhdpi/ic_launcher.png differ diff --git a/HW2/res/drawable-xxhdpi/ic_launcher.png b/HW2/res/drawable-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..6bc31f2 Binary files /dev/null and b/HW2/res/drawable-xxhdpi/ic_launcher.png differ diff --git a/HW2/res/layout/activity_main.xml b/HW2/res/layout/activity_main.xml new file mode 100644 index 0000000..af9f093 --- /dev/null +++ b/HW2/res/layout/activity_main.xml @@ -0,0 +1,16 @@ + + + + + diff --git a/HW2/res/menu/main.xml b/HW2/res/menu/main.xml new file mode 100644 index 0000000..d122a4b --- /dev/null +++ b/HW2/res/menu/main.xml @@ -0,0 +1,9 @@ + + + + + diff --git a/HW2/res/values-sw600dp/dimens.xml b/HW2/res/values-sw600dp/dimens.xml new file mode 100644 index 0000000..c876987 --- /dev/null +++ b/HW2/res/values-sw600dp/dimens.xml @@ -0,0 +1,8 @@ + + + + + diff --git a/HW2/res/values-sw720dp-land/dimens.xml b/HW2/res/values-sw720dp-land/dimens.xml new file mode 100644 index 0000000..0df3067 --- /dev/null +++ b/HW2/res/values-sw720dp-land/dimens.xml @@ -0,0 +1,9 @@ + + + + 128dp + + diff --git a/HW2/res/values-v11/styles.xml b/HW2/res/values-v11/styles.xml new file mode 100644 index 0000000..e3ef53d --- /dev/null +++ b/HW2/res/values-v11/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/HW2/res/values-v14/styles.xml b/HW2/res/values-v14/styles.xml new file mode 100644 index 0000000..94dd245 --- /dev/null +++ b/HW2/res/values-v14/styles.xml @@ -0,0 +1,12 @@ + + + + + + diff --git a/HW2/res/values/dimens.xml b/HW2/res/values/dimens.xml new file mode 100644 index 0000000..2e0e2ae --- /dev/null +++ b/HW2/res/values/dimens.xml @@ -0,0 +1,7 @@ + + + + 16dp + 16dp + + diff --git a/HW2/res/values/strings.xml b/HW2/res/values/strings.xml new file mode 100644 index 0000000..bf4af71 --- /dev/null +++ b/HW2/res/values/strings.xml @@ -0,0 +1,8 @@ + + + + HW2 + Settings + Hello world! + + diff --git a/HW2/res/values/styles.xml b/HW2/res/values/styles.xml new file mode 100644 index 0000000..4ea9326 --- /dev/null +++ b/HW2/res/values/styles.xml @@ -0,0 +1,20 @@ + + + + + + + + + diff --git a/HW2/src/edu/uncc/itcs4180/hw2/MainActivity.java b/HW2/src/edu/uncc/itcs4180/hw2/MainActivity.java new file mode 100644 index 0000000..2aa8d15 --- /dev/null +++ b/HW2/src/edu/uncc/itcs4180/hw2/MainActivity.java @@ -0,0 +1,22 @@ +package edu.uncc.itcs4180.hw2; + +import android.os.Bundle; +import android.app.Activity; +import android.view.Menu; + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + } + + @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; + } + +}