Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android StudyJam session 3

Android StudyJam session 3

Deck from the Android StudyJam event where we walked through the Udacity course on Android Fundamentals

Arpit Mathur

February 23, 2016
Tweet

More Decks by Arpit Mathur

Other Decks in Technology

Transcript

  1. TEXT BASIC PROGRAMMING ▸ Given some inputs you want some

    outputs ▸ I have a city name, give me the weather ▸ I have a message, I want it to appear on Twitter
  2. TEXT BASIC JAVA ▸ Variables (with data types ): int

    count = 5 ▸ Collections : Array, ArrayList, etc: ▸ int[] numbers = new Int [] { 1, 2, 3 } ▸ Conditionals: ▸ if / else, switch, etc ▸ Functions / Methods ▸ private int getMaxValue(int valueA, int valueB) { … } ▸ Classes ▸ Packages
  3. TEXT DEFINING VS CALLING A METHOD ▸ Method inputs (arguments)

    ▸ Output from a method (the Cake example) ▸ Using Return values ▸ Exercise: Implement Submit order (return a string representing the summary text) ▸ Exercise: Modifying the code to read: “Price Summary” and then the text
  4. TEXT ANDROID RESOURCES ▸ XML Layouts, Text, Images, Icons, Measurements,

    Audio files, etc ▸ AAPT compiles resources to an R file ▸ Code ▸ R.drawable.zzz ▸ R.string.zzz ▸ R.id.zzz ▸ XML: ▸ @drawable / zzz ▸ @string/zzz ▸ @id/zzz (or if you are creating it @+id/zzz)
  5. BONUS ROUND IF I WAS TO ASK YOU… ▸ Take

    a number. If the number is below 10, print “thats low”, otherwise print “thats high”