Skip to content

RutgersMobileApplicationDevelopment/RUMADWorkshopOne

Repository files navigation

RUMADWorkshopOne

Our first workshop for Spring 2015!

Steps

  1. Make sure you have git installed
  2. Use the Github desktop app to clone this repository or go to your command line, navigate to your workspace, create a directory, and and once you're in the directory do git clone https://github.com/RutgersMobileApplicationDevelopment/RUMADWorkshopOne.git
  3. You now have all the source code you need! Just import the project into Android Studio.

Red / Blue Text

So the point of this app is to do some Basic I/O in Android on the latest SDK.

We'll take some form input, render the input on the screen and change it's colors. The colors can be changed through two buttons on the screen, in addition we'll create a button that will jump to a completely separate activity.

How it works

Most of the hierarchy of Android happens through activities. You can think of activities as a sort of "execution context" for an android application. More simply put, an activity is what screen of the application the user can currently see.

Since this is the case, each activity has some code that determines how the screen will appear and has code that handles what the app can do. Kind of like HTML and JavaScript. Where each html page has Javascript that is specified for it and there are links on each HTML page that define what other pages you can go to.

So for example let's look at the mainActivity. There is a mainActivity.xml file and a mainActivity.java file. The java determines our functionality and the xml determines the appearance between the two. The way that the java file interfaces with the resources and buttons in the screen layout is through the resource collection referred to as R.java.

You'll see that we create pointers through references to the unique ID's on every single resource, which are defined inside the XML. After that you can manipulate these pointers with event listeners and whatever other functions the android library provides.

Enjoy the Docs! --David Awad

About

Our first workshop for Spring 2015!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages