How to make it work? Doncho Minkov Telerik Academy academy.telerik.com Technical Trainer

Slides:



Advertisements
Similar presentations
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Scienze dellInformazione Università di Bologna.
Advertisements

ANDROID DEVELOPMENT KELLY MCBEAN. DEVELOPMENT ENVIRONMENT OVERVIEW Eclipse Standard IDE for Developing Android Applications Install: 1.Java (JDK) – Since.
Coursework 2: getting started (1) – running the phone emulator Chris Greenhalgh G54UBI / Chris Greenhalgh
Chapter 1: Voilà! Meet the Android
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna.
Hello world Follow steps under the sections “Create an AVD” and “Create a New Android Project” at
The Android Development Environment.  Getting started on the Android Platform  Installing required libraries  Programming Android using the Eclipse.
1 Mobile Computing Mobile First (formerly Worklight) Copyright 2015 by Janson Industries.
Coursework 2: getting started (4) – using PhoneGap to build mobile applications (optional) Chris Greenhalgh G54UBI /
Android: Hello World Frank Xu Gannon University. Steps Configuration ▫Android SDK ▫Android Development Tools (ADT)  Eclipse plug-in ▫Android SDK and.
Google Android as a mobile development platform T Internet Technologies for Mobile Computing Olli Mäkinen.
13-Jul-15 Getting Ready for Java. 2 What You Need 256 MB of RAM (512 MB or more recommended) 500 MHz Pentium or better Macintosh: must run Mac OS X, preferably.
Android Programming Beomjoo Seo Sep., 12 CS5248 Fall 2012.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
Setting up the Development Environment Copyright © SUPINFO. All rights reserved Preparation.
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
Getting Started with Android Programming Note: if you have already installed android development tools, please check that you have the same version as.
Creating a Hello App Using Google App Engine. What are Google apps? Apps is an abbreviation for application. An app is a piece of software. It can run.
How to make it work? Doncho Minkov Telerik Academy academy.telerik.com Technical Trainer
Android Application Development CSE 5520/4520 Wireless Networks.
SEEM4570: XAMPP, Eclipse, Summary of Html Kangfei Zhao Room 711,ERB
Android Programming. Outline Preparation Create new project Build and Run a project Debug a project Deploy on devices.
Android Application Development 2013 PClassic Chris Murphy 1.
Android Introduction Platform Overview.
Better reference the original webpage :
Mobile Programming Lecture 1 Getting Started. Today's Agenda About the Eclipse IDE Hello, World! Project Android Project Structure Intro to Activities,
Android 2: Introduction to the Technology Kirk Scott 1.
Google Maps Android API v2 吳俊興 國立高雄大學 資訊工程學系 CSF645 – Mobile Computing 行動計算
Wireless Mobility with Android 1 Presented by: Ung Yean MS. Computer Science American University, Washington DC, USA.
Eclipse Overview Introduction to Web Programming Kirkwood Continuing Education Fred McClurg © Copyright 2015, Fred McClurg, All Rights Reserved.
Android Programming By Mohsen Biglari Android Programming, Part1: Introduction 1 Part1: Introduction By Mohsen Biglari.
1 Mobile Computing Set Up Copyright 2015 by Janson Industries.
Copyright© Jeffrey Jongko, Ateneo de Manila University Android.
Android. The Eclipse IDE Installation Requirements: Eclipse Java Windows All must match (32-bit OR 64-bit) If you have a 64-bit OS & 32-bit browser,
Introduction to Android. Android as a system, is a java based operating system that runs on the Linux kernel. The system is very lightweight and full.
Ali Shahrokni Application Components Activities Services Content providers Broadcast receivers.
Setting Up The Android SDK (Software Development Kit) A basic step by step guide leading to set up and your first Hello World App.
Eclipse Tutorial Barrett Summer Scholars 2011 Sustainable Engineering: Learning to Engineer Truly Green Products.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
Presented By: Muhammad Tariq Software Engineer Android Training course.
Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android.
Android Development Environment Environment/tools Windows Eclipse IDE for Java Developers (v3.5 Galileo) Java Platform (JDK 6 Update 18) Android.
Android Hello World 1. Click on Start and type eclipse into the textbox 2.
GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
Installing Repast in the Eclipse IDE Charlie Gieseler 6/28/04.
First Venture into the Android World Chapter 1 Part 2.
Introduction to Android
 Installation of Android Development Environment  Creating the App with OpenGL ES API  Running the App on Emulator Android App Development.
The way of hybrid mobile development Hybrid Mobile Applications Telerik Software Academy
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
TODAY Android Studio Installation Getting started Creating your 1 st App Beginning to understanding Intents.
Building the CarryDrop simulation in Eclipse Creating a new project with existing code from John Murphy’s RePast tutorial.
Intoduction to Andriod studio Environment With a hello world program.
Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of.
Guide To Develop Mobile Apps With Titanium. Agenda Overview Installation of Platform SDKs Pros of Appcelerator Titanium Cons of Appcelerator Titanium.
IBM Worklight environment setup 1. Eclipse IDE Multi-purpose integrated development environment (IDE) Open source Supported for Windows, Mac OS X, Linux.
PhoneGap. web-based mobile development framework, based on the open-source Cordova project. use standard web technologies such as HTML5, CSS3, and JavaScript.
Day 1 Session 2. Setup & Installation
Obtaining the Required Tools
Java on the LEGO Mindstorms EV3
Android.
Apache Cordova Overview
Development-Introduction
Android 基礎.
Korea Software HRD Center
Working with Libraries
Review of Previous Lesson
Presentation transcript:

How to make it work? Doncho Minkov Telerik Academy academy.telerik.com Technical Trainer

 The Android SDK  Installation of Android SDK  Eclipse  Android SDK  Android ADT  Installation of PhoneGap  "Hello PhoneGap" project

 Android is a software stack for mobile devices that includes  An operating system  Middleware  Key applications  The Android SDK provides necessary tools and APIs to develop applications  Using Java programming language

How to start Android development?

1. Installing Eclipse IDE 2. Install Android SDK 3. Install the ADT plugin for eclipse 4. Add components needed for development

 What is Eclipse?  A multi-language software development environment comprising  An integrated development environment (IDE)  Mostly written in Java  Eclipse is used to develop applications  In Java, C, C++, Perl, PHP, Python, R, etc.  For Android (using Java)  Download at

 For the Android SDK to be installed  The machine should have at least jdk 1.6  Version 1.7 is also ok  Then download the installer file from 

 * There is a known bug during installation of the SDK  The installer cannot locate the jdk  Just click the "Back" button and then "Next"  It should work

 After the installation of Android SDK  Some components should be installed  Packages for Android versions: 2.1, 2.2, 3.2, etc.  Some other tools like a couple of Google APIs  Start the Android SDK Manager and wait for fetching of packages  This may take a while  Took me two / thirds of a day for all packages

 Use the Update Manager feature of Eclipse  To install the latest revision of ADT on your development computer  How to download it?  Start Eclipse, then select Help > Install New Software -> Add, in the top-right corner  In the Add Repository  Enter "ADT Plugin" for the Name  Copy for location ssl.google.com/android/eclipse/ ssl.google.com/android/eclipse/ ssl.google.com/android/eclipse/

 In the Available Software dialog  Select the checkbox next to Developer Tools and click Next  In the next window, you'll see a list of the tools to be downloaded  Click Next  Read and accept the license agreements  Then click Finish  Restart Eclipse

Live Demo

How to Create a AVD?

 To create virtual device  Open Eclipse -> Window -> ADV Manager  Open the Android Virtual Device manager  Add new device  With the Android OS version needed  Why need AVD?  To test your app before deployment to a phone  To test on different versions of Android OS  To find and correct simple mistakes

 Create new AVD

 Give it some name  Better add the OS version  Add SD card sieze  Select OS version  You are done!

Two ways of creating

 How to create a PhoneGap Project?  Create an android project  File -> New -> Android Project  In the root directory of the project, create two new directories  /libs and /assets/www  Copy phonegap.js from your PhoneGap download earlier to /assets/www  Create an index.html file in /assets/www  Copy phonegap.jar from your PhoneGap download earlier to /libs

 Copy xml folder from your PhoneGap download to /res  Set the build path of the phonegap.jar  Right click on the /libs folder  Go to Build Paths/ -> Configure Build Paths.  In the Libraries tab, add phonegap jar to the Project

 Make a few adjustments to the project's main Java file  Change the class's extend from Activity to DroidGap  Replace the setContentView() line with super.loadUrl("file:///android_asset/www/index. html");  Add import com.phonegap.*  Remove import android.app.Activity

 Right click on AndroidManifest.xml and select Open With > Text Editor  You should edit the xml  By adding new elements  By editing existing elements  You can see how the final AndroidManifest.xml file should look like 

 This is not so pleasing, right?  Hopefully there is an easier way  Using MDS AppLaud PhoneGap Eclipse Plugin  How to install it?  Open Eclipse  Go to Help -> Install New Software -> Click Add  Like with the ADT plugin  For location type: web-development-with-phonegap/tags/r1.2/download web-development-with-phonegap/tags/r1.2/download web-development-with-phonegap/tags/r1.2/download

 After the plugin is installed and ready to go  A PhoneGap icon should be displayed in the toolbar  After than the creation of new project is straight-forward  With AppLaud plugin you can select to include jQuery or Sencha

Live Demo

 Lets make our "Hello World, PhoneGap!" application  Till now we have an empty PhoneGap project  All we need to do is to edit the index.html file  Created by us  Located in /assets/www  This is the Entry point of our Application

 Hello World, PhoneGap!  Open the index.html and copy the following <html><head> First PhoneGap Application First PhoneGap Application <head><body> Hello PhoneGap Hello PhoneGap </body></html>  Go to Build -> Run as Android Application  The emulator should start  And the app run!

Live Demo

Questions?