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

Android Development Essentials

Annyce D.
December 11, 2019

Android Development Essentials

Explore the world of Android app development. This talk will prepare you to create your very first Android app.

You’ll learn about:
* Android Studio, the preferred IDE for creating Android apps,
* The Android emulator, software designed to mimic a real device,
* The different files in a typical Android app,
* And finally, you’ll learn how an app is built from the bottom up

This talk is designed to provide you with everything you need to know to understand the Android development process. Let’s get started!

Annyce D.

December 11, 2019
Tweet

More Decks by Annyce D.

Other Decks in Programming

Transcript

  1. @brwngrldev Sources of complexity • Multiple versions of Android •

    Variety of devices • Physical size • Pixel density
  2. @brwngrldev Sources of complexity • Multiple versions of Android •

    Variety of devices • Physical size • Pixel density • Manufacturer’s custom software
  3. @brwngrldev • Code editor • Visual layout editor • Gradle

    build system • Debugging tools Android Studio
  4. package info.adavis.puppytracker import android.os.Bundle import androidx.appcompat.app.AppCompatActivity class MainActivity : AppCompatActivity()

    { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) if (savedInstanceState == null) { supportFragmentManager.beginTransaction() .replace(R.id.container, MainFragment.newInstance()) .commitNow() } } } @brwngrldev
  5. package info.adavis.puppytracker import android.os.Bundle import androidx.appcompat.app.AppCompatActivity class MainActivity : AppCompatActivity()

    { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) if (savedInstanceState == null) { supportFragmentManager.beginTransaction() .replace(R.id.container, MainFragment.newInstance()) .commitNow() } } } @brwngrldev
  6. package info.adavis.puppytracker import android.os.Bundle import androidx.appcompat.app.AppCompatActivity class MainActivity : AppCompatActivity()

    { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) if (savedInstanceState == null) { supportFragmentManager.beginTransaction() .replace(R.id.container, MainFragment.newInstance()) .commitNow() } } } @brwngrldev
  7. class MainFragment : Fragment() { override fun onCreateView( inflater: LayoutInflater,

    container: ViewGroup?, savedInstanceState: Bundle? ): View? { return inflater.inflate(R.layout.fragment_main, container, false) } … @brwngrldev
  8. class MainFragment : Fragment() { override fun onCreateView( inflater: LayoutInflater,

    container: ViewGroup?, savedInstanceState: Bundle? ): View? { return inflater.inflate(R.layout.fragment_main, container, false) } … @brwngrldev