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

Introduction_into_making_Android_applications.pdf

Tomasz
October 27, 2018

 Introduction_into_making_Android_applications.pdf

Tomasz

October 27, 2018
Tweet

More Decks by Tomasz

Other Decks in Programming

Transcript

  1. About me • I am the student of Zespół Szkół

    nr 10 • I have about 5 years of experience in Android development Hoptimist Quick DronE
  2. Why Android? Advantages 1. Free 2. Popularity 3. Community 4.

    Open source 5. Customization 6. Google integration Disadvantages • Fragmentation (a lot of different devices and system versions) • A lot of processes and services • Fight with the fake apps
  3. The goals • I want you to show the basics

    steps and advices how to create and publish the first Android app. 1. Languages 2. Devices 3. Configuration 4. Files 5. Useful sources 6. Environment 7. Good practices 8. Building 9. Publishing
  4. Devices Production side Deployment side Linux / MacOS / Windows

    Emulator Physicall device Firebase cloud Emulators
  5. Configuration Config.gradle • SDK (Software Development Kit) • Target Version

    (e.g. Lollipop) • Dependecies (Libraries) • System configuration • App’s version Manifest.xml • Icon • Name • Activities (Classes) • Services • Package
  6. Files .xml • Texts • Graphics • Layouts • Animations

    • Configurations .kt / .java • Classes • Interfaces • Enums • Constants
  7. Useful sources • The good place where you can find

    awesome libraries is Android Arsenal -> https://android-arsenal.com/. This really helps to start with awesome project without great experience and skill. • To learn about good practices and advanced development visit CodePath -> https://guides.codepath.com/android • If you need an inspiration or excellent design you should visit -> https://www.uplabs.com/android
  8. Environment • Android Studio is based on IntelIJ so most

    of the layouts and functionalities are similar. • The first app you can create and run without any programming knowledge. • The editor simplify the usage of Firebase Cloud or Google API so it is highly recommend to use them for easier development.
  9. Good practices • If you have some experience in Android

    will be nicely to adjust the code in way the other people find it fast and readable. • Consider MVP that separates view code from logic • Care about Context and Activity classes (RAM usage) • Use Fragments instead of many Activites • Use Constraint Layouts • Write small classes • Move to the AsyncTask code that uses much RAM or CPU • Use dependency injection like Dagger2 • Follow Google’s directions
  10. Building • In order to deploy (install on device) your

    production’s version you have to do three steps: 1. Create the keystore (developer id) and connect to the app 2. Generate an apk file without compilation errors 3. Install manually or publish on Google Play Store
  11. Publishing • If you want to upload your app on

    the Google Play Store you have to: • Create developer account • Pay for it once • Generate correct apk file (package and keystore are important) • Upload an apk file • Fulfill the descriptions and add the graphics
  12. ...and • This is not the end. To have a

    successful project with a lot of downloads it is still a lot of work to do. • Follow app behavior and users reviews. • React on the found bugs. • Keep up fresh design. • Put on notifications and interaction with user. Most of it you can automate with Firebase platform.