From 53b7016846b6aa71f68e858428d8a4d5bace2985 Mon Sep 17 00:00:00 2001 From: DjBushido Date: Fri, 28 Feb 2014 20:04:17 -0500 Subject: [PATCH] Create the AsyncTask and Thread Photograph activities --- InClass3/AndroidManifest.xml | 10 ++++++++- InClass3/res/layout/activity_main.xml | 18 +++++++++++++-- InClass3/res/layout/activity_photo.xml | 11 ++++++++++ InClass3/res/layout/activity_photo_thread.xml | 11 ++++++++++ InClass3/res/menu/photo.xml | 9 ++++++++ InClass3/res/menu/photo_thread.xml | 9 ++++++++ InClass3/res/values/strings.xml | 17 +++++++------- .../edu/uncc/itcs4180/hw4/PhotoActivity.java | 22 +++++++++++++++++++ .../edu/uncc/itcs4180/hw4/PhotoThread.java | 22 +++++++++++++++++++ 9 files changed, 118 insertions(+), 11 deletions(-) create mode 100644 InClass3/res/layout/activity_photo.xml create mode 100644 InClass3/res/layout/activity_photo_thread.xml create mode 100644 InClass3/res/menu/photo.xml create mode 100644 InClass3/res/menu/photo_thread.xml create mode 100644 InClass3/src/edu/uncc/itcs4180/hw4/PhotoActivity.java create mode 100644 InClass3/src/edu/uncc/itcs4180/hw4/PhotoThread.java diff --git a/InClass3/AndroidManifest.xml b/InClass3/AndroidManifest.xml index 50af039..fa4d8c9 100644 --- a/InClass3/AndroidManifest.xml +++ b/InClass3/AndroidManifest.xml @@ -1,4 +1,4 @@ - + + + + + diff --git a/InClass3/res/layout/activity_main.xml b/InClass3/res/layout/activity_main.xml index af9f093..0b772a8 100644 --- a/InClass3/res/layout/activity_main.xml +++ b/InClass3/res/layout/activity_main.xml @@ -8,9 +8,23 @@ android:paddingTop="@dimen/activity_vertical_margin" tools:context=".MainActivity" > - + android:layout_alignLeft="@+id/btnAsync" + android:layout_alignParentTop="true" + android:layout_alignRight="@+id/btnAsync" + android:layout_marginTop="100dp" + android:text="Generate Image Thread" /> + +