Coder Social home page Coder Social logo

android-androidfordevelopersworkshop's Introduction

Android-AndroidForDevelopersWorkshop

##Intro to Java and Android

Slide Deck

Environment Configuration Steps

  • Install Android Studio
  • Install VirtualBox
  • Install Genymotion
  • Install Genymotion plugin in Android Studio
  • Switch your appearance preferences to Darcula (obviously..)

##Mad Libs

  • Compose the User Interface XML Files
  • Create a model for a Madlib
  • Connect to web service
  • Update the User Interface from the Activity
  • Pass data from one Activity to another

###MadLib.java

Model Object enapsulating places, people and verbs collections

List<String>mPlaces = new ArrayList<String>(); 

###MadLibService.java

Retrofit encapsulation of network code

###MadLibActivity.java

  • Creates a dialog and shows when network task is initialized
  • Adds items from EditTexts to List
  • Adds an OnClickListener to button which kicks off MadLibService task
  • Passes intent with extra data (story) and starts MadLibStoryActivity

###MadLibStoryActivity.java

  • Parse intent extra data
  • Add extra data to TextView

###activity_mad_lib.xml

  • Linear Layout
  • Edit Texts
  • Buttons

###activity_mad_lib_story.xml

  • Relative
  • Text View

###strings.xml

  • App Name
  • Edit Text Hints
  • Button Text

###build.gradle

  • Retrofit Dependency

###androidmanifest.xml

  • Internet Permission
  • Activity declarations

##To Code along

1. Configure Android environment (if not completed previously)
2. Open Android Studio 
3. Follow Along! 

##Resources

android-androidfordevelopersworkshop's People

Contributors

altyus avatar fs-lms-test-bot avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.