Running Head: SEVEN WONDERS OF THE WORLD FINAL PROJECT
Assignment 6: Final Project
Erik Briggs
Professor Stone
CIS 431
12/2/2018
SEVEN WONDERS OF THE WORLD FINAL PROJECT
1. Provide a brief description of your project and describe the purpose of your project.
The “New” Seven Wonders of the World is a mobile application that displays images of
the Seven Wonders of the World where users can travel during their holidays. The app
consists of a grid view with seven ImageView controls each displaying an image of one
of the attraction sites. All the images are stored in a single file. Finally, the app contains
an ImageAdapter class containing an array of image names and a getView() method that
displays a zoomed in image of the selected image and a toast message with the image
index.
The main purpose of the app is to allow users to acquire historical and social information
about the world monumental places they would want to learn about.
2. Provide a short description of the project development activities you completed for this
project based on the ten (10) processes needed to create this application.
This project involved a series of development activities, starting with opening the
Android Studio, select create a new project on the android studio, give the application a
name, set the company domain, and select the project location, add controls to the default
activity, and update the Java code to perform the required task. Below were the steps that
involved in the project development
a. Setup the project environment. This includes starting a new application, giving it
a name, and setting up the Android emulator through which the application will
be tested.
SEVEN WONDERS OF THE WORLD FINAL PROJECT
a. A GridView and an ImageView control were added along with their developed
code. GridView control was used to display the thumbnails of the “New” Seven
Wonders of the world images while the ImageView control was used to display
an enlarged version of the selected image.
b. The XML code for the ImageView control not linked to any particular image was
updated.
c. The images of the “New” Seven Wonders of the World were copied to the
drawable folder from the student file.
d. An array to hold the Image files was defined. This array stores references to the
image files copied to the drawable folder.
e. The ImageAdapter class was created.
f. A toast message was displayed. The toast message informs the use of the image
they have selected.
g. The selected image was displayed. This is an enlarged version of the selected
image. It is displayed in the ImageView control.
h. The ImageAdapter class was customized.
i.
The layout was defined using the getView() method.
j.
An on-click listener was implemented on the GridView to enable each image
displayed in the grid to respond to clicks.
3. Describe any challenges you ran into while creating this project and explain the actions
you took in order to address the aforementioned challenges. If you did not experience any
challenges while creating this project, speculate on the top five (5) challenges that your
classmates might have run into. Provide a rationale for your response.
SEVEN WONDERS OF THE WORLD FINAL PROJECT
a. The resource provided for the assignment was based on an outdated version of
Android Studio hence some steps did not match.
b. Android applications take too long to run deploy. Compared to windows
application, android mobile applications takes more time to run and deploy. This
goes along with consuming a lot of computer resources such as CPU and memory
which may even slow down the computer.
c. Few relevant resources online. Having been working on with the latest version of
Android Studio, there are very resources online that can help track where some
important features such as image views are located if they happen to have been
shifted from the older version used in the textbook resource.
4. Recommend two (2) additional features that you could add to your project in order to
enhance the user experience. Provide a rationale for your response.
User feedbacks feature: This allows users to express their feelings or their past
experience to those places. In addition, it allows users who have been to some of those
places to recommend other visitors who might be willing to visit the places too.
Share feature: This feature allows users to recommend one of the monumental places to
their friends who may be searching for a travel destination. The feature allows the user to
share these sites on their social media site pages, WhatsApp groups, or any other apps
from which their friends can access the information.
SEVEN WONDERS OF THE WORLD FINAL PROJECT
References
1. Simon L. (2018. 7 Must-Have Features for Mobile App Development.
Retrieved from
https://thisisglance.com/7-must-have-features-for-mobile-app-development/
2. Cygnis M. (2013). Business Mobile Application Features and Importance.
Retrieved from https://www.cygnismedia.com/blog/mobile-app-features/
SEVEN WONDERS OF THE WORLD FINAL PROJECT
APPENDIX
Fig 1: Screenshot showing enlarged version of the selected image with a toast message.
SEVEN WONDERS OF THE WORLD FINAL PROJECT
Fig 2: Screenshot of the running app based on the resource provided on endangered species
Developed code based on the endangered species project
MainActivity.java
package net.androidbootcamp.endangeredspecies;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
SEVEN WONDERS OF THE WORLD FINAL PROJECT
import
import
import
import
import
import
import
android.view.View;
android.view.ViewGroup;
android.widget.AdapterView;
android.widget.BaseAdapter;
android.widget.GridView;
android.widget.ImageView;
android.widget.Toast;
public class MainActivity extends AppCompatActivity {
Integer[] Animals ={ R.drawable.eagle, R.drawable.elephant, R.drawable.gorilla,
R.drawable.panda, R.drawable.panther, R.drawable.polar
};
ImageView pic;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
GridView grid = (GridView)findViewById(R.id.gridView);
final ImageView pic = (ImageView)findViewById(R.id.imgLarge);
grid.setAdapter(new ImageAdapter(this));
grid.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView parent, View view, int position, long id) {
Toast.makeText(getBaseContext(), "Selected Species" +
(position + 1), Toast.LENGTH_LONG).show();
pic.setImageResource(Animals[position]);
}
});
}
public class ImageAdapter extends BaseAdapter{
private Context context;
public ImageAdapter(Context c) {
context = c;
}
@Override
public int getCount() {
SEVEN WONDERS OF THE WORLD FINAL PROJECT
return Animals.length;
}
@Override
public Object getItem(int position) {
return null;
}
@Override
public long getItemId(int position) {
return 0;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
pic = new ImageView(context);
pic.setImageResource(Animals[position]);
pic.setScaleType(ImageView.ScaleType.FIT_XY);
pic.setLayoutParams(new GridView.LayoutParams(330, 330));
return pic;
}
}
private Context context;
}
activity_main.xml
.
Purchase answer to see full
attachment