J A D E T U TO R I A L
|
|
|
- Marcus Lawson
- 10 years ago
- Views:
Transcription
1 J A D E T U TO R I A L J A D E P R O G R A M M I N G F O R A N D R O I D USAGE RESTRICTED ACCORDING TO LICENSE AGREEMENT. last update: 14 June JADE Authors: Giovanni Caire (Telecom Italia S.p.A.) Giovanni Iavarone (Telecom Italia S.p.A.) Michele Izzo (Telecom Italia S.p.A.) Kevin Heffner (PEGASUS SIMULATION) JADE - Java Agent DEvelopment Framework is a framework to develop multi-agent systems in compliance with the FIPA specifications. JADE successfully passed the 1 st FIPA interoperability test in Seoul (Jan. 99) and the 2 nd FIPA interoperability test in London (Apr. 01). Copyright (C) 2000 CSELT S.p.A. (C) 2001 TILab S.p.A. (C) 2002 TILab S.p.A. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 2.1 of the License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA , USA. Page 1
2 TABLE OF CONTENTS 1 INTRODUCTION 3 2 INSTALLING AND RUNNING THE CHAT PLATFORM Downloading the Chat platform software Starting the Chat Server Starting Standard Chat clients Installing and Starting the Android Chat Client 7 3 BUILDING THE ANDROID CHAT CLIENT WITH ECLIPSE Creating the Android Chat client Project Copying Android Chat client sources in the project Running the project 14 4 HOW THE CHAT APPLICATION WORKS Application structure Resources Classes Starting JADE and creating agents Binding to the service Starting a JADE split Container Starting an Agent GUI components to Agent interactions Agent to GUI components interactions 19 Page 2
3 1 INTRODUCTION This document describes how to create JADE-based applications running on the Android Operating System. The reader is assumed to be already familiar with both JADE, Android programming and the Eclipse development environment that is typically used to create Android applications. If this is not the case we do recommend the following documents before going ahead. JADE Programming tutorial ( JADE Administration guide ( Android Tutorial ( Though applications intended to run in an Android environment are fully written in Java, the application model is quite different with respect to that of normal Java applications. In order to meet Android requirements and specificities an ad-hoc version of JADE (that will be referred to as JadeAndroid) has been created. JadeAndroid is directly available for download as a jar archive in the download area of the JADE web site. People interested in modifying or recompiling it should download the JADE sources plus the LEAP Add-on and follow the instructions included in the LEAP User Guide. In order to show the main steps that are typically necessary to create a JADE-based Android application, this tutorial makes use of a minimal Chat platform whose complete sources are available for download at The tutorial is structured as follows: Section 2 presents the Chat platform and shows how to install and run it; Section 3 shows how to create and properly configure the Eclipse project where the Android Chat Client application can be built and customized; Section 4 goes into the internals of the Android Chat Client application (other non-android components of the Chat platform are out of the scope of this document) and highlights how to address typical issues such as activating an agent and making it interact with Android Activities. Page 3
4 2 INSTALLING AND RUNNING THE CHAT PLATFORM As depicted in Figure 1 the Chat platform described in this tutorial is composed of three modules: Android Chat Client This is an Android application that allows participating to the chat from an Android device. It includes an Android GUI and an agent managing the interactions with other components. Standard Chat Client This is a normal Java application that allows participating to the chat from a PC or any device supporting a standard JVM. It includes a SWING GUI and an agent managing the interactions with other components. Chat Server This is the platform Main Container with an agent (called ChatManagerAgent) on top that keeps track of all agents currently connected to the chat. Standard Chat Client GUI Android Chat Client GUI ChatClient Agent Android Chat Client AMS ChatManager Agent Main Container DF ChatClient Agent Standard Chat Client Network Figure 1. Chat Client-Server Platform components 2.1 Downloading the Chat platform software The Chat platform can be downloaded from the JADE web site at The distribution consists of two archives whose structure is described below. The chatstandard.zip file contains the following items: standard --build.xml ANT build file; --bin --startchatparticipant.bat DOS client startup file; --startchatparticipant.sh Unix client startup file; --startplatform.bat DOS Main Container + ChatManager startup file; --startplatform.sh Unix Main Container + ChatManager startup file; --lib --jade.jar JADE library; --chatontology.jar Chat Ontology classes; --chatstandard.jar Standard Chat client and ChatManager classes; Page 4
5 --src (Standard Chat client and ChatManager sources) The chatontology.jar contains precompiled classes implementing concepts, predicates and actions that must be known by agents in the system. These classes are packaged in a separate jar file since thy must be available in all modules. The chatstandard.jar file contains precompiled classes (but ontology ones) implementing the Standard Chat Client and Chat Manager Agent modules; The chatandroid.zip file contains the following items: android --build.xml ANT build file; --build.properties Build properties; --default.properties Android managed build properties; --local.properties Android managed configuration properties; --proguard.cfg Android managed configuration; --bin --chatclient.apk Android Chat client application; --libs --JadeAndroid.jar JadeAndroid library; --chatontology.jar Chat Ontology classes (same as in chatstandard.zip); --res (android gui resources) --src (android client sources) The chatclient.apk file is the Android Chat client application ready to be installed in an Android device. 2.2 Starting the Chat Server To launch the Chat Server (i.e. the Main Container with the Chat Manager agent on top) execute the following steps: 1. From a shell/dos-prompt move to the folder where you decompressed the chatstandard.zip archive and then down to standard/bin; 2. Run the startplatform.bat batch file for Windows or startplatform.sh for Linux. The RMA (Jade Remote Management Agent) GUI should appear as depicted in Figure 2. Page 5
6 Figure 2. The Main Container with the Chat Manager Agent 2.3 Starting Standard Chat clients To populate the chat you can run one or more client agents as follows: 1. From a shell/dos-prompt move to the folder where you decompressed the chatstandard.zip archive and then down to standard/bin; 2. Run the startchatparticipant.bat batch file for Windows or startchatparticipant.sh for Linux. The Standard Chat Client GUI should appear as depicted in Figure Insert a nickname and click OK. Page 6
7 Figure 3. The Standard Chat Client GUI 2.4 Installing and Starting the Android Chat Client To start the Chat Client on the Android emulator it is necessary to setup the Android SDK, create an AVD with at least an API level 10 (Android 2.3.3) and run the emulator. Alternatively, if you have a real android device, be sure the appropriate drivers where installed and connect it to your computer via data cable (usually USB). NOTE If you use a real device, remember that the Android Chat Client will have to connect to the Main Container. Therefore be sure your device is configured so that it is possible to open a TCP connection with the PC where the Main Container is running over either a LAN or the Internet. How performing the above operations is out of the scope of this tutorial. Refer to the Android documentation for more details. At this point install the Chat Client on your Android emulator/device as follows: 1. From a shell/dos-prompt move to the folder where you decompressed the chatandroid.zip archive and then down to android/bin; 2. Run the android SDK command; adb install chatclient.apk A new Application should appear on your device called Jade Chat as shown in Figure 4. Page 7
8 Figure 4. The applications list on the android emulator Click on the Jade Chat icon to start the Chat Client. The screen depicted in Figure 5 should appear. Figure 5. The Android Chat Client Login form If you are using a real device, before entering a nickname, you typically need to setup your application with Main Container parameters (host and port). In order to do that click on the Menu button and select settings. Then enter the Main Container host and port asdepicted in Figure 6. Page 8
9 Figure 6. The Configuration form Having inserted your nick name, you can start to chat. Figure 7. The chat form Page 9
10 In order to see the list of users currently participating to the chat, click on the Menu button and select the participants menu item. Figure 8. The participants list Page 10
11 3 BUILDING THE ANDROID CHAT CLIENT WITH ECLIPSE In this section we describe how to setup the Eclipse project to compile and modify the code of the Android Chat client application. As usual we assume that the Android Developer Toolkit (ADT) plugin has already been installed into the Eclipse IDE and a target Android Virtual Device (AVD) with at least platform (API 10) has been defined. NOTE 1 - In previous section you already installed the Android Chat Client application in your Android Emulator/device. Before going on in this section it is suggested to uninstall it. This is because, since in this section the application will be recompiled in your local environment, very likely the signature of the resulting APK file will be different from that of the chatclient.apk included in the distribution package. If this is the case, the installation will fail. In order to uninstall the Android Chat Client application, perform the following steps: 1. From a DOS-shell prompt, move to the folder where you decompressed the chatandroid.zip archive and then go to android/bin; 2. Run the android SDK command; adb uninstall chat.client.gui NOTE 2 - Some screenshots may be slightly different depending on the versions of Eclipse and ADT. Those included in this document have been generated using Eclipse Indigo Service Release 1 and the Android Development Toolkit Creating the Android Chat client Project In Eclipse, select File > New > Other... ; The resulting dialog should have a folder labelled "Android" which should contain "Android Project" as depicted in Figure 9. Page 11
12 Figure 9. Creating an Android Project in Eclipse Select "Android Project" and click Next. Figure 10. Project general information setting step Type chatclient as Project Name, and flag (if not yet done) the Use default location checkbox to create the project in your default workspace. Then click Next. Page 12
13 Figure 11. SDK selection step Choose the Android platform SDK and click Next. Figure 12. Application infos Page 13
14 Enter chatclient (again) as Application name, chat.client.gui as Package Name and choose 10 (android 2.3.3) as Minimum SDK. Unflag the Create Activity checkbox (since we already have all the sources available, we don t want Eclipse to create new empty classes for us) and click Finish. 3.2 Copying Android Chat client sources in the project In previous step we created an empty Android Chat Client project. Now we have to fill it with the sources and other resources included in the demo distribution package. To do that copy the content of the android folder in the chatandroid.zip archive, to the folder chatclient created by Eclipse in your eclipse workspace. Overwrite all existing files. In Eclipse refresh (press F5) your project three and verify that you get a structure similar to that depicted in Figure. Figure 13. Android Chat Client project structure 3.3 Running the project At this point we are ready to compile (if the Build Automatically option is selected Eclipse already did that in background) and run the Android Chat Client. First of all be sure the Chat Server is up and running on your PC. If this is not the case start it as described in section 2.2. Then, from the Eclipse Package Explorer, right-click on the chatclient project root folder and choose Run as Android Application Page 14
15 4 HOW THE CHAT APPLICATION WORKS In this section the internal workings of the Android Chat Client application are described. First the application structure briefly is presented. Then we focus on JADE-Android specific aspects and in particular on: - how to start the JADE runtime and to create agents on it; - how to implement interactions between user interface classes and agents in both directions. On the other hand, how the Chat Client application uses the Android API and interacts with the framework is outside the scope of this tutorial. 4.1 Application structure Resources The user interface consists of four screens: the login screen, the configuration screen, the effective chat screen and an information screen that shows the list of the people currently participating to the chat. Those screens were defined in android using the following resources: login layout (see Figure 5); configuration layout (see Figure 6); chat layout (see Figure 7); participants list layout (see Figure 8); setting menu activated from the login layout; chat options menu activated from the chat layout; and string definition file; Those files are located in the res folder of the android project according to the structure below: chatclient/ - src/ - res/ - layout/ - main.xml - chat.xml - participant.xml - participants.xml - settings.xml - menu/ - main_menu.xml - chat_menu.xml - values/ - strings.xml The login screen defined in main.xml layout consists of an EditText component used to enter a nickname and a Button used to log into the chat application. To complete the screen functionalities we need to define a menu, named main_menu.xml with additional options to access the configuration screen and to exit the application. Page 15
16 The chat layout defined in chat.xml is composed of a ScrollView component with a TextView inside that shows the messages exchanged in the chat. In the bottom part of the layout two controls are located: an EditText and a Button to allow the user to write and send messages. From the chat screen it is possible to show the list of participants or clear the messages received by means of the actions defined in the chat_menu.xml. The participants list, located in the participants.xml layout, uses the native android layout used to show the contacts list and consists of a ListView inside a LinearLayout. Each line of the ListView is customized to show only the nickname of the participant. The line was customized in the participant.xml layout. The configuration screen consists of two TextView used to insert the IP address and port of the Main Container. This is defined in the settings.xml layout. All the ids related strings are defined in the file string.xml Classes The application code is organized in two packages called chat.client.gui and chat.client.agent according to the following structure. chatclient --src --chat --gui --MainActivity.java --ChatActivity.java --ChatApplication.java --ParticipantsActivity.java --SettingsActivity.java --agent --ChatClientAgent.java --ChatClientInterface.java -- AndroidManifest.xml The chat.client.gui package contains Android related classes such as the Application class and Activity classes. The chat.client.agent package contains the class of the Chat Client Agent and the interface that it provides to the GUI components. As usual for Android applications the AndroidManifest.xml defines the application functionalities within the Android OS. Page 16
17 4.2 Starting JADE and creating agents Consistent with the Android architecture, the JADE runtime is wrapped by an Android service. More specifically, the jadeandroid.jar library includes two service classes jade.android.runtimeservice and jade.android.microruntimeservice that wrap a full container and a split container, respectively. In this tutorial we use a split container that, in general, is the suggested approach when working with mobile devices (see the LEAP User Guide for more details). The MicroRuntimeService is declared in the Android manifest as below. <application... android:name="chatapplication"> <service android:name="jade.android.microruntimeservice" /> </application> Binding to the service The first operation to activate the JADE runtime from an Android Activity is to bind to the MicroRuntimeService. As a result a jade.android.microruntimeservicebinder object is retrieved such that it will be possible to perform all JADE management operations. The code below (taken from the startchat() method of the chat.client.gui.mainactivity class) shows how this is done. serviceconnection = new ServiceConnection() { public void onserviceconnected(componentname classname, IBinder service) { // Bind successful microruntimeservicebinder = (MicroRuntimeServiceBinder) service;... }; }; public void onservicedisconnected(componentname classname) { // Bind unsuccessful microruntimeservicebinder = null; } bindservice(new Intent(getApplicationContext(), MicroRuntimeService.class), serviceconnection, Context.BIND_AUTO_CREATE); Starting a JADE split Container Having retrieved the MicroRuntimeServiceBinder object it is now possible to start a JADE Split Container as shown in the code snipped below (taken from the startcontainer() method of the chat.client.gui.mainactivity class). Properties pp = new Properties(); pp.setproperty(profile.main_host, host); pp.setproperty(profile.main_port, port); pp.setproperty(profile.jvm, Profile.ANDROID); microruntimeservicebinder.startagentcontainer(pp, new RuntimeCallback<Void>() public void onsuccess(void thisisnull) { // Split container startup successful Page 17
18 }... } public void onfailure(throwable throwable) { // Split container startup error } As usual the host and port where the Main Container is running (as well as other configuration options) must be specified in a Properties object. According to the Android philosophy all operations are asynchronous and the result is made available by means of a jade.android.runtimecallback object Starting an Agent Once the JADE runtime is up and running it is possible to start the Chat Client Agent on it as shown in the code snippet below (taken from the startagent() method of the chat.client.gui.mainactivity class) microruntimeservicebinder.startagent(nickname, ChatClientAgent.class.getName(), new Object[] { getapplicationcontext() }, new RuntimeCallback<Void>() public void onsuccess(void thisisnull) { // Agent successfully started... } } public void onfailure(throwable throwable) { // Agent startup error... } Note that the ApplicationContext is passed to the agent as argument. This will allow the agent to access Android API when needed (see for instance section 4.4). 4.3 GUI components to Agent interactions The cleanest way to implement interactions between GUI components (mainly Android Activities) and the agent is to exploit the Object-to-Agent (O2A for short) interface mechanism introduced in version of JADE. This allows an agent to expose one or more interfaces that can be retrieved by external components. External components can trigger agent tasks by invoking the methods of these interfaces and thus retrieve agent information and so on according to the requirements of the application. In the Chat Client application the Chat Client Agent exposes the ChatClientInterface as shown in the code snippet below: Page 18
19 public interface ChatClientInterface { public void handlespoken(string s); public String[] getparticipantnames(); } The handlespoken() method is used in the ChatActivity to make the agent forward a chatted message to all chat participants. The getparticipantnames() is used in the ParticipantsActivity to show the list of people currently participating to the chat. The following line, taken from the agent setup() method, shows how the Chat Client Agent exposes the O2A interface described above. registero2ainterface(chatclientinterface.class, this); Similarly the following line, taken from the oncreate() method of the ChatActivity, shows how GUI components can retrieve the O2A interface exposed by the Chat Client Agent. chatclientif = MicroRuntime.getAgent(nickname).getO2AInterface(ChatClientInterface.class); When the user types a message and clicks on the Send button of the ChatActivity the following code is triggered. String message = messagefield.gettext().tostring(); if (message!= null &&!message.equals("")) { chatclientif.handlespoken(message); messagefield.settext(""); } 4.4 Agent to GUI components interactions When working with JADE, it is often the case that an agent must proactively show some information in the GUI. In the Chat Client application this is the case, for instance, when a message chatted by another participant is received by the agent and must be shown in the ChatActivity. The suggested way to implement this kind of interaction is to exploit the mechanism that Android provides to allow different components to interact. This is based on broadcasting so called Intents that can be received by interested components. The code snippet below shows how the ChatClientAgent creates and broadcasts an Intent to notify the GUI that a message has been received. Intent broadcast = new Intent(); broadcast.setaction("jade.demo.chat.refresh_chat"); broadcast.putextra("sentence", speaker + ": " + sentence + "\n"); logger.info("sending broadcast " + broadcast.getaction()); context.sendbroadcast(broadcast); Where context is the field where the agent stored the ApplicationContext received as startup argument (see section 4.2.3). Page 19
20 The code snippets below show how the ChatActivity registers a receiver to intercept Intents carrying received sentences and handles them, respectively: myreceiver = new MyReceiver(); IntentFilter refreshchatfilter = new IntentFilter(); refreshchatfilter.addaction("jade.demo.chat.refresh_chat"); registerreceiver(myreceiver, refreshchatfilter); private class MyReceiver extends BroadcastReceiver { public void onreceive(context context, Intent intent) { String action = intent.getaction(); if (action.equalsignorecase("jade.demo.chat.refresh_chat")) { TextView chatfield = (TextView) findviewbyid(r.id.chattextview); chatfield.append(intent.getextras().getstring("sentence")); scrolldown(); } } The tutorial ends here. Feel free to use the demo software and modify it as you like. Have fun! Page 20
How to Create an Android Application using Eclipse on Windows 7
How to Create an Android Application using Eclipse on Windows 7 Kevin Gleason 11/11/11 This application note is design to teach the reader how to setup an Android Development Environment on a Windows 7
Android Application Development - Exam Sample
Android Application Development - Exam Sample 1 Which of these is not recommended in the Android Developer's Guide as a method of creating an individual View? a Create by extending the android.view.view
Running a Program on an AVD
Running a Program on an AVD Now that you have a project that builds an application, and an AVD with a system image compatible with the application s build target and API level requirements, you can run
Android Security Lab WS 2014/15 Lab 1: Android Application Programming
Saarland University Information Security & Cryptography Group Prof. Dr. Michael Backes saarland university computer science Android Security Lab WS 2014/15 M.Sc. Sven Bugiel Version 1.0 (October 6, 2014)
Developing In Eclipse, with ADT
Developing In Eclipse, with ADT Android Developers file://v:\android-sdk-windows\docs\guide\developing\eclipse-adt.html Page 1 of 12 Developing In Eclipse, with ADT The Android Development Tools (ADT)
Android Programming. Høgskolen i Telemark Telemark University College. Cuong Nguyen, 2013.06.18
Høgskolen i Telemark Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics Cuong Nguyen, 2013.06.18 Faculty of Technology, Postboks 203, Kjølnes ring
ID TECH UniMag Android SDK User Manual
ID TECH UniMag Android SDK User Manual 80110504-001-A 12/03/2010 Revision History Revision Description Date A Initial Release 12/03/2010 2 UniMag Android SDK User Manual Before using the ID TECH UniMag
OpenCV on Android Platforms
OpenCV on Android Platforms Marco Moltisanti Image Processing Lab http://iplab.dmi.unict.it [email protected] http://www.dmi.unict.it/~moltisanti Outline Intro System setup Write and build an Android
Installing the Android SDK
Installing the Android SDK To get started with development, we first need to set up and configure our PCs for working with Java, and the Android SDK. We ll be installing and configuring four packages today
Android Application Development: Hands- On. Dr. Jogesh K. Muppala [email protected]
Android Application Development: Hands- On Dr. Jogesh K. Muppala [email protected] Wi-Fi Access Wi-Fi Access Account Name: aadc201312 2 The Android Wave! 3 Hello, Android! Configure the Android SDK SDK
How to develop your own app
How to develop your own app It s important that everything on the hardware side and also on the software side of our Android-to-serial converter should be as simple as possible. We have the advantage that
Tutorial #1. Android Application Development Advanced Hello World App
Tutorial #1 Android Application Development Advanced Hello World App 1. Create a new Android Project 1. Open Eclipse 2. Click the menu File -> New -> Other. 3. Expand the Android folder and select Android
Mobile Application Development
Mobile Application Development (Android & ios) Tutorial Emirates Skills 2015 3/26/2015 1 What is Android? An open source Linux-based operating system intended for mobile computing platforms Includes a
Android Setup Phase 2
Android Setup Phase 2 Instructor: Trish Cornez CS260 Fall 2012 Phase 2: Install the Android Components In this phase you will add the Android components to the existing Java setup. This phase must be completed
ANDROID APPS DEVELOPMENT FOR MOBILE AND TABLET DEVICE (LEVEL I)
ANDROID APPS DEVELOPMENT FOR MOBILE AND TABLET DEVICE (LEVEL I) Who am I? Lo Chi Wing, Peter Lecture 1: Introduction to Android Development Email: [email protected] Facebook: http://www.facebook.com/peterlo111
Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3
Tutorial: Android Object API Application Development SAP Mobile Platform 2.3 DOCUMENT ID: DC01939-01-0230-01 LAST REVISED: March 2013 Copyright 2013 by Sybase, Inc. All rights reserved. This publication
Login with Amazon Getting Started Guide for Android. Version 2.0
Getting Started Guide for Android Version 2.0 Login with Amazon: Getting Started Guide for Android Copyright 2016 Amazon.com, Inc., or its affiliates. All rights reserved. Amazon and the Amazon logo are
Developing NFC Applications on the Android Platform. The Definitive Resource
Developing NFC Applications on the Android Platform The Definitive Resource Part 1 By Kyle Lampert Introduction This guide will use examples from Mac OS X, but the steps are easily adaptable for modern
Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3 SP02
Tutorial: Android Object API Application Development SAP Mobile Platform 2.3 SP02 DOCUMENT ID: DC01939-01-0232-01 LAST REVISED: May 2013 Copyright 2013 by Sybase, Inc. All rights reserved. This publication
Android Environment SDK
Part 2-a Android Environment SDK Victor Matos Cleveland State University Notes are based on: Android Developers http://developer.android.com/index.html 1 2A. Android Environment: Eclipse & ADT The Android
Android Development. Marc Mc Loughlin
Android Development Marc Mc Loughlin Android Development Android Developer Website:h:p://developer.android.com/ Dev Guide Reference Resources Video / Blog SeCng up the SDK h:p://developer.android.com/sdk/
Introduction to Android Programming (CS5248 Fall 2015)
Introduction to Android Programming (CS5248 Fall 2015) Aditya Kulkarni ([email protected]) August 26, 2015 *Based on slides from Paresh Mayami (Google Inc.) Contents Introduction Android
Android, Bluetooth and MIAC
Android, Bluetooth and MIAC by Ben Rowland, June 2012 Abstract Discover how easy it is to use TCP network communications to link together high level systems. This article demonstrates techniques to pass
Tutorial: Android Object API Application Development. Sybase Unwired Platform 2.2 SP02
Tutorial: Android Object API Application Development Sybase Unwired Platform 2.2 SP02 DOCUMENT ID: DC01734-01-0222-01 LAST REVISED: January 2013 Copyright 2013 by Sybase, Inc. All rights reserved. This
Lab 0 (Setting up your Development Environment) Week 1
ECE155: Engineering Design with Embedded Systems Winter 2013 Lab 0 (Setting up your Development Environment) Week 1 Prepared by Kirill Morozov version 1.2 1 Objectives In this lab, you ll familiarize yourself
Android Tutorial. Larry Walters OOSE Fall 2011
Android Tutorial Larry Walters OOSE Fall 2011 References This tutorial is a brief overview of some major concepts Android is much richer and more complex Developer s Guide http://developer.android.com/guide/index.html
Android Programming: Installation, Setup, and Getting Started
2012 Marty Hall Android Programming: Installation, Setup, and Getting Started Originals of Slides and Source Code for Examples: http://www.coreservlets.com/android-tutorial/ Customized Java EE Training:
Tutorial on Basic Android Setup
Tutorial on Basic Android Setup EE368/CS232 Digital Image Processing, Spring 2015 Windows Version Introduction In this tutorial, we will learn how to set up the Android software development environment
Jordan Jozwiak November 13, 2011
Jordan Jozwiak November 13, 2011 Agenda Why Android? Application framework Getting started UI and widgets Application distribution External libraries Demo Why Android? Why Android? Open source That means
TUTORIAL ECLIPSE CLASSIC VERSION: 3.7.2 ON SETTING UP OPENERP 6.1 SOURCE CODE UNDER WINDOWS PLATFORM. by Pir Khurram Rashdi
TUTORIAL ON SETTING UP OPENERP 6.1 SOURCE CODE IN ECLIPSE CLASSIC VERSION: 3.7.2 UNDER WINDOWS PLATFORM by Pir Khurram Rashdi Web: http://www.linkedin.com/in/khurramrashdi Email: [email protected] By
Android Environment SDK
Part 2-a Android Environment SDK Victor Matos Cleveland State University Notes are based on: Android Developers http://developer.android.com/index.html 1 Android Environment: Eclipse & ADT The Android
Installation Guidelines (MySQL database & Archivists Toolkit client)
Installation Guidelines (MySQL database & Archivists Toolkit client) Understanding the Toolkit Architecture The Archivists Toolkit requires both a client and database to function. The client is installed
Getting Started: Creating a Simple App
Getting Started: Creating a Simple App What You will Learn: Setting up your development environment Creating a simple app Personalizing your app Running your app on an emulator The goal of this hour is
Android Development Setup [Revision Date: 02/16/11]
Android Development Setup [Revision Date: 02/16/11] 0. Java : Go to the URL below to access the Java SE Download page: http://www.oracle.com/technetwork/java/javase/downloads/index.html Select Java Platform,
Eclipse installation, configuration and operation
Eclipse installation, configuration and operation This document aims to walk through the procedures to setup eclipse on different platforms for java programming and to load in the course libraries for
Getting Started with Android Development
Getting Started with Android Development By Steven Castellucci (v1.1, January 2015) You don't always need to be in the PRISM lab to work on your 4443 assignments. Working on your own computer is convenient
Zanibal Plug-in For Microsoft Outlook Installation & User Guide Version 1.1
Zanibal Plug-in For Microsoft Outlook Installation & User Guide Version 1.1 Zanibal LLC Phone: +1-408-887-0480, +234-1-813-1744 Email: [email protected] www.zanibal.com Copyright 2012, Zanibal LLC. All
Android: Setup Hello, World: Android Edition. due by noon ET on Wed 2/22. Ingredients.
Android: Setup Hello, World: Android Edition due by noon ET on Wed 2/22 Ingredients. Android Development Tools Plugin for Eclipse Android Software Development Kit Eclipse Java Help. Help is available throughout
Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release 12.0.3.0.0
Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release 12.0.3.0.0 Part No. E52543-01 April 2014 Oracle Financial Services Software Limited Oracle Park Off Western Express Highway
directory to "d:\myproject\android". Hereafter, I shall denote the android installed directory as
1 of 6 2011-03-01 12:16 AM yet another insignificant programming notes... HOME Android SDK 2.2 How to Install and Get Started Introduction Android is a mobile operating system developed by Google, which
Informatics for Integrating Biology & the Bedside. i2b2 Workbench Developer s Guide. Document Version: 1.0 i2b2 Software Release: 1.3.
Informatics for Integrating Biology & the Bedside i2b2 Workbench Developer s Guide Document Version: 1.0 i2b2 Software Release: 1.3.2 Table of Contents About this Guide iii Prerequisites 1 Downloads 1
Homework 9 Android App for Weather Forecast
1. Objectives Homework 9 Android App for Weather Forecast Become familiar with Android Studio, Android App development and Facebook SDK for Android. Build a good-looking Android app using the Android SDK.
-Android 2.3 is the most used version of Android on the market today with almost 60% of all Android devices running 2.3 Gingerbread -Winner of
1 2 3 -Android 2.3 is the most used version of Android on the market today with almost 60% of all Android devices running 2.3 Gingerbread -Winner of Internet Telephony Magazine s 2012 Product of the Year
Arduino & Android. A How to on interfacing these two devices. Bryant Tram
Arduino & Android A How to on interfacing these two devices Bryant Tram Contents 1 Overview... 2 2 Other Readings... 2 1. Android Debug Bridge -... 2 2. MicroBridge... 2 3. YouTube tutorial video series
The "Eclipse Classic" version is recommended. Otherwise, a Java or RCP version of Eclipse is recommended.
Installing the SDK This page describes how to install the Android SDK and set up your development environment for the first time. If you encounter any problems during installation, see the Troubleshooting
TomTom PRO 82xx PRO.connect developer guide
TomTom PRO 82xx PRO.connect developer guide Contents Introduction 3 Preconditions 4 Establishing a connection 5 Preparations on Windows... 5 Preparations on Linux... 5 Connecting your TomTom PRO 82xx device
IOIO for Android Beginners Guide Introduction
IOIO for Android Beginners Guide Introduction This is the beginners guide for the IOIO for Android board and is intended for users that have never written an Android app. The goal of this tutorial is to
Programming with Android: SDK install and initial setup. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna SDK and initial setup: Outline Ø Today: How
Fahim Uddin http://fahim.cooperativecorner.com [email protected]. 1. Java SDK
PREPARING YOUR MACHINES WITH NECESSARY TOOLS FOR ANDROID DEVELOPMENT SEPTEMBER, 2012 Fahim Uddin http://fahim.cooperativecorner.com [email protected] Android SDK makes use of the Java SE
Mocean Android SDK Developer Guide
Mocean Android SDK Developer Guide For Android SDK Version 3.2 136 Baxter St, New York, NY 10013 Page 1 Table of Contents Table of Contents... 2 Overview... 3 Section 1 Setup... 3 What changed in 3.2:...
SDK Code Examples Version 2.4.2
Version 2.4.2 This edition of SDK Code Examples refers to version 2.4.2 of. This document created or updated on February 27, 2014. Please send your comments and suggestions to: Black Duck Software, Incorporated
Android Basics. Xin Yang 2016-05-06
Android Basics Xin Yang 2016-05-06 1 Outline of Lectures Lecture 1 (45mins) Android Basics Programming environment Components of an Android app Activity, lifecycle, intent Android anatomy Lecture 2 (45mins)
Advantages. manage port forwarding, set breakpoints, and view thread and process information directly
Part 2 a Android Environment SDK Victor Matos Cleveland State University Notes are based on: Android Developers http://developer.android.com/index.html 1 Android Environment: Eclipse & ADT The Android
Android Development Tutorial. Nikhil Yadav CSE40816/60816 - Pervasive Health Fall 2011
Android Development Tutorial Nikhil Yadav CSE40816/60816 - Pervasive Health Fall 2011 Database connections Local SQLite and remote access Outline Setting up the Android Development Environment (Windows)
Basic Android Setup. 2014 Windows Version
Basic Android Setup 2014 Windows Version Introduction In this tutorial, we will learn how to set up the Android software development environment and how to implement image processing operations on an Android
l What is Android? l Getting Started l The Emulator l Hello World l ADB l Text to Speech l Other APIs (camera, bitmap, etc)
today l What is Android? l Getting Started l The Emulator l Hello World l ADB l Text to Speech l Other APIs (camera, bitmap, etc) l Other: Signing Apps, SVN l Discussion and Questions introduction to android
Hello World. by Elliot Khazon
Hello World by Elliot Khazon Prerequisites JAVA SDK 1.5 or 1.6 Windows XP (32-bit) or Vista (32- or 64-bit) 1 + more Gig of memory 1.7 Ghz+ CPU Tools Eclipse IDE 3.4 or 3.5 SDK starter package Installation
INTRODUCTION TO ANDROID CSCI 4448/5448: OBJECT-ORIENTED ANALYSIS & DESIGN LECTURE 11 02/15/2011
INTRODUCTION TO ANDROID CSCI 4448/5448: OBJECT-ORIENTED ANALYSIS & DESIGN LECTURE 11 02/15/2011 1 Goals of the Lecture Present an introduction to the Android Framework Coverage of the framework will be
How To Run A Hello World On Android 4.3.3 (Jdk) On A Microsoft Ds.Io (Windows) Or Android 2.7.3 Or Android 3.5.3 On A Pc Or Android 4 (
Developing Android applications in Windows Below you will find information about the components needed for developing Android applications and other (optional) software needed to connect to the institution
With a single download, the ADT Bundle includes everything you need to begin developing apps:
Get the Android SDK The Android SDK provides you the API libraries and developer tools necessary to build, test, and debug apps for Android. The ADT bundle includes the essential Android SDK components
Introduction to Android Development
2013 Introduction to Android Development Keshav Bahadoor An basic guide to setting up and building native Android applications Science Technology Workshop & Exposition University of Nigeria, Nsukka Keshav
Application Development Setup Guide
epos-print SDK for Android Application Development Setup Guide M00048500 Rev. A Cautions No part of this document may be reproduced, stored in a retrieval system, or transmitted in any form or by any means,
EVALUATION ONLY. WA2088 WebSphere Application Server 8.5 Administration on Windows. Student Labs. Web Age Solutions Inc.
WA2088 WebSphere Application Server 8.5 Administration on Windows Student Labs Web Age Solutions Inc. Copyright 2013 Web Age Solutions Inc. 1 Table of Contents Directory Paths Used in Labs...3 Lab Notes...4
Studio 5.0 User s Guide
Studio 5.0 User s Guide wls-ug-administrator-20060728-05 Revised 8/8/06 ii Copyright 2006 by Wavelink Corporation All rights reserved. Wavelink Corporation 6985 South Union Park Avenue, Suite 335 Midvale,
Android Development. http://developer.android.com/develop/ 吳 俊 興 國 立 高 雄 大 學 資 訊 工 程 學 系
Android Development http://developer.android.com/develop/ 吳 俊 興 國 立 高 雄 大 學 資 訊 工 程 學 系 Android 3D 1. Design 2. Develop Training API Guides Reference 3. Distribute 2 Development Training Get Started Building
Altaro Hyper-V Backup - Getting Started
Altaro Hyper-V Backup - Getting Started System Requirements Supported Host Operating Systems: Altaro Hyper-V Backup: o Windows 2008 R2 (all editions) o Windows 2008 R2 SP1 o Windows Hyper-V Server 2008
Intel Integrated Native Developer Experience (INDE): IDE Integration for Android*
Intel Integrated Native Developer Experience (INDE): IDE Integration for Android* 1.5.8 Overview IDE Integration for Android provides productivity-oriented design, coding, and debugging tools for applications
Specialized Android APP Development Program with Java (SAADPJ) Duration 2 months
Specialized Android APP Development Program with Java (SAADPJ) Duration 2 months Our program is a practical knowledge oriented program aimed at making innovative and attractive applications for mobile
App Development for Smart Devices. Lec #2: Android Tools, Building Applications, and Activities
App Development for Smart Devices CS 495/595 - Fall 2011 Lec #2: Android Tools, Building Applications, and Activities Tamer Nadeem Dept. of Computer Science Objective Understand Android Tools Setup Android
Tutorial: BlackBerry Object API Application Development. Sybase Unwired Platform 2.2 SP04
Tutorial: BlackBerry Object API Application Development Sybase Unwired Platform 2.2 SP04 DOCUMENT ID: DC01214-01-0224-01 LAST REVISED: May 2013 Copyright 2013 by Sybase, Inc. All rights reserved. This
IBM TRIRIGA Anywhere Version 10 Release 4. Installing a development environment
IBM TRIRIGA Anywhere Version 10 Release 4 Installing a development environment Note Before using this information and the product it supports, read the information in Notices on page 9. This edition applies
VPN: Virtual Private Network Setup Instructions
VPN: Virtual Private Network Setup Instructions Virtual Private Network (VPN): For e-journals and web-based databases, plus applications like EndNote's Online Search (formerly "Connect") and business systems.
Getting started with 2c8 plugin for Microsoft Sharepoint Server 2010
Getting started with 2c8 plugin for Microsoft Sharepoint Server 2010... 1 Introduction... 1 Adding the Content Management Interoperability Services (CMIS) connector... 1 Installing the SharePoint 2010
Appium mobile test automation
Appium mobile test automation for Google Android and Apple ios Last updated: 4 January 2016 Pepgo Limited, 71-75 Shelton Street, Covent Garden, London, WC2H 9JQ, United Kingdom Contents About this document...
SourceAnywhere Service Configurator can be launched from Start -> All Programs -> Dynamsoft SourceAnywhere Server.
Contents For Administrators... 3 Set up SourceAnywhere... 3 SourceAnywhere Service Configurator... 3 Start Service... 3 IP & Port... 3 SQL Connection... 4 SourceAnywhere Server Manager... 4 Add User...
Witango Application Server 6. Installation Guide for OS X
Witango Application Server 6 Installation Guide for OS X January 2011 Tronics Software LLC 503 Mountain Ave. Gillette, NJ 07933 USA Telephone: (570) 647 4370 Email: [email protected] Web: www.witango.com
Installation Guide of the Change Management API Reference Implementation
Installation Guide of the Change Management API Reference Implementation Cm Expert Group CM-API-RI_USERS_GUIDE.0.1.doc Copyright 2008 Vodafone. All Rights Reserved. Use is subject to license terms. CM-API-RI_USERS_GUIDE.0.1.doc
Practice Fusion API Client Installation Guide for Windows
Practice Fusion API Client Installation Guide for Windows Quickly and easily connect your Results Information System with Practice Fusion s Electronic Health Record (EHR) System Table of Contents Introduction
MS SQL Express installation and usage with PHMI projects
MS SQL Express installation and usage with PHMI projects Introduction This note describes the use of the Microsoft SQL Express 2008 database server in combination with Premium HMI projects running on Win31/64
S. Bouzefrane. How to set up the Java Card development environment under Windows? Samia Bouzefrane. [email protected]
How to set up the Java Card development environment under Windows? Samia Bouzefrane [email protected] 1 Java Card Classic Edition- August 2012 I. Development tools I.1. Hardware 1. A Java Card platform
Frameworks & Android. Programmeertechnieken, Tim Cocx
Frameworks & Android Programmeertechnieken, Tim Cocx Discover thediscover world atthe Leiden world University at Leiden University Software maken is hergebruiken The majority of programming activities
How To Develop An Android App On An Android Device
Lesson 2 Android Development Tools = Eclipse + ADT + SDK Victor Matos Cleveland State University Portions of this page are reproduced from work created and shared by Googleand used according to terms described
Cisco Cius Development Guide Version 1.0 September 30, 2010
Cisco Cius Development Guide Version 1.0 September 30, 2010 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000 800 553-NETS
ADT Plugin for Eclipse
ADT Plugin for Eclipse Android Development Tools (ADT) is a plugin for the Eclipse IDE that is designed to give you a powerful, integrated environment in which to build Android applications. ADT extends
Python for Series 60 Platform
F O R U M N O K I A Getting Started with Python for Series 60 Platform Version 1.2; September 28, 2005 Python for Series 60 Platform Copyright 2005 Nokia Corporation. All rights reserved. Nokia and Nokia
Moxa Device Manager 2.3 User s Manual
User s Manual Third Edition, March 2011 www.moxa.com/product 2011 Moxa Inc. All rights reserved. User s Manual The software described in this manual is furnished under a license agreement and may be used
Building OWASP ZAP Using Eclipse IDE
Building OWASP ZAP Using Eclipse IDE for Java Pen-Testers Author: Raul Siles (raul @ taddong.com) Taddong www.taddong.com Version: 1.0 Date: August 10, 2011 This brief guide details the process required
Android Application Development
Android Application Development Self Study Self Study Guide Content: Course Prerequisite Course Content Android SDK Lab Installation Guide Start Training Be Certified Exam sample Course Prerequisite The
Developing for MSI Android Devices
Android Application Development Enterprise Features October 2013 Developing for MSI Android Devices Majority is the same as developing for any Android device Fully compatible with Android SDK We test using
Chapter 2 Getting Started
Welcome to Android Chapter 2 Getting Started Android SDK contains: API Libraries Developer Tools Documentation Sample Code Best development environment is Eclipse with the Android Developer Tool (ADT)
Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows
Download and Installation Instructions for Android SDK and Android Development Tools (ADT) on Microsoft Windows Updated May, 2012 This document will describe how to download and install the Android SDK
Using the Eclipse Data Tools Platform with SQL Anywhere 10. A whitepaper from Sybase ianywhere
Using the Eclipse Data Tools Platform with SQL Anywhere 10 A whitepaper from Sybase ianywhere CONTENTS Introduction 3 Requirements 3 Before you begin 3 Downloading the Data Tools Platform 3 Starting the
Setup and Configuration Guide for Pathways Mobile Estimating
Setup and Configuration Guide for Pathways Mobile Estimating Setup and Configuration Guide for Pathways Mobile Estimating Copyright 2008 by CCC Information Services Inc. All rights reserved. No part of
060010702 Mobile Application Development 2014
Que 1: Short question answer. Unit 1: Introduction to Android and Development tools 1. What kind of tool is used to simulate Android application? 2. Can we use C++ language for Android application development?
UP L18 Enhanced MDM and Updated Email Protection Hands-On Lab
UP L18 Enhanced MDM and Updated Email Protection Hands-On Lab Description The Symantec App Center platform continues to expand it s offering with new enhanced support for native agent based device management
Programming with Android: SDK install and initial setup. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna SDK and initial setup: Outline Today: How to
How to Set Up Your PC for Android Application Development
Introduction Application Note How to Set Up Your PC for Android Application Development Supported Environments: Windows 7 (32/64 bit), Windows Vista (32/64 bit), Windows XP * This application note was
LICENSE4J FLOATING LICENSE SERVER USER GUIDE
LICENSE4J FLOATING LICENSE SERVER USER GUIDE VERSION 4.5.5 LICENSE4J www.license4j.com Table of Contents Getting Started... 2 Floating License Usage... 2 Installation... 4 Windows Installation... 4 Linux
WEARIT DEVELOPER DOCUMENTATION 0.2 preliminary release July 20 th, 2013
WEARIT DEVELOPER DOCUMENTATION 0.2 preliminary release July 20 th, 2013 The informations contained in this document are subject to change without notice and should not be construed as a commitment by Si14
