The document describes how to set up the development environment for Android application development. It outlines the system requirements including supported operating systems and development environments. It provides steps to install the Java Development Kit (JDK), Eclipse IDE, Android SDK, and ADT plugin. It also describes setting the SDK path in Eclipse preferences. The document contains screenshots of setting up the environment in a lab.
Day: 2 Environment Setup for Android Application DevelopmentAhsanul Karim
The document provides an overview of setting up the development environment for Android application development. It discusses installing the Java Development Kit (JDK), Eclipse IDE, Android SDK, and ADT plugin. It then demonstrates creating a "Hello World" Android app in Eclipse to introduce application structure, components, and the building blocks of an Android app.
The document discusses various widgets in Android for building user interfaces, including TextView, EditText, Button, CheckBox, RadioButton, DatePicker, TimePicker, image buttons, text fields, toggle buttons, and a rating bar. It provides tutorials on how to create and handle events for these different form elements and widgets. The last part discusses how to create an autocomplete text view that provides country name suggestions from a string array.
1. A service in Android is a component that runs in the background without a user interface. Services are used to perform long-running operations or to deliver notifications and other important updates while an app is not actively being used.
2. The document discusses the anatomy of an Android application and the different components - activities, services, content providers, and broadcast receivers. It provides an example service that runs in the background and displays a notification in the notification bar at periodic intervals until stopped.
3. The example creates a service class that extends Service, adds actions to buttons in an activity to start and stop the service, and uses the onStartCommand() method to display a notification at a specified time interval until the service
Multiple Activity and Navigation PrimerAhsanul Karim
The document discusses Android application development using activities and intents. It describes that an activity provides an interactive screen for a user to perform tasks like making calls or viewing maps. Applications typically contain multiple activities, with one specified as the main launch activity. Activities are created by subclassing the Activity base class and implementing callback methods like onCreate. Activities can transition between each other using intents passed to the startActivity() method. The document provides an example exercise to create registration and login activities with navigation between them. It also outlines the activity lifecycle in Android.
Day 3: Getting Active Through ActivitiesAhsanul Karim
The document discusses Android application development and activities. It describes how an Android application is structured with packages like src, res, assets etc. It explains what an activity is, how it provides the user interface, and how it loads views from XML layouts. It also provides an example of creating a simple project with an activity that displays the current time when a button is pressed to demonstrate the basic concepts.
1. The document discusses programming with sensors on Android devices. It describes creating a project to test which sensors are supported on a device and in the emulator.
2. Code examples are provided to check for support of various sensors like accelerometer, light, magnetic field, and orientation sensors.
3. The document also discusses an example of using the accelerometer sensor to move an image based on device movement. It describes using a sensor simulator library for emulator testing and registering sensor event listeners.
The document discusses building user interfaces for Android applications. It explains that Android uses XML layout files and Java code to create UIs either procedurally or declaratively. Key UI components include views, view groups, adapters, and complex components like maps. The document also covers graphics, multimedia, menus, and optimizing UIs for performance.
Lecture 2(b) Android Internals A Quick OverviewAhsanul Karim
The document provides an overview of Android internals including:
1. What is Android and the Android software stack consisting of the Linux kernel, native libraries, Android runtime, application framework, and applications.
2. The Android SDK which includes APIs, development tools, emulator, documentation, and sample code to develop Android applications.
3. The features of the Android SDK including connectivity, location, maps, multimedia, sensors, storage, and graphics APIs.
4. The application build process which uses tools like dx and aapt to compile code and resources into an .apk file.
5. How applications run in a secure sandbox on Android using Linux users and processes, with each app running in isolation in its own
Lecture 1 Session 1 Before Getting StartedAhsanul Karim
This document provides an overview of Android application development. It begins with an introduction to mobile platforms, covering the history of mobile devices and smartphones. It then compares different mobile platforms such as Android, iOS, Windows Phone and Blackberry. The document outlines the advantages of using the Android platform, including its fast growth, large market share, complete ecosystem and open marketplace for distribution. It covers trends in mobile applications and resources for Android development.
The document discusses the AndroidManifest.xml file which defines the structure and metadata of an Android application. It includes nodes for application components and their interactions. It also specifies requirements, permissions, and configuration options. The manifest allows defining the application version, install location, minimum SDK, and supported screen sizes. It declares necessary permissions and hardware features. The document also covers handling runtime configuration changes and the Android application lifecycle.
This document outlines the objectives and topics covered in an Android development training course offered by www.apponix.com. The training will cover setting up Android Studio, Java programming fundamentals, building user interfaces, managing inputs and buttons, using variables and arrays, the app lifecycle, SQLite databases, connecting to web services, maps and location services, deploying apps, XML layouts, different screen sizes and rotations, keyboard and touch inputs, and displaying notifications. It also describes the Associate Android Developer certification exam, expected salary range after completion, and high job demand and opportunities for Android developers.
This document provides an overview of an Android application development session that covers topics from the basics of Android to an advanced level. It discusses introducing Android and the Android SDK. It describes how to set up the development environment on Windows and Linux and install the Android Development Tools plugin for Eclipse. It demonstrates how to create an Android project in Eclipse and build a simple "Hello World" application. It also explains the structure of an Android project directory and the purpose of key directories like res, src, and values.
This document provides an overview of an Android application development session that covers the Android framework, Android layouts, and basic UI widgets. The session will discuss the main components of the Android framework - activities, services, broadcast receivers, and content providers. It will explain how to design screens using linear, relative and list views in Android layouts. It will also demonstrate how to add basic widgets like text boxes, buttons, checkboxes and radio buttons to a user interface. Code examples are provided to illustrate how to set up activities, initialize views, and retrieve widget values.
Android Development: Build Android App from ScratchTaufan Erfiyanto
a month ago, i have a change to held a one day workshop about Android development at Phetchaburi Rajabhat University, Thailand. The workshop is attended by students and lecturers. it is a pleasure to me to see many people that excited to learn android development.
This is a presentation slide of my presentation. in this presentation you will learn about how to build create a simple to do list app from scratch.
content of the presentation slide:
- Introduction: what Android is?
- Android development tools
- Creating Android Project
- Understanding the Project Structure
- Creating Android Emulator
- Running Android Project on Emulator
- Running Android Project on Device
- Creating User Interface
- Manipulating Widget
- Creating To Do List App
- Integrating SQLite Database to Android Project
This document summarizes the topics of menus and dialogs covered in Android application development session 3. It discusses the three types of menus: option menus, context menus, and popup menus. It provides code examples for creating and handling each type of menu. It also discusses the three types of dialogs: alert dialogs, progress dialogs, and custom dialogs. Code is shown for building each type of dialog and handling button clicks. Custom dialog creation involves separate layout files for the main screen and dialog, with code to display the custom dialog when a button is clicked.
The document provides an overview of Android development. It discusses what Android is, its architecture including the Linux kernel, libraries, Dalvik virtual machine and application framework. It then demonstrates how to set up an Android development environment in Eclipse, and walks through building a simple "Hello World" Android app that displays text when run on an emulator. The app's components like layouts, strings, and icons are also explained.
The document discusses Android sensor programming and testing different sensors on an Android device. It describes creating a project that lists all sensors and whether they are supported on a device. The project tests sensors like accelerometer, light, magnetic field, orientation, and proximity. It finds that the accelerometer and light are enabled on a Galaxy Tab but other sensors are disabled. It also provides a link to download a sensor simulator library and an example of using the accelerometer sensor to move an image based on device movement.
A service in Android runs in the background without a user interface. It can be started and stopped to perform long-running operations like playing audio. A service is not a separate process or a thread but allows work to be done in the background even when the user is not interacting with the app. The document provides an example service app that runs a background service displaying a notification every 5 seconds until stopped. It demonstrates starting and stopping the service from an activity and handling the service lifecycle through onCreate(), onStart(), and onDestroy() methods.
This document provides an overview of Android development basics including what Android is, its components, security and permissions model, and how to develop Android applications. Some key points:
- Android is an operating system based on Linux with a Java programming interface and uses the Dalvik virtual machine. It allows background processing and rich user interfaces.
- Google Play is used to distribute Android apps. Apps declare required permissions which users must approve during installation.
- Main Android app components include Activities, Services, ContentProviders, BroadcastReceivers, and widgets.
- The Android Development Tools in Eclipse provide tools for app development including compiling, debugging and deploying apps to emulators and devices.
- Apps are written
Introduction to Android Development: Before Getting StartedAhsanul Karim
Android application development seminar focused on getting started. The document provided an overview of mobile and smartphone applications and platforms like Android, discussed why developers should learn the Android platform due to its open source nature, vast opportunities for distribution and business advantages over other platforms. It suggested holding workshops and training programs going forward to help novice developers learn.
Day 2 android internals a quick overviewAhsanul Karim
Android is an open source software stack that includes an operating system, middleware, and key applications for mobile devices. It uses the Linux kernel for core system services like memory management and process management. The Android runtime uses the Dalvik virtual machine. The application framework provides APIs for location services, connectivity, multimedia, sensors, and more. Developers can create Android applications using the Android SDK which provides tools and APIs to access device capabilities.
This document discusses user interface layout basics in Android application development. It explains that layouts are defined as XML resources that template a user interface screen or portion of a screen. It also describes layout classes like LinearLayout and RelativeLayout that organize child controls on the screen. The document notes that user interfaces can be defined via XML layout resources or programmatically, and that using XML is the most convenient way to separate view and logic.
The document provides an overview of an Android architecture presentation. It discusses key topics like the Android virtual machine, application stack and framework, core libraries, and the main components of an Android application. For application components, it covers the AndroidManifest file, activities and their lifecycle, intents, application resources including strings and drawables, and localization. It provides examples and code snippets for many of these topics. It also lists additional topics that will be covered in part two of the presentation, such as preferences, app widgets, services, and content providers.
The document discusses various components of an Android application. It describes the four main types of app components: Activities, Services, Broadcast Receivers, and Content Providers. It provides details about what each component type represents and how it is implemented. It also discusses some additional concepts like fragments, views, layouts, intents and resources that are involved in building Android apps.
This document provides an overview of developing Android applications. It discusses installing the necessary tools like the Android SDK and Eclipse plugin. It describes creating an Android project in Eclipse, including specifying the SDK location. It explains app components like activities and services. It provides an example of adding maps functionality by configuring the manifest file and getting an API key. The document is a tutorial that introduces major Android development concepts in a brief and high-level manner.
This document outlines an 80-hour course on Android application development. The course will meet 3 times per week for 4 hours of lectures, assignments, and Q&A. Topics will include the Android architecture, activities, intents, services, UI design, databases, location services, maps, and deploying apps. Students should know Java or C# fundamentals. The course aims to teach students how to build world-class mobile apps using the popular and open-source Android platform. Evaluation will be based on attendance, assignments, projects, tests, and quizzes.
This document provides an overview of key concepts for developing Android applications. It discusses installing the necessary tools like Eclipse, the Android SDK, and configuring the ADT plugin. It also covers creating Android projects, using layouts and resources, adding activities and services to the manifest, and debugging apps. The document demonstrates how to display maps using the Google Maps API, including getting an API key and adding the MapView to layouts.
This document provides an overview of Android application development. It begins with a discussion of mobile phones and applications, and then introduces smartphones and their various platforms like Android, iPhone, and BlackBerry. It highlights reasons for choosing the Android platform, such as its open source nature, large user base, and opportunities for monetization. Technical advantages include using Java and access to device features. The document also outlines various distribution channels for Android apps like the Android Market and 3rd party app stores.
This document discusses connecting to the internet and parsing HTTP responses in Android applications. It provides an example of using HttpClient to send HTTP requests and get response data. It demonstrates creating an Android project to test HTTP connections, including adding permissions and UI components. It also discusses connecting an Android app to a remote MySQL database and retrieving data in JSON format.
Lecture 2(b) Android Internals A Quick OverviewAhsanul Karim
The document provides an overview of Android internals including:
1. What is Android and the Android software stack consisting of the Linux kernel, native libraries, Android runtime, application framework, and applications.
2. The Android SDK which includes APIs, development tools, emulator, documentation, and sample code to develop Android applications.
3. The features of the Android SDK including connectivity, location, maps, multimedia, sensors, storage, and graphics APIs.
4. The application build process which uses tools like dx and aapt to compile code and resources into an .apk file.
5. How applications run in a secure sandbox on Android using Linux users and processes, with each app running in isolation in its own
Lecture 1 Session 1 Before Getting StartedAhsanul Karim
This document provides an overview of Android application development. It begins with an introduction to mobile platforms, covering the history of mobile devices and smartphones. It then compares different mobile platforms such as Android, iOS, Windows Phone and Blackberry. The document outlines the advantages of using the Android platform, including its fast growth, large market share, complete ecosystem and open marketplace for distribution. It covers trends in mobile applications and resources for Android development.
The document discusses the AndroidManifest.xml file which defines the structure and metadata of an Android application. It includes nodes for application components and their interactions. It also specifies requirements, permissions, and configuration options. The manifest allows defining the application version, install location, minimum SDK, and supported screen sizes. It declares necessary permissions and hardware features. The document also covers handling runtime configuration changes and the Android application lifecycle.
This document outlines the objectives and topics covered in an Android development training course offered by www.apponix.com. The training will cover setting up Android Studio, Java programming fundamentals, building user interfaces, managing inputs and buttons, using variables and arrays, the app lifecycle, SQLite databases, connecting to web services, maps and location services, deploying apps, XML layouts, different screen sizes and rotations, keyboard and touch inputs, and displaying notifications. It also describes the Associate Android Developer certification exam, expected salary range after completion, and high job demand and opportunities for Android developers.
This document provides an overview of an Android application development session that covers topics from the basics of Android to an advanced level. It discusses introducing Android and the Android SDK. It describes how to set up the development environment on Windows and Linux and install the Android Development Tools plugin for Eclipse. It demonstrates how to create an Android project in Eclipse and build a simple "Hello World" application. It also explains the structure of an Android project directory and the purpose of key directories like res, src, and values.
This document provides an overview of an Android application development session that covers the Android framework, Android layouts, and basic UI widgets. The session will discuss the main components of the Android framework - activities, services, broadcast receivers, and content providers. It will explain how to design screens using linear, relative and list views in Android layouts. It will also demonstrate how to add basic widgets like text boxes, buttons, checkboxes and radio buttons to a user interface. Code examples are provided to illustrate how to set up activities, initialize views, and retrieve widget values.
Android Development: Build Android App from ScratchTaufan Erfiyanto
a month ago, i have a change to held a one day workshop about Android development at Phetchaburi Rajabhat University, Thailand. The workshop is attended by students and lecturers. it is a pleasure to me to see many people that excited to learn android development.
This is a presentation slide of my presentation. in this presentation you will learn about how to build create a simple to do list app from scratch.
content of the presentation slide:
- Introduction: what Android is?
- Android development tools
- Creating Android Project
- Understanding the Project Structure
- Creating Android Emulator
- Running Android Project on Emulator
- Running Android Project on Device
- Creating User Interface
- Manipulating Widget
- Creating To Do List App
- Integrating SQLite Database to Android Project
This document summarizes the topics of menus and dialogs covered in Android application development session 3. It discusses the three types of menus: option menus, context menus, and popup menus. It provides code examples for creating and handling each type of menu. It also discusses the three types of dialogs: alert dialogs, progress dialogs, and custom dialogs. Code is shown for building each type of dialog and handling button clicks. Custom dialog creation involves separate layout files for the main screen and dialog, with code to display the custom dialog when a button is clicked.
The document provides an overview of Android development. It discusses what Android is, its architecture including the Linux kernel, libraries, Dalvik virtual machine and application framework. It then demonstrates how to set up an Android development environment in Eclipse, and walks through building a simple "Hello World" Android app that displays text when run on an emulator. The app's components like layouts, strings, and icons are also explained.
The document discusses Android sensor programming and testing different sensors on an Android device. It describes creating a project that lists all sensors and whether they are supported on a device. The project tests sensors like accelerometer, light, magnetic field, orientation, and proximity. It finds that the accelerometer and light are enabled on a Galaxy Tab but other sensors are disabled. It also provides a link to download a sensor simulator library and an example of using the accelerometer sensor to move an image based on device movement.
A service in Android runs in the background without a user interface. It can be started and stopped to perform long-running operations like playing audio. A service is not a separate process or a thread but allows work to be done in the background even when the user is not interacting with the app. The document provides an example service app that runs a background service displaying a notification every 5 seconds until stopped. It demonstrates starting and stopping the service from an activity and handling the service lifecycle through onCreate(), onStart(), and onDestroy() methods.
This document provides an overview of Android development basics including what Android is, its components, security and permissions model, and how to develop Android applications. Some key points:
- Android is an operating system based on Linux with a Java programming interface and uses the Dalvik virtual machine. It allows background processing and rich user interfaces.
- Google Play is used to distribute Android apps. Apps declare required permissions which users must approve during installation.
- Main Android app components include Activities, Services, ContentProviders, BroadcastReceivers, and widgets.
- The Android Development Tools in Eclipse provide tools for app development including compiling, debugging and deploying apps to emulators and devices.
- Apps are written
Introduction to Android Development: Before Getting StartedAhsanul Karim
Android application development seminar focused on getting started. The document provided an overview of mobile and smartphone applications and platforms like Android, discussed why developers should learn the Android platform due to its open source nature, vast opportunities for distribution and business advantages over other platforms. It suggested holding workshops and training programs going forward to help novice developers learn.
Day 2 android internals a quick overviewAhsanul Karim
Android is an open source software stack that includes an operating system, middleware, and key applications for mobile devices. It uses the Linux kernel for core system services like memory management and process management. The Android runtime uses the Dalvik virtual machine. The application framework provides APIs for location services, connectivity, multimedia, sensors, and more. Developers can create Android applications using the Android SDK which provides tools and APIs to access device capabilities.
This document discusses user interface layout basics in Android application development. It explains that layouts are defined as XML resources that template a user interface screen or portion of a screen. It also describes layout classes like LinearLayout and RelativeLayout that organize child controls on the screen. The document notes that user interfaces can be defined via XML layout resources or programmatically, and that using XML is the most convenient way to separate view and logic.
The document provides an overview of an Android architecture presentation. It discusses key topics like the Android virtual machine, application stack and framework, core libraries, and the main components of an Android application. For application components, it covers the AndroidManifest file, activities and their lifecycle, intents, application resources including strings and drawables, and localization. It provides examples and code snippets for many of these topics. It also lists additional topics that will be covered in part two of the presentation, such as preferences, app widgets, services, and content providers.
The document discusses various components of an Android application. It describes the four main types of app components: Activities, Services, Broadcast Receivers, and Content Providers. It provides details about what each component type represents and how it is implemented. It also discusses some additional concepts like fragments, views, layouts, intents and resources that are involved in building Android apps.
This document provides an overview of developing Android applications. It discusses installing the necessary tools like the Android SDK and Eclipse plugin. It describes creating an Android project in Eclipse, including specifying the SDK location. It explains app components like activities and services. It provides an example of adding maps functionality by configuring the manifest file and getting an API key. The document is a tutorial that introduces major Android development concepts in a brief and high-level manner.
This document outlines an 80-hour course on Android application development. The course will meet 3 times per week for 4 hours of lectures, assignments, and Q&A. Topics will include the Android architecture, activities, intents, services, UI design, databases, location services, maps, and deploying apps. Students should know Java or C# fundamentals. The course aims to teach students how to build world-class mobile apps using the popular and open-source Android platform. Evaluation will be based on attendance, assignments, projects, tests, and quizzes.
This document provides an overview of key concepts for developing Android applications. It discusses installing the necessary tools like Eclipse, the Android SDK, and configuring the ADT plugin. It also covers creating Android projects, using layouts and resources, adding activities and services to the manifest, and debugging apps. The document demonstrates how to display maps using the Google Maps API, including getting an API key and adding the MapView to layouts.
This document provides an overview of Android application development. It begins with a discussion of mobile phones and applications, and then introduces smartphones and their various platforms like Android, iPhone, and BlackBerry. It highlights reasons for choosing the Android platform, such as its open source nature, large user base, and opportunities for monetization. Technical advantages include using Java and access to device features. The document also outlines various distribution channels for Android apps like the Android Market and 3rd party app stores.
This document discusses connecting to the internet and parsing HTTP responses in Android applications. It provides an example of using HttpClient to send HTTP requests and get response data. It demonstrates creating an Android project to test HTTP connections, including adding permissions and UI components. It also discusses connecting an Android app to a remote MySQL database and retrieving data in JSON format.
Android User Interface Tutorial: DatePicker, TimePicker & SpinnerAhsanul Karim
These slides are for self-learners and trainees of my BASIS and DIIT Android course.
I have used information, content and images from various sources. As these materials are for non-commercial use, I think they won’t infringe any copyright issue.
Day 5: Android User Interface [View Widgets]Ahsanul Karim
The document discusses various widgets in Android for building user interfaces, including TextView, EditText, Button, CheckBox, RadioButton, DatePicker, TimePicker, image buttons, text fields, toggle buttons, and a rating bar. It provides tutorials on how to create and handle events for these different form elements and widgets. The last part discusses how to create an autocomplete text view that provides country name suggestions from a string array.
Creating the first app with android studioParinita03
The document provides an overview of Android Studio, the integrated development environment for Android app development. It discusses what Android is, how Android Studio differs from Eclipse, and walks through creating a new project in Android Studio. The key steps covered are installing Android Studio, creating a new project, selecting project options like the application name and form factors, adding an initial activity, and running the app on an Android emulator.
Day 4: Android: Getting Active through ActivitiesAhsanul Karim
The document discusses Android application development and activities. It covers:
- The structure of Android applications which typically consist of multiple activities with one specified as the main activity in the Android manifest.
- Activities provide an interactive screen for users to perform tasks. Creating an activity involves subclassing the Activity class and implementing callback methods like onCreate.
- The user interface of an activity is defined through layouts which can be accessed from the activity class.
- Activities can transition to one another using intents, by calling startActivity and passing an intent specifying the destination activity class.
- An example is provided to create a registration and login activity, demonstrating how to add activities and navigate between them using intents
Android User Interface: Basic Form WidgetsAhsanul Karim
This document provides a tutorial on creating various user interface elements in Android applications, including buttons, text fields, checkboxes, radio buttons, toggle buttons, rating bars, and auto-complete text views. It includes code examples for adding each element to an app layout and handling user interactions with them.
The document discusses GPS technology and how to access GPS location data in an Android application. It provides an overview of how GPS works using satellites and atomic clocks to triangulate a receiver's position. It then outlines the steps to build an Android app that requests location permissions, sets up a LocationListener callback, and displays the current location on a map in a WebView when the position changes.
Day: 1 Introduction to Mobile Application Development (in Android)Ahsanul Karim
This document provides an introduction and overview of Android application development. It discusses the basics of mobile and smartphone applications and platforms like Android, iOS, and BlackBerry. It explains why the Android platform was selected for the course and its advantages over other platforms. The document outlines the course topics which include setting up the development environment, the Android architecture, Java programming basics, building Android apps, interfaces, components, data storage and more. It also discusses prerequisites and rules for the course.
This document discusses how to add Google Maps functionality to an Android application. It involves several steps:
1. Creating a MapActivity that extends the base MapActivity class and includes the Google Maps library. This allows embedding a map view in the application.
2. Obtaining a Google Maps API key by registering the debug certificate fingerprint and adding the key to the map view XML. This allows accessing Google Maps data.
3. Adding overlay items to the map by creating an ItemizedOverlay class, populating it with OverlayItem objects that have GeoPoint locations, and adding the overlay to the map view. This places markers on the map.
This document discusses ListViews and ListActivities in Android application development. It covers:
- ListViews display scrollable lists via an Adapter that provides data and converts it to list fields. Standard adapters include ArrayAdapter and CursorAdapter.
- ListActivities simplify handling lists by extending the Activity class and providing list management methods like setListAdapter() and onListItemClick().
- Adapters can use default or custom layouts and the ListView recycles views for performance. Interacting with the underlying data model is also demonstrated.
Day 8: Dealing with Lists and ListViewsAhsanul Karim
The document discusses ListViews and ListActivities in Android. It covers:
- How ListViews display scrollable lists using an Adapter to provide data and layouts
- How ListActivities simplify list handling by predefining list interaction methods
- Implementing ArrayAdapters with standard or custom layouts
- Improving performance by recycling list item views
- Creating custom adapters to define flexible row layouts
- Allowing row views to interact with the underlying data model
Welcome To
The Definitive Guide to Android App Development
With the introduction of smartphones, usage of mobile phones has increased dramatically. The way we consume material, do business, and go about our daily lives has altered as a result of smartphones. Because Android powers 85% of smartphones, developing Android apps is a requirement for any internet business worth its salt. The Google Plays tore is now being overrun with thousands of apps every day as a result of this. Everything is now accessible with a few clicks, including ordering food, hailing a cab, seeking work, and finding amusement. If you have the motivation to study Android App Development you can create any number of apps on your own, even though hiring an app development firm or company can be a quick method to get apps.
Android Introduction
Android is a mobile operating system that powers about 2.5 billion devices. Some of the device types powered by Android include phones, televisions, tablets, cameras, game consoles, car systems, and smart wearables. Android devices come in a variety of hardware combinations, but the operating system supports a number of standard functions like storage, cameras, connection, messaging, and more.
Android devices offer notable capabilities via the Android platform, some of which include: Widgets-provide quick access to information on the home screen, such as the current weather; Some of the typical features include a QR code scanner and custom ROMs, which let users modify or customize Android operating systems to their liking.
• Starting Your Android App Development Adventure
• Development of Android Applications: An Introduction
The development of an android-based mobile application for your company is referred to as android app development. Your core toolkit as an Android app developer should include knowledge of Java and C++. It is a prerequisite for beginning the process of developing Android mobile apps. The following software toolkits are provided by Android to help new Android developers get started:
• Integrated Development Kit (IDK) for Software Development Kits
• JDK, or Java Software Development Kit
Tools for creating, debugging, and simulating applications are provided by SDK. The IDE offers an interface for writing codes as well as a GUI for accessing SDK features. The preferred IDE is called Android Studio. In Android Studio, SDK Manager is informed by SDK packages. JDK is set up.
Programming Languages for the Development of Android Applications. Different programming languages (PL) can be used to create Android apps. The level of your proficiency in various programming languages, the advantages and disadvantages of each PL, and—most importantly—what you hope to accomplish with your app—all influence the language you choose.
Several languages are used to create Android mobile applications:
• Java: Java is the official programming language used to create Android applications. Java is open source, safe, and user-friendly.
AN IDE FOR ANDROID MOBILE PHONES WITH EXTENDED FUNCTIONALITIES USING BEST DEV...IJCNCJournal
The document describes an integrated development environment (IDE) for developing Android mobile applications without programming knowledge. The IDE allows users to drag and drop interface elements and web pages to create an application. It has three views: an icon view with buttons, a main view to design the interface, and a slider view to organize pages. The IDE was developed in Eclipse using Java Swing directly in Android, without needing to convert code to XML. This approach avoided errors and reduced time compared to using an external GUI builder. The IDE also includes preview, rollback, execute, and cancel functions to help users test and modify their applications.
This document is an industrial internship report submitted by Sujeet Kumar Yadav for their Bachelor of Technology degree. It details their internship focused on Android app development. The report includes chapters on introducing apps and Android, knowing Android, starting an Android project, important Android concepts, and examples of apps created including ones for audio/video recording and using seek bars. It provides an overview of their learning and experience developing basic Android apps during their internship.
This document discusses the latest Android app development tools for 2019, including Android Studio, Visual Studio, Android Debug Bridge (ADB), AVD Manager, Eclipse, Fabric, GameMaker Studio, Gradle, IntelliJ IDEA, and Unity 3D. It provides an overview of each tool's functions and benefits for Android development. The conclusion recommends choosing tools to improve Android app development services in the USA and working with an experienced company like Acquaint SoftTech.
[Android] Introduction to Android ProgrammingNikmesoft Ltd
This document provides an introduction and overview of Android programming. It discusses what Android is, how it works, and its architecture. It also covers the Android SDK, Android Development Tools (ADT) plugin for Eclipse, and Android Native Development Kit (NDK). The document explains how to set up a development environment, start a new Android project, and run and debug apps. It provides details on project structure and outlines an example exercise to create login fields and buttons in an app.
TOPS Technologies offer Professional Android Training in Ahmedabad.
Ahmedabad Office (C G Road)
903 Samedh Complex,
Next to Associated Petrol Pump,
CG Road,
Ahmedabad 380009.
http://www.tops-int.com/live-project-training-android.html
Most experienced IT Training Institute in Ahmedabad known for providing Android course as per Industry Standards and Requirement.
The document provides an overview of teaching Android application development. It discusses what Android is, why it is useful to teach, and what is needed to teach Android. The basics of creating a "Hello World" Android app are covered, including setting up the development environment, creating an Android project in Eclipse, and running the app in an emulator. Key files like the Java source code, UI layout, strings, and manifest are also explained.
The document provides an overview of Android app development using Android Studio. It discusses what Android is as an operating system, the basics of Android app development including activities, intents and views/layouts. It then describes Android Studio as the official IDE for developing Android apps, highlighting features like Gradle build system, API integration, dynamic layout viewing, built-in samples and version control. The document concludes with some advantages and disadvantages of using Android Studio.
This document provides an overview and introduction to developing Android applications with Java. It discusses what Android is, why it is useful to teach, and what is needed to get started. It then walks through creating a simple "Hello World" Android app as a first example. Key components covered include setting up the development environment, creating an Android project in Eclipse, editing the app's Java source code and XML layout and strings files, and running the app on an emulator.
This document presents a mid-term presentation on a Class Timetable Android application. The application aims to help educational institutions plan and schedule classes by notifying students and teachers of class times. It allows users to check subject lists and timings. The application scope includes effectively managing student and teacher class timetables. The document reviews Android and the software tools used to develop the application like SQLite, Java, and Eclipse. Remaining work includes connecting the app to a database and adding class notification settings. In conclusion, the Class Timetable app could be an effective platform for scheduling with a single mobile application.
The document discusses the course Mobile Application Development. It provides details about the course teacher, outcomes, textbooks, and configuration of the Android development environment. The key topics covered are the Android SDK, Android Virtual Devices, emulators, Dalvik Virtual Machines, and steps to install Android Studio and SDK.
Android is an open-source operating system for mobile devices that includes Java APIs for application development. It is led by Google as part of the Open Handset Alliance. Teaching Android engages students by introducing them to a popular platform using Java skills. Creating a basic "Hello World" Android app involves setting up the development environment, creating a project in Eclipse, and running the app in an emulator or on a device.
Android App Development Intro at ESC SV 2012Opersys inc.
This document provides an introduction to Android app development. It begins with an overview of what Android is and its origins at Google. It then outlines the key aspects of developing apps for Android, including its app model, user experience features, internal architecture, and SDK. The document discusses debugging tools and techniques, alternative app marketplaces, and the core app components in Android like activities, services, and content providers.
Android interview questions and answerskavinilavuG
Android uses Dalvik Virtual Machine (DVM) which requires a special bytecode format called .dex files. The DVM executes multiple virtual machines efficiently and runs Java bytecode, converting it to .dex format. Activities dictate the user interface and handle interactions, services handle background processes, broadcast receivers handle communication between apps and the OS, and content providers manage data storage. The Android SDK includes tools like the emulator, DDMS, and ADB for app development.
This document outlines an Android application for learning programming languages. It discusses prerequisites like knowing Java and XML. It provides an overview of the Android program, which will include everything needed to learn app development through example apps. It describes the necessary software, Android Studio, and issues that may be encountered during development. The expected outcomes are that the project will run on Android and provide programming references, programs, and syntax to develop skills. The usefulness for users is that it allows them to learn programming in a simple way through examples and complete references.
The document provides an introduction to Android including:
- An overview of Android as an open source platform designed for mobile devices championed by Google.
- Explanations of Android versions and code names over time as the platform evolved from 2008 to present.
- Details on how 500 million Android devices were activated globally by September 2012.
- Reasons why Android is a good platform for developers, including its security, features, application framework, and native libraries.
- Instructions on setting up an IDE like Eclipse or Android Studio to begin developing Android apps.
- Examples of basic Android code for declaring activities, passing data between activities using intents, and switching between activities.
Introduction to Android App DevelopmentTodd Burgess
Presentation for Podcamp 2017 Toronto introducing how to do Android app development in Java. This is a basic introduction to what app development looks like Java and how to learn more
Android is a mobile operating system based on Linux that is used primarily in tablets and smartphones. It has an open source model and applications are developed using Java and XML. While initially difficult, developing Android applications is now easier with tools from Google. Developers can create applications and test them using Android virtual devices before releasing them to the Android Market, where a simple app can earn significant revenue. However, the fragmented Android ecosystem and lower spending users present challenges compared to the more controlled iOS platform.
This document provides an overview of Android app development. It discusses what Android is, its history and architecture. It describes the core components of an Android app like activities, services, content providers and intents. It also discusses Android Studio as the IDE, system requirements, how to develop a first app, common programming languages and learning resources. The goal is to introduce the key concepts for developing Android apps.
This document provides an overview of basic probability and statistics concepts. It discusses topics like probability, random variables, expectations, important distributions, multiple variables, law of large numbers, central limit theorem, classical inference including maximum likelihood estimation, Bayesian inference, and references several textbooks and online courses for further information. The document is authored by Nguyen Duc Minh Khoi and provides his contact information.
This document provides an overview of Google products that can be used to support collaboration, including Google Drive, Docs, Slides, Sheets, Forms, and Hangouts. It highlights key features of each tool and provides tips for using them, such as having students collaboratively edit documents in Docs, create and share presentations in Slides, and track data in Sheets. Video conferencing options through Hangouts are also demonstrated.
This document provides information about Google Student Ambassadors (GSAs) in Vietnam, including brief biographies of several GSAs. It discusses the GSA program introduction in Vietnam, as well as GSAs involvement in international programs and events beyond Vietnam's borders, such as meetups with GSAs from other countries. Individual GSAs are highlighted for their academic and professional accomplishments.
This document provides an overview of useful commands for Ubuntu Linux, beginning with basic Linux commands and how to get help or more information on commands. It then covers managing software, important keyboard shortcuts, history commands, redirecting input/output, using aliases and environment variables. Additional sections discuss commands for working as a user, such as editing text, searching files, sorting output and more. The document concludes with commands for system administration, including working with partitions, processes, resources, and network interface cards.
This document provides an introduction to training basic LaTeX. It covers things users need to know about LaTeX including its advantages over traditional typesetting. It discusses installing LaTeX and the different file types encountered. The document also covers typesetting text, including document structure, layout, special characters, and formatting elements like titles, sections, footnotes and emphasized text. Finally, it discusses LaTeX specialties like figures, tables, bibliography, table of contents, indexing and hyperlinks.
The document provides an overview of WordNet, a lexical database for the English language. It discusses the main components of WordNet including nouns, verbs, adjectives and its organization. WordNet groups words into sets of synonyms and defines semantic relationships between these word sets. It contains lexical and semantic information that can be used in natural language processing tasks.
The document discusses Python functions, including defining functions with def statements, variable scopes according to the LEGB rule, passing arguments by assignment, and advanced function concepts like nested functions and nonlocal declarations to modify variables in enclosing scopes. It provides examples of function basics, scopes, arguments, and advanced function techniques in Python.
The document provides an introduction to HTML and CSS for a WWW course. It discusses various HTML tags such as headings, paragraphs, lists, tables, and forms. It also covers CSS topics like the syntax, selectors, and properties for width and height. Students are assigned to improve their flower shop website by adding more pages that introduce the shop, showcases, and about page using images and various HTML elements and tags.
This document outlines a Python-Django training course held at HCMUT in summer 2012. It provides details on the instructors, tools used in the training including Notepad++ and command line, and covers 13 parts that make up the content of the course including introductions to Python, Django, HTML/CSS, installation, models, views, templates and deployment. Exercises are provided to help reinforce learning concepts in Python and using HTML, CSS, and JavaScript to create a form.
This document provides an overview and introduction to design patterns. It discusses creational, structural, and behavioral patterns. For each category it briefly introduces and describes the intent and use of some common patterns, including Factory Method, Singleton, Decorator, Facade, Command, Iterator, and Observer. It also includes diagrams to illustrate the relationships between objects in sample implementations.
The document provides an introduction to JavaScript and jQuery. It discusses what JavaScript and jQuery are, how to add them to web pages, and basic syntax and concepts for both languages. It also covers selecting elements with jQuery, attaching events to elements, and responding to events by performing actions. The document is intended to teach the basics of JavaScript and get readers started with jQuery.
This document summarizes a presentation on how to write a good essay. The presentation covers introducing essay writing, a step-by-step writing process, and making essays more coherent. It discusses developing an introduction, thesis statement, outline, body, and conclusion. Specific concepts are explained, such as brainstorming, topic sentences, supporting details. Grammar points and sample words/phrases are also provided to help make essays clear and well-written. The presentation aims to equip attendees with the skills and knowledge to write effective essays.
This document outlines a Python/Django course provided by Epsilon Mobile Pte. Ltd. The course will teach students basic Python and Django skills over 12 sessions from September 19th to October 14th, 2011. Students will learn to build web applications using Python, Django, HTML, CSS and how to deploy their projects on a cloud server. The course will include lectures, exercises and a final project.
The document provides an introduction to Python programming by discussing statements and syntax. It covers assignment statements, expression statements, print operations, conditional statements like if/else, and loop statements like while and for. It explains how Python programs are composed of modules containing statements with expressions. Truth tests for conditionals and built-in functions like range, zip that can be used in loops are also overviewed.
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetSritoma Majumder
Introduction
All the materials around us are made up of elements. These elements can be broadly divided into two major groups:
Metals
Non-Metals
Each group has its own unique physical and chemical properties. Let's understand them one by one.
Physical Properties
1. Appearance
Metals: Shiny (lustrous). Example: gold, silver, copper.
Non-metals: Dull appearance (except iodine, which is shiny).
2. Hardness
Metals: Generally hard. Example: iron.
Non-metals: Usually soft (except diamond, a form of carbon, which is very hard).
3. State
Metals: Mostly solids at room temperature (except mercury, which is a liquid).
Non-metals: Can be solids, liquids, or gases. Example: oxygen (gas), bromine (liquid), sulphur (solid).
4. Malleability
Metals: Can be hammered into thin sheets (malleable).
Non-metals: Not malleable. They break when hammered (brittle).
5. Ductility
Metals: Can be drawn into wires (ductile).
Non-metals: Not ductile.
6. Conductivity
Metals: Good conductors of heat and electricity.
Non-metals: Poor conductors (except graphite, which is a good conductor).
7. Sonorous Nature
Metals: Produce a ringing sound when struck.
Non-metals: Do not produce sound.
Chemical Properties
1. Reaction with Oxygen
Metals react with oxygen to form metal oxides.
These metal oxides are usually basic.
Non-metals react with oxygen to form non-metallic oxides.
These oxides are usually acidic.
2. Reaction with Water
Metals:
Some react vigorously (e.g., sodium).
Some react slowly (e.g., iron).
Some do not react at all (e.g., gold, silver).
Non-metals: Generally do not react with water.
3. Reaction with Acids
Metals react with acids to produce salt and hydrogen gas.
Non-metals: Do not react with acids.
4. Reaction with Bases
Some non-metals react with bases to form salts, but this is rare.
Metals generally do not react with bases directly (except amphoteric metals like aluminum and zinc).
Displacement Reaction
More reactive metals can displace less reactive metals from their salt solutions.
Uses of Metals
Iron: Making machines, tools, and buildings.
Aluminum: Used in aircraft, utensils.
Copper: Electrical wires.
Gold and Silver: Jewelry.
Zinc: Coating iron to prevent rusting (galvanization).
Uses of Non-Metals
Oxygen: Breathing.
Nitrogen: Fertilizers.
Chlorine: Water purification.
Carbon: Fuel (coal), steel-making (coke).
Iodine: Medicines.
Alloys
An alloy is a mixture of metals or a metal with a non-metal.
Alloys have improved properties like strength, resistance to rusting.
This chapter provides an in-depth overview of the viscosity of macromolecules, an essential concept in biophysics and medical sciences, especially in understanding fluid behavior like blood flow in the human body.
Key concepts covered include:
✅ Definition and Types of Viscosity: Dynamic vs. Kinematic viscosity, cohesion, and adhesion.
⚙️ Methods of Measuring Viscosity:
Rotary Viscometer
Vibrational Viscometer
Falling Object Method
Capillary Viscometer
🌡️ Factors Affecting Viscosity: Temperature, composition, flow rate.
🩺 Clinical Relevance: Impact of blood viscosity in cardiovascular health.
🌊 Fluid Dynamics: Laminar vs. turbulent flow, Reynolds number.
🔬 Extension Techniques:
Chromatography (adsorption, partition, TLC, etc.)
Electrophoresis (protein/DNA separation)
Sedimentation and Centrifugation methods.
INTRO TO STATISTICS
INTRO TO SPSS INTERFACE
CLEANING MULTIPLE CHOICE RESPONSE DATA WITH EXCEL
ANALYZING MULTIPLE CHOICE RESPONSE DATA
INTERPRETATION
Q & A SESSION
PRACTICAL HANDS-ON ACTIVITY
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsDrNidhiAgarwal
Unemployment is a major social problem, by which not only rural population have suffered but also urban population are suffered while they are literate having good qualification.The evil consequences like poverty, frustration, revolution
result in crimes and social disorganization. Therefore, it is
necessary that all efforts be made to have maximum.
employment facilities. The Government of India has already
announced that the question of payment of unemployment
allowance cannot be considered in India
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingCeline George
The Accounting module in Odoo 17 is a complete tool designed to manage all financial aspects of a business. Odoo offers a comprehensive set of tools for generating financial and tax reports, which are crucial for managing a company's finances and ensuring compliance with tax regulations.
Geography Sem II Unit 1C Correlation of Geography with other school subjectsProfDrShaikhImran
The correlation of school subjects refers to the interconnectedness and mutual reinforcement between different academic disciplines. This concept highlights how knowledge and skills in one subject can support, enhance, or overlap with learning in another. Recognizing these correlations helps in creating a more holistic and meaningful educational experience.
How to manage Multiple Warehouses for multiple floors in odoo point of saleCeline George
The need for multiple warehouses and effective inventory management is crucial for companies aiming to optimize their operations, enhance customer satisfaction, and maintain a competitive edge.
Odoo Inventory Rules and Routes v17 - Odoo SlidesCeline George
Odoo's inventory management system is highly flexible and powerful, allowing businesses to efficiently manage their stock operations through the use of Rules and Routes.
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...larencebapu132
This is short and accurate description of World war-1 (1914-18)
It can give you the perfect factual conceptual clarity on the great war
Regards Simanchala Sarab
Student of BABed(ITEP, Secondary stage)in History at Guru Nanak Dev University Amritsar Punjab 🙏🙏
*Metamorphosis* is a biological process where an animal undergoes a dramatic transformation from a juvenile or larval stage to a adult stage, often involving significant changes in form and structure. This process is commonly seen in insects, amphibians, and some other animals.
As of Mid to April Ending, I am building a new Reiki-Yoga Series. No worries, they are free workshops. So far, I have 3 presentations so its a gradual process. If interested visit: https://www.slideshare.net/YogaPrincess
https://ldmchapels.weebly.com
Blessings and Happy Spring. We are hitting Mid Season.
A measles outbreak originating in West Texas has been linked to confirmed cases in New Mexico, with additional cases reported in Oklahoma and Kansas. The current case count is 817 from Texas, New Mexico, Oklahoma, and Kansas. 97 individuals have required hospitalization, and 3 deaths, 2 children in Texas and one adult in New Mexico. These fatalities mark the first measles-related deaths in the United States since 2015 and the first pediatric measles death since 2003.
The YSPH Virtual Medical Operations Center Briefs (VMOC) were created as a service-learning project by faculty and graduate students at the Yale School of Public Health in response to the 2010 Haiti Earthquake. Each year, the VMOC Briefs are produced by students enrolled in Environmental Health Science Course 581 - Public Health Emergencies: Disaster Planning and Response. These briefs compile diverse information sources – including status reports, maps, news articles, and web content– into a single, easily digestible document that can be widely shared and used interactively. Key features of this report include:
- Comprehensive Overview: Provides situation updates, maps, relevant news, and web resources.
- Accessibility: Designed for easy reading, wide distribution, and interactive use.
- Collaboration: The “unlocked" format enables other responders to share, copy, and adapt seamlessly. The students learn by doing, quickly discovering how and where to find critical information and presenting it in an easily understood manner.
CURRENT CASE COUNT: 817 (As of 05/3/2025)
• Texas: 688 (+20)(62% of these cases are in Gaines County).
• New Mexico: 67 (+1 )(92.4% of the cases are from Eddy County)
• Oklahoma: 16 (+1)
• Kansas: 46 (32% of the cases are from Gray County)
HOSPITALIZATIONS: 97 (+2)
• Texas: 89 (+2) - This is 13.02% of all TX cases.
• New Mexico: 7 - This is 10.6% of all NM cases.
• Kansas: 1 - This is 2.7% of all KS cases.
DEATHS: 3
• Texas: 2 – This is 0.31% of all cases
• New Mexico: 1 – This is 1.54% of all cases
US NATIONAL CASE COUNT: 967 (Confirmed and suspected):
INTERNATIONAL SPREAD (As of 4/2/2025)
• Mexico – 865 (+58)
‒Chihuahua, Mexico: 844 (+58) cases, 3 hospitalizations, 1 fatality
• Canada: 1531 (+270) (This reflects Ontario's Outbreak, which began 11/24)
‒Ontario, Canada – 1243 (+223) cases, 84 hospitalizations.
• Europe: 6,814
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...Celine George
Analytic accounts are used to track and manage financial transactions related to specific projects, departments, or business units. They provide detailed insights into costs and revenues at a granular level, independent of the main accounting system. This helps to better understand profitability, performance, and resource allocation, making it easier to make informed financial decisions and strategic planning.
4. Page: 4
Training Android June 2012
Introduction – What is Android?
The Android operating system was developed by
Android, Inc.,
Was acquired by Google in July 2005.
Developing Android apps is the openness of the
platform
The operating system is open source and free.
6. Page: 6
Training Android June 2012
Introduction (cont.)
Java:
was a logical choice for the Android platform
enables you to develop apps that will run on a variety of
devices without any platform-specific code.
is object oriented and has access to powerful class
libraries that help you develop apps quickly.
7. Page: 7
Training Android June 2012
Introduction (cont.)
XML:
enables you to better separate the presentation of your
application from the code that controls its behavior.
makes it easier to visualize the structure of your UI, so
it's easier to debug problems
Is similar to HTML
8. Page: 8
Training Android June 2012
Introduction (cont.)
Multitouch screen:
9. Page: 9
Training Android June 2012
Introduction (cont.)
Android versions:
Android 1.6 (Donut)
Android 2.0–2.1 (Eclair)
Android 2.2 (Froyo)
Android 2.3 (Gingerbread)
Android 3.0 (Honeycomb)
Android 4.0 (Ice Cream Sandwich)
Android 5.0 (Jelly Beans)
See more at:
http://developer.android.com/resources/dashboard/platform
-versions.html
10. Page: 10
Training Android June 2012
Introduction (cont.)
Types of android apps (go to
https://play.google.com/store) for more details
Other sites you can download apps:
11. Page: 11
Training Android June 2012
Introduction (cont.)
12. Page: 12
Training Android June 2012
How to set up
Software and hardware system requirement:
To develop Android apps you need a Windows®,
Linux or Mac OS X system.
Java SE 5 or higher Software Development Kit
Eclipse 3.7 (Indigo) IDE for Java Developers
Android SDK versions 2.2, 2.3.3 and 3.x
ADT (Android Development Tools) Plugin for Eclipse
13. Page: 13
Training Android June 2012
How to set up (cont.)
Install JDK (Java Development Kit) 6:
Go to www.oracle.com/technetwork/java/javase/index-
137561.html
Install Eclipse IDE
Go to www.eclipse.org/downloads
Choose Eclipse IDE for Java Developers
Install the Android SDK
Go to www.developer.android.com/sdk/index.html
Click and choose your suitable platform
Install ADT plugin for Eclipse
Go to www.developer.android.com/sdk/eclipse-adt.html
carefully follow the instructions for downloading
and installing the ADT Plugin
14. Page: 14
Training Android June 2012
How to set up (cont.)
Install Android platform:
15. Page: 15
Training Android June 2012
How to set up (cont.)
16. Page: 16
Training Android June 2012
How to set up (cont.)
Creating Android Virtual Device (AVD):
The Android emulator, included in the Android SDK,
allows you to run Android apps in a simulated environment
on your computer rather than on an actual Android device.
17. Page: 17
Training Android June 2012
How to set up (cont.)
18. Page: 18
Training Android June 2012
Source for learning
Best resource for learning and referencing:
http://developer.android.com/index.html
19. Page: 19
Training Android June 2012
Source for learning (cont.)
20. Page: 20
Training Android June 2012
Source for learning (cont.)
22. Page: 22
Training Android June 2012
Welcome apps (cont.)
23. Page: 23
Training Android June 2012
Eclipse IDE
26. Page: 26
Training Android June 2012
Developing GUI
27. Page: 27
Training Android June 2012
Developing GUI (cont.)
28. Page: 28
Training Android June 2012
Developing GUI (cont.)
29. Page: 29
Training Android June 2012
Developing GUI (cont.)
30. Page: 30
Training Android June 2012
Developing GUI (cont.)
31. Page: 31
Training Android June 2012
Developing GUI (cont.)
32. Page: 32
Training Android June 2012
Running the Welcome apps
To run the app in
an Android
Virtual Device
(AVD), right click
the app’s root
node in
the Package
Explorer window
and select Run
As > Android
Application.
33. Page: 33
Training Android June 2012
Building Features
Each app below will expand on one Class hour
By practicing these apps you will learn some
interesting features
Each app will contain:
Introductionsand objectives
New Features
Building GUI
Adding functions
Results
34. Page: 34
Training Android June 2012
Building Features
Each app below will expand on one Class hour
By practicing these apps you will learn some
interesting features
Each app will contain:
Introductionsand objectives
Technologies Overview
Building GUI
Adding functions
Results
35. Page: 35
Training Android June 2012
Building Features (cont.)
1.Tip Calculator App
2.Favorite Twitter Searches App
3.Flag Quiz Game App
4.Cannon Game App
5.Spot on Game App
6.Doodlz App
7.Address Book App
8.Slideshow App
9.Enhanced Slideshow App
10.Weather Viewer App
36. Page: 36
Training Android June 2012
Tips Calculator App
Objectives:
Building an Android App with
Java
Design a GUI using a
TableLayout
Directly edit the XML of a GUI
layout to customize properties
Use Android Activity’s subclass
interact with EditTexts, a
TextView and a SeekBar.
37. Page: 37
Training Android June 2012
Tips Calculator App (cont.)
Introduction:
“The Tip Calculator app calculates and displays tips
for a restaurant bill. As the user enters a bill total,
the app calculates and displays the tip amount and
total bill for three common tipping percentages—
10%, 15% and 20%. The user can also specify a
custom tip percentage by moving the thumb of a
Seekbar—this updates the percentage shown to the
right of the Seekbar. The suggested tips and bill
totals are updated in response to each user
interaction.”
38. Page: 38
Training Android June 2012
Tips Calculator App (cont.)
Technologies Overview:
TableLayout and TableRow introduction
See more at:
•www.developer.android.com/reference/android/widget/TableLayout.html
•www.developer.android.com/reference/android/widget/TableRow.html
39. Page: 39
Training Android June 2012
Tips Calculator App (cont.)
Building GUI:
Create GUI with the following information
40. Page: 40
Training Android June 2012
Tips Calculator App (cont.)
main.xml describe GUI like figure above
String.xml
41. Page: 41
Training Android June 2012
Tips Calculator App (cont.)
Adding Functions:
Remember when you want to import some library, use just
type the name of the class (don’t need to complete) and press
(Ctrl + Space), it will import immediately
Class Activity of package android.app provides the basic
lifecycle methods of an app—we’ll discuss these shortly.
Class Bundle of package android.os represents an app’s state
information. An app can save its state when it’s sent to the
background by the operating system—for example, when the
user launches another app or a phone call is received.
42. Page: 42
Training Android June 2012
Tips Calculator App (cont.)
Android apps doesn’t have main method
four types of components—activities, services, content providers and
broadcast receivers
A separate activity is typically associated with each screen of an app
Throughout its life an activity can be in one of several states—active (or
running), paused or stopped.
An active (or running) activity is visible on the screen and “has the focus”
A paused activity is visible on the screen but doesn’t have the focus. can be
killed when its memory is needed by the operating system
A stopped activity is not visible on the screen and is likely to be killed by the
system when its memory is needed.
See more at:
www.developer.android.com/reference/android/app/Activity.html
43. Page: 43
Training Android June 2012
Tips Calculator App (cont.)
Override method:
onCreate: called by the system when an Activity is
starting—that is, when its GUI is about to be
displayed so that the user can interact with the
Activity.
onSaveInstanceState: called by the system when the
configuration of the device changes during the app’s
execution
Remember: Each activity lifecycle method you override
must call the superclass’s version of that method first;
otherwise, an exception will be thrown when that method is
called.
44. Page: 44
Training Android June 2012
Tips Calculator App (cont.)
R content class:
Class drawable—contains constants for any drawable
items, such as images, that you put in the various
drawable folders in your app’s res folder
Class id—contains constants for the GUI components
in your XML layout files
Class layout—contains constants that represent each
layout file in your project (such as, main.xml)
Class string—contains constants for each String in
the strings.xml file
45. Page: 45
Training Android June 2012
Tips Calculator App (cont.)
Results:
46. Page: 46
Training Android June 2012
Favorite Twitter Searches App
Objectives:
SharedPreferences, Buttons, Nested Layouts, Intents,
AlertDialogs, Inflating XML Layouts and the Manifest File
Use a ScrollView to display objects that do not fit on the
screen.
Programmatically open a website in a web browser by
using an Intent.
Programmatically hide the soft keyboard.
47. Page: 47
Training Android June 2012
Favorite Twitter Searches App (cont.)
Introduction:
“The Favorite Twitter Searches app allows users to save
their favorite (possibly lengthy) Twitter search strings
with easy-to-remember, user-chosen, short tag names.
Users can then conveniently follow the tweets on their
favorite topics. Twitter search queries can be finely tuned
using Twitter’s search operators
(dev.twitter.com/docs/using-search)—but more complex
queries are lengthy, time consuming and error prone to
type on a mobile device. The user’s favorite searches are
saved on the device, so they’re immediately available
each time the app launches.”
48. Page: 48
Training Android June 2012
Favorite Twitter Searches App (cont.)
49. Page: 49
Training Android June 2012
Favorite Twitter Searches App (cont.)
Technologies Overview:
ScrollView: is a ViewGroup that can contain other Views (like a layout)
and that lets users scroll through content too large to display on the
screen.
To read the key/value pairs from this file we’ll use SharedPreferences
objects (package android.content). To modify the file’s contents, we’ll
use SharedPreferences.Editor objects (package android.content). The
keys in the file must be Strings, and the values can be Strings or
primitive-type values
Intents are typically used to launch activities—they indicate an action
to be performed and the data on which that action is to be performed.
We load the URL into a web browser by creating a new Intent for
viewing a URL, then passing that Intent to the startActivity method,
which our Activity inherits indirectly from class Context
50. Page: 50
Training Android June 2012
Favorite Twitter Searches App (cont.)
New Features:
LayoutInflater programmatically creates these GUI components
from a predefined XML layout. The LayoutInflater inflates an XML
layout file, thus creating the components specified in the XML.
You can display messages and confirmations like these with an
AlertDialog. We specify the settings for the dialog with an
AlertDialog.Builder object, then use it to create the AlertDialog.
The AndroidManifest.xml file is created for you when you
create an app using the ADT Plugin in Eclipse. This file specifies
settings such as the app’s name, the package name, the target
and minimum SDKs, the app’s Activity name(s) and more
51. Page: 51
Training Android June 2012
Favorite Twitter Searches App (cont.)
Building the GUI:
52. Page: 52
Training Android June 2012
Favorite Twitter Searches App (cont.)
Adding functions:
Package android.widget contains the widgets (i.e., GUI
components) and layouts that are used in Android GUIs. Class
Button of package android.widget represents a simple push
button that the user touches to get the app to perform a specific
action. You implement interface View.OnClickListener of package
android.view to specify the code that should execute when the
user touches a Button
Overridden Method OnCreate of Class Activity, called by system
when:
when the app loads
if the app’s process was killed by the operating system while the
app was in the background, and the app is then restored
each time the configuration changes, such as when the user
rotates the device or opens/closes a physical keyboard.
53. Page: 53
Training Android June 2012
Favorite Twitter Searches App (cont.)
Adding functions:
Method getSharedPreferences to get a SharedPreferences
object that can read tag/query pairs stored previously (if any) from
the "searches" file.
The first argument indicates the name of the file that contains
the data.
The second argument specifies the accessibility of the file and
can be set to one of the following options:
MODE_PRIVATE— The file is accessible only to this app. In most
cases, you’ll use this constant as the second argument to
getSharedPreferences.
MODE_WORLD_READABLE— Any app on the device can read from
the file.
MODE_WORLD_WRITABLE— Any app on the device can write to
the file.
54. Page: 54
Training Android June 2012
Favorite Twitter Searches App (cont.)
AndroidManifest.xml
For complete information, refer to this
page:
www.developer.android.com/guide/topics/manifest/manif
est-intro.html
55. Page: 55
Training Android June 2012
Favorite Twitter Searches App (cont.)
56. Page: 56
Training Android June 2012
Flag Quiz Game App
Objectives:
Assets, AssetManager, Tweened Animations, Handler, Menus
and Logging Error Messages.
Use an AssetManager to get a list of all assets in an app.
Use random-number generation to vary flag choices.
Use a Drawable to display a flag image in an ImageView.
Use a Handler to schedule a future action.
Use an ArrayList to hold collections of items and a
HashMap to hold name–value pairs.
Override Activity’s onCreateOptionsMenu method to create a
Menu and MenuItems that enable the user to configure the
app’s options.
Use Android’s logging mechanism to log error messages.
57. Page: 57
Training Android June 2012
Flag Quiz Game App (cont.)
Introduction:
“The Flag Quiz Game app tests the user’s ability to correctly
identify country flags. Initially, the app presents the user with a
flag image and three possible answers—one matches the flag
and the others are randomly selected, nonduplicated incorrect
answers. The app displays the user’s progress throughout the
quiz, showing the question number (out of 10) in a TextView
above the current flag image.”
58. Page: 58
Training Android June 2012
Flag Quiz Game App (cont.)
59. Page: 59
Training Android June 2012
Flag Quiz Game App (cont.)
Technologies Overview:
Using the App’s assets Folder: the assets folder may contain files of any
type that can be organized in subfolders—we maintain the flag images for
each region in a separate subfolder. Files in the assets folders are accessed
via an AssetManager (package android.content.res), which can provide a
list of all of the file names in a specified subfolder of assets and can be
used to access each asset.
Using a Menu to Provide App Options: override Activity’s
onCreateOptionsMenu method and add the options to the Menu that the
method receives as an argument. Activity method
onOptionsItemSelected is called to respond to the selection.
Using a Handler to Execute a Runnable in the Future: . Handler method
postDelayed receives as arguments a Runnable to execute and a delay in
milliseconds.
60. Page: 60
Training Android June 2012
Flag Quiz Game App (cont.)
Technologies Overview (cont.):
Animating the Flag When an Incorrect Choice Is Touched:
AnimationUtils static method loadAnimation to load the animation from
an XML file that specifies the animation’s options. We also specify the
number of times the animation should repeat with Animation method
setRepeatCount and perform the animation by calling View method
startAnimation (with the Animation as an argument) on the ImageView.
Logging Exception Messages with Log.e: When exceptions occur, you
can log them for debugging purposes with Android’s built-in logging
mechanism, which uses a circular buffer to store the messages for a short
time. Android provides class Log (package android.util) with several static
methods that represent messages of varying detail.
Java Data Structures: ArrayList<String>, Map<String, Boolean>,
Set<String>
61. Page: 61
Training Android June 2012
Flag Quiz Game App (cont.)
Building the App GUI:
Main.xml Linear Layout
62. Page: 62
Training Android June 2012
Flag Quiz Game App (cont.)
colors.xml & dimen.xml:
63. Page: 63
Training Android June 2012
Flag Quiz Game App (cont.)
string.xml:
64. Page: 64
Training Android June 2012
Flag Quiz Game App (cont.)
65. Page: 65
Training Android June 2012
Flag Quiz Game App (cont.)
Study more:
View animations to create a shake effect that consists of three
animations in an animation set a collection of animations which make up
a larger animation. Animation sets may contain any combination of
tweened animations— alpha (transparency), scale (resize), translate
(move) and rotate.
android:fromXDelta attribute is the View’s offset when the animation
starts and the android:toXDelta attribute is the View’s offset when the
animation ends. These attributes can have
absolute values (in pixels)
a percentage of the animated View’s size
a percentage of the animated View’s parent’s size
The android:duration attribute specifies how long the animation lasts in
milliseconds.
android:startOffset attribute to specify the number of milliseconds into
the future at which an animation should begin.
66. Page: 66
Training Android June 2012
Flag Quiz Game App (cont.)
Building the App
AndroidManifest.xml:
67. Page: 67
Training Android June 2012
Cannon Game App
Objectives:
Create a simple game app that’s easy to code and fun to play.
Create a custom SurfaceView subclass and use it to display the
game’s graphics from a separate thread of execution.
Draw graphics using Paints and a Canvas.
Override Activity’s onTouchEvent to process touch events when
the user touches the screen or drags a finger on the screen.
Use a GestureDetector to recognize more sophisticated user
touch motions, such as double taps.
Perform simple collision detection.
Add sound to your app using a SoundPool and the
AudioManager.
Override three additional Activity lifecycle methods.
68. Page: 68
Training Android June 2012
Cannon Game App (cont.)
Introduction:
“The Cannon Game app challenges you to destroy a seven-
piece target before a ten-second time limit expires. The game
consists of four visual components—a cannon that you control,
a cannonball, the target and a blocker that defends the target.
You aim the cannon by touching the screen—the cannon then
aims at the touched point. The cannon fires a cannonball when
you double-tap the screen. At the end of the game, the app
displays an AlertDialog indicating whether you won or lost, and
showing the number of shots fired and the elapsed time”
69. Page: 69
Training Android June 2012
Cannon Game App (cont.)
70. Page: 70
Training Android June 2012
Cannon Game App (cont.)
71. Page: 71
Training Android June 2012
Cannon Game App (cont.)
Technologies Overview
Defining String Formatting Resources in strings.xml
Attaching a Custom View to a Layout
Using the Resource Folder raw
Activity Lifecycle Methods onPause and onDestroy:
Method onPause is called for the current Activity when another activity
receives the focus, which sends the current activity to the background. We
use onPause to suspend game play so that the game does not continue
executing when the user cannot interact with it.
When an Activity is shut down, its onDestroy method is called. We use this
method to release the app’s sound resources.
Overriding Activity Method onTouchEvent
72. Page: 72
Training Android June 2012
Cannon Game App (cont.)
Technologies Overview (cont.)
GestureDetector and SimpleOnGestureListener:
A GestureDetector allows an app to react to more sophisticated
user interactions such as flings, double-taps, long presses and scrolls.
Your apps can respond to such events by implementing the methods
of the GestureDetector.
GestureDetector.SimpleOnGestureListener is an adapter class that
implements all the methods of these two interfaces, so you can
extend this class and override just the method(s) you need from
these interfaces.
Adding Sound with SoundPool and AudioManager
Frame-by-Frame Animation with Threads, SurfaceView and
SurfaceHolder
Simple Collision Detection
Drawing Graphics Using Paint and Canvas
73. Page: 73
Training Android June 2012
Cannon Game App (cont.)
Building App’s GUI and resource files:
74. Page: 74
Training Android June 2012
Cannon Game App (cont.)
Building App’s GUI and resource files (cont.):
75. Page: 75
Training Android June 2012
Cannon Game App (cont.)
Building App’s GUI and resource files (cont.):
The notation 1$ in %1$.1f (line 5) indicates that the first argument after
the format String should replace the format specifier %1$d. Similarly,
%2$.1f indicates that the second argument after the format String should
replace the format specifier %2$.1f.
Adding functions (regarding to instructors)