First Steps in Android Development

55 %
45 %
Information about First Steps in Android Development
Technology

Published on February 27, 2014

Author: goldshtn

Source: slideshare.net

Description

Presentation from ConFoo 2014 on Android development. Introducing the Android platform, discussing the major components in the ecosystem, and building a basic todo list manager app with Eclipse.

Sasha Goldshtein CTO, SELA Group @goldshtn blog.sashag.net First Steps in Android Development © Copyright SELA software & Education Labs Ltd. | 14-18 Baruch Hirsch St Bnei Brak, 51202 Israel | www.selagroup.com

(Relevant) Android Versions Froyo Gingerbread Honeycomb •Android 2.2 •Android 2.3.x •Android 3.x Ice Cream Sandwich •Android 4.0 Jelly Bean KitKat •Android 4.1-4.3 •Android 4.4

Android Development Environment Android applications are developed using Java Can use any IDE: IntelliJ, JBuilder, NetBeans, Android Studio Or can use a command line: android create … The Eclipse IDE is recommended Android plugin for Eclipse (ADT) Android projects, compilation, deployment, debugging Android SDK Platform libraries, sources, samples, emulator images for each Android version General tools

Hello World Demo

Project Structure src gen res layout values assets Android X.X.X Libraries AndroidManifest.xml

Resources Resources are non-code application parts Android resources include images, strings, simple values, animations, themes, etc. Best to keep separated/external from code External resources are easier to maintain, upgrade, and manage (…and localize!) Created under the res folder

Layout Resources Layouts specify the UI Decouple presentation layer from code Enable designing UI in XML Can be referenced as any other resource from other layouts Usually, each layout XML file = view

Layouts Most commonly used layouts Layout Description FrameLayout Pins child views to the top left corner. Adding multiple children stacks each new child on top of the previous, with each new view obscuring the last. LinearLayout Adds each child view in a straight line, either vertically or horizontally. RelativeLayout Enables defining the positions of each of the child views relative to each other and the screen boundaries. TableLayout Lay out views using a grid of rows and columns. Multiple layouts can be mixed together

Localization Resources make localization easy Create a language-specific folder structure alongside the main folder structure Folder name includes qualifiers + res + values + strings.xml + values-fr + strings.xml + values-fr-rCA + strings.xml

Code and User Interface Separation Strive to define most of the UI in XML files, and write only code in Java files Clean code/UI separation provides flexibility and easy maintenance Makes it easier to adjust for various types of hardware devices (similar to resource localization) UI elements can be manipulated from code Use findViewById to get UI element instance from code

Connecting UI to Code Demo

Selectors and Lists ListView provides a convenient UI for value selection from a long list Presents multiple items on screen Spinner provides UI for value selection Presents only a single value at a time Drop-down overlay of selectable items

ListView and Adapters Demo

Summary Android development environment Resources, layouts, views It’s just another {language, IDE, UI framework} The rest is just details: data, networking, preferences, styling, …

Questions Sasha Goldshtein CTO, SELA Group @goldshtn blog.sashag.net

Add a comment

Related presentations

Related pages

Building Your First App | Android Developers

If you're new to Android app development, this where you should begin. ... Building Your First App. Previous Next Get started. Dependencies. Android Studio;
Read more

Android development – Your first steps - HTML5 and CSS3

Conclusion. We have just produced our first lesson about android development for the beginners. I hope that you like it and it is useful for you.
Read more

Android Development: Your First Steps - DZone Java

Conclusion. We have just produced our first lesson about android development for the beginners. I hope that you like it and it is useful for you.
Read more

Android Development for Beginners - Udacity

This class is designed for students who are new to programming and want to build Android ... Android Development ... take your first steps towards ...
Read more

[GUIDE] Beginner's guide - first steps with … | Android ...

Top Threads in Miscellaneous Android Development by ThreadRank [M.A.D.] [ROM] [6.0.1] ... first steps with a MTK phone by bluefirebird ...
Read more

Building Your First Android Application - Instructables

Building Your First Android Application ... Downloading the Development Environment. ...

You have provided simple and easy steps to build first android ...
Read more

First Steps in Android Development - Technology

Presentation from ConFoo 2014 on Android development. Introducing the Android platform, discussing the major components in the ecosystem, and building a ...
Read more

Creating an Android Project | Android Developers

This lesson shows you how to create a new Android project with Android Studio and describes some of the files in the project. ... First, be sure that the ...
Read more

Android Development - Community - Google+

Welcome to the official Android Development community on Google+. ... Android Beta: https://plus.google ... consider searching for resources first: ...
Read more