HERE SDK for Android. Developer's Guide. Hybrid Plus Version 2.1

Size: px
Start display at page:

Download "HERE SDK for Android. Developer's Guide. Hybrid Plus Version 2.1"

Transcription

1 HERE SDK for Android Developer's Guide Hybrid Plus Version 2.1

2 Contents 2 Contents Legal Notices...5 Document Information... 6 Service Support... 7 Chapter1:Overview... 8 What is the HERE SDK for Android?...9 Feature List... 9 Chapter2:Quick Start Creating a Simple Application Extending the Application Adding Route Calculation Adding Extruded Buildings Adding LiveSight Adding a LiveSight Radar Chapter3:User Guide Authenticating Applications Obfuscating Applications...38 Embedding the Map Service Maps...39 Gestures Map Schemes MapEngine Class Objects and Interaction Transit Positioning MapActivity Class... 81

3 Contents 3 Offline Maps (MapLoader) Shared Map Resources Traffic Information Extruded Buildings D Landmarks Custom Raster Tiles Specialized HERE Raster Tiles Venue Maps Places Geocoding and Reverse Geocoding Search and Discovery Custom Locations Directions Calculate routes Transit Routing Truck Routing Offline Routing Street-level Street-level Imagery Street-level Objects Turn-by-Turn Navigation Voice Instructions Traffic-aware Navigation LiveSight Starting and Stopping LiveSight Adding and Interacting with LiveSight Content Customizing LiveSight Chapter4:Supplemental Information Creating a Simple HERE SDK Application in Android Studio Compatibility Fragments Size Management...171

4 Contents 4 Development Tips Chapter5:API Reference

5 Legal Notices 5 Legal Notices 2014 HERE. All rights reserved. This material, including documentation and any related computer programs, is protected by copyright controlled by HERE. All rights are reserved. Copying, including reproducing, storing, adapting or translating, any or all of this material requires the prior written consent of HERE. This material also contains confidential information, which may not be disclosed to others without the prior written consent of HERE. Trademark Acknowledgements HERE and Nokia are trademarks or registered trademarks of Nokia Corporation in the United States and other countries. Other trade names are trademarks or registered trademarks of their owners. Disclaimer This content is provided "as-is" and without warranties of any kind, either express or implied, including, but not limited to, the implied warranties of merchantability, fitness for a particular purpose, satisfactory quality and non-infringement. Nokia does not warrant that the content is error free and Nokia does not warrant or make any representations regarding the quality, correctness, accuracy, or reliability of the content. You should therefore verify any information contained in the content before acting on it. To the furthest extent permitted by law, under no circumstances, including without limitation Nokia's negligence, shall Nokia be liable for any damages, including, without limitation, direct, special, indirect, punitive, consequential, exemplary and/ or incidental damages that result from the use or application of this content, even if Nokia or an authorized representative has been advised of the possibility of such damages.

6 Document Information Document Information Product Name: HERE SDK for Android Version: Hybrid Plus Version 2.1 Document Name: Id: 63abd Status: DRAFT Date: 2014-Dec-05, 16:13 (GMT) 6

7 Service Support Service Support If you need assistance with this or other HERE products, please contact your HERE representative or Technical Customer Support via at 7

8 Overview Chapter 1 Overview Topics: What is the HERE SDK for Android? The articles that follow introduce the HERE SDK for Android, explain essential concepts and describe the common features it Feature List supports. 8

9 Overview 9 What is the HERE SDK for Android? The HERE SDK for Android provides a set of programming interfaces that enable developers to build immersive, geographically-aware Android applications by leveraging a powerful and flexible mapping platform. Through this SDK, developers can add rich location features such as routing, interactive maps, and global place search to their applications. The powerful client-side HERE SDK for Android also includes a sophisticated engine for rendering map data and calculated routes. In addition to dynamically downloading map data, the SDK also supports offline maps using previously cached map data or downloaded map packages. Vector Maps The HERE SDK delivers vector-based map data, in contrast to most mapping SDKs that only provide APIs to display map data using raster tiles. With raster tiles, panning to a new location or moving to a new zoom level requires additional raster tiles must be downloaded, leading to a negative impact on application fluidity and the overall user experience. Vector map data used by the HERE SDK consists of many data layers that are rendered based on rules describing what to display and how to display it. This enables use cases typically not possible with raster tiles, such as: dynamically altering the look and style of the map (for example: changing to night mode) without downloading new map data zooming the map smoothly rather than in discrete zoom steps rotating the map while maintaining correct label and icon orientation tilting the map to show textured 3D landmarks Moreover, vector map data requires significantly less storage space than raster map tiles, enabling map data to be downloaded for offline use. The result is a powerful hybrid solution where map data can be downloaded over a wireless data connection as needed, or maps for countries and regions can be preloaded for later use, eliminating the need for an always-present wireless data connection. The HERE SDK uses vector data for all normal maps. Raster tiles are used when satellite, terrain, and custom maps are being displayed. Feature List The main features offered by the HERE SDK for Android are listed below:

10 Overview 10 Mapping Dynamically download vector maps for more than 190 countries in over 50 languages Preload maps for offline usage Map styles: normal street map, satellite map, transit map, and more Textured 3D landmarks Street level imagery Touch gestures (including pan, flick, pinch zoom, rotate, and tilt) Overlay objects on the map such as polylines, polygons, icons, and routes Overlay 3D map objects Overlay custom raster tiles on the map (for example, to display heat maps) Ability to render raster tiles and map objects interleaved within different map layers Venue maps Show real-time traffic flow and incidents 3D Extruded Buildings 3D Landmarks Transit object interaction Traffic object interaction Search Search through a broad set of geographical content, including 25 million streets, 200 million address points, and over 60 million categorized places across the globe Search for a specific place or explore by categories Get rich details for a Point of Interest (including images, ratings, reviews, and editorials) Perform geocoding and reverse geocoding lookups Offline places search, offline geocoding/reverse geocoding lookups Directions Get driving or pedestrian directions Public Transit directions for more than 950 cities in 44 countries Public Transit directions using online timetables for more than 400 cities Specify preferred route type (fastest/shortest) and attributes to avoid (toll roads, motorways, parks, and more) Alternate routes Offline route calculation Driving directions that take traffic into account Directions for commercial vehicles

11 Overview 11 Turn-by-turn Navigation: Online and offline turn-by-turn navigation Natural-sounding guidance instructions, such as "turn left at the gas station" and "at the next light, turn right" Audio or text-to-speech voices Approximate user coordinates to the nearest road or navigation route Approximate user tunnel position, even when there is no GPS signal Dynamic information including signposts, the driver's current street lane, and speed Realistic previews of certain junctions and lanes LiveSight: Track position of device in space and animate view accordingly Seamless transitions from Map to LiveSight and back again Gesture support allows the user to interact with content, custom gestures can also be defined Content transitions and interaction are animated using hardware acceleration "Radar" UI support, which provides the user with more context regarding their position relative to content Highly configurable LiveSight engine allows the user experience to be customized Other Features Custom Location search by using location attributes, proximity, area, or corridor radius Specialized raster tiles that show information for fleet vehicles and trucks Specialized raster tiles showing congestion toll zones and the typical traffic patterns for a given time of the week

12 Quick Start Chapter 2 Quick Start Topics: Creating a Simple Application Using the HERE SDK Extending the Simple Application Adding Route Calculation to the Simple Application Adding Tappable Extruded Buildings to the Simple Application Adding LiveSight Functionality to the Simple Application The articles in this section provide information to help you start using the HERE SDK for Android. 12

13 Quick Start 13 Creating a Simple Application Using the HERE SDK This tutorial provides instructions on how to create a simple application that uses the HERE SDK for Android to render a map on an Android device. With this application, users will be able to: Pan around the map to view different geographical regions Center the map on a specific part of the viewable area using standard Android single-tap gestures Zoom in and out using standard Android pinch-to-zoom, double-tap, or two-finger tap Rotate the map using standard Android two-finger rotate gestures Tilt the map using standard Android two-finger tilt gestures Note: This tutorial applies to Eclipse and Android Developer Tools. For information on how to perform the same tasks in Android Studio, refer to Creating a Simple HERE SDK Application in Android Studio on page 165. Development tasks for this basic application include: Create a new Eclipse project Add necessary resources, permissions and map fragment(s) to the project properties and application manifest Acquire credentials from HERE for accessing map services Initialize the map fragment such that a map instance is created and associated with the map fragment for rendering on the client device Note: The HERE Map Service must be embedded with the application. For more information on this requirement, see Embedding the Map Service on page 39. Create a New Eclipse Project The first stage of developing an application using the HERE SDK is to create a new project in Eclipse as follows: 1. From the Eclipse File menu, select New> Android Application Project to open the New Android App dialog (or click from the toolbar) 2. In the New Android Application dialogue, under Application Name, specify an appropriate application name (The remainder of this tutorial will refer the application name as HelloHEREMaps) 3. Under Project Name, specify an appropriate project name

14 Quick Start Under Package Name, specify an appropriate package name (For example, com.mapstutorial.helloheremaps. This is the package name that this tutorial will use) 5. Under Minimum Required SDK, select the lowest version of the Android SDK you wish to support. For this sample application, we will use Android Under Target SDK, select your target Android SDK version with API level 14 (Ice Cream Sandwich 4.0.1) or above 7. Click Next 8. Click Next to use the default icons 9. On the Create Activity dialog box, select Blank Activity and click Next 10. Click Finish Result: A new project will appear within the Eclipse Package Explorer, which will expand to show the location of the activity_main.xml file. The file itself will be opened in the main editor view, in Graphical Layout mode for adding and editing UI elements. Add HERE SDK Libraries to Your Project After creating the skeleton of your new application, add the HERE SDK resources as follows: 1. From the directory where you installed the HERE SDK, copy the contents of the HERE-sdk/libs/ folder, except HERE-sdk-javadoc.jar, to your project's libs/ folder. 2. In your Eclipse project's libs/ folder, right-click the HERE-sdk.jar file and select Build Path> Add to Build Path. 3. Optional: If you plan on extending this application with HERE Places functionality, add the googlegson library (release or a compatible version) into your project. One way to do this is to download the google-gson-*-release.zip file from unzip the ZIP archive, and copy the gson-*.jar (not gson-*-sources.jar or gson*-javadoc.jar) into your project libs/ folder, then right-click on it in Eclipse, and select Build Path> Add to Build Path. The google-gson library is required for all HERE Places operations. For more information on using HERE Places, please see Places on page 105. Result: Your project will be able to make use of APIs from the HERE SDK. Note: Performing these steps should also link Javadoc files to the SDK library. If Javadoc does not appear in Eclipse, please close and re-open your Eclipse project. If you would like to change the location of the docs folder, update thehere-sdk.jar.properties file in the libs folder to match the docs folder location. Edit AndroidManifest.xml With resources added to your project, the next stage of creating an application with the HERE SDK is to edit the project's AndroidManifest.xml file to specify Android permissions as follows: 1. From the Package Explorer, double-click your project's AndroidManifest.xml file to open it for editing.

15 Quick Start At the bottom of the editor view that displays the manifest, click the AndroidManifest.xml tab to switch the file's view to text editor mode. 3. Add the following markup beneath the <uses-sdk/> tag: <uses-permission android:name="android.permission.access_fine_location"/> <uses-permission android:name="android.permission.write_external_storage"/> <uses-permission android:name="android.permission.access_network_state"/> <uses-permission android:name="android.permission.change_network_state"/> <uses-permission android:name="android.permission.internet"/> <uses-permission android:name="android.permission.access_wifi_state"/> 4. Within the <application></application> block of tags, add the following markup directly beneath the <activity></activity> tag: <meta-data android:name="com.here.android.maps.appid" android:value="your APP ID"/> <meta-data android:name="com.here.android.maps.apptoken" android:value="your APP CODE"/> 5. Replace the YOUR APP ID and YOUR APP CODE strings with appropriate credentials for your application, which you can acquire by contacting your HERE account representative. Note: All users of the HERE SDK are required to register for a HERE App_Id and App_Code, and to specify those values in their Android manifest XML file. Failure to do so will result in blocked access to certain features and could lead to degradation in the quality of other services. 6. Within the same <application></application> section in your AndroidManifest.xml file, add the following lines: <service android:name="com.here.android.mpa.service.mapservice" android:label="heremapservice" android:process="global.here.map.service.v2" android:exported="true" > <intent-filter> <action android:name="com.here.android.mpa.service.mapservice" > </action> </intent-filter> </service> Result: Your application is now configured to use the minimum Android device permissions that are required by HERE Maps

16 Quick Start 16 Edit activity_main.xml Along with permissions and credentials, you must add an Android <fragment /> tag to set up the map fragment that your application activity will be associated with. In this section, we will display a text label (generated as part of the default new application) and a map right below label as follows: 1. From the Package Explorer, under the res/layout/ folder of your project, double-click the activity_main.xml file to open it for editing. 2. At the bottom of the editor view that displays the layout for MainActivity, click the activity_main.xml tab to switch the file's view to text editor mode. 3. Ensure that the XML file has <LinearLayout></LinearLayout> as its root element. Depending on your version of Eclipse, this may be a RelativeLayout instead. If that is the case, replace the contents of the file with the following: <LinearLayout xmlns:android=" xmlns:tools=" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:id="@+id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hello_world" tools:context=".mainactivity" /> </LinearLayout> 4. Add the following markup beneath the <TextView/> tag: <!-- Map Fragment embedded with the map object --> <fragment class="com.here.android.mpa.mapping.mapfragment" android:id="@+id/mapfragment" android:layout_width="match_parent" android:layout_height="match_parent"/> Result: When MapFragment is initialized, your application's MainActivity will contain a MapFragment UI element (with the ID mapfragment) that owns a Map object. Initializing the Map Fragment When you have defined the basic layout of the application and acquired necessary permissions, the final step is to initialize the instance of the MapFragment class, thus creating and associating a Map with the MapFragment declared in the activity_main.xml file: From the Package Explorer, under the src/ folder of your project, double-click the MainActivity.java file to open it for editing.

17 Quick Start 17 Revise the import statements and functional logic of the MainActivity to look like the following: package com.mapstutorial.helloheremaps; import android.app.activity; import android.os.bundle; import import import import com.here.android.mpa.common.geocoordinate; com.here.android.mpa.common.onengineinitlistener; com.here.android.mpa.mapping.map; com.here.android.mpa.mapping.mapfragment; public class MainActivity extends Activity { // map embedded in the map fragment private Map map = null; // map fragment embedded in this activity private MapFragment mapfragment = public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); // Search for the map fragment to finish setup by calling init(). mapfragment = (MapFragment)getFragmentManager().findFragmentById( R.id.mapfragment); mapfragment.init(new OnEngineInitListener() public void onengineinitializationcompleted( OnEngineInitListener.Error error) { if (error == OnEngineInitListener.Error.NONE) { // retrieve a reference of the map from the map fragment map = mapfragment.getmap(); // Set the map center to the Vancouver region (no animation) map.setcenter(new GeoCoordinate( , , 0.0), Map.Animation.NONE); // Set the zoom level to the average between min and max map.setzoomlevel( (map.getmaxzoomlevel() + map.getminzoomlevel()) / 2); else { System.out.println("ERROR: Cannot initialize Map Fragment"); ); Result: You can run your simple application by pressing the key combination Ctrl + F11 from within Eclipse (if prompted, run the project as an "Android Application"). The application will render a map retrieved from the HERE servers. When you are running your application on a device, make sure a dataconnection is enabled. See folder BasicMapSolution for a completed example. You will need to add your own App_Id and App_Code for this completed example to work.

18 Quick Start 18 Extending the Simple Application Beyond creating a basic application, you can extend your application with the use of features from the HERE SDK for Android. This tutorial introduces methods to change map attributes such as map center, tilt angle, orientation, daytime/nighttime map schemes, and zoom levels. Getting Started You can import the Android project from the BasicMapSolution folder as a starting point for this exercise. (Please note that MainActivity is changed to BasicMapActivity in this version of the project.) Note: The tasks presented on this page assume that you gave the name "HelloHEREMaps" to your Eclipse project and the name com.mapstutorial.helloheremaps to your application package. Add a "Go Home" Button This task introduces the following HERE SDK for Android class methods: com.here.android.mpa.mapping.map.setorientation() com.here.android.mpa.mapping.map.settilt() Within a map-based application, users can pan around the map to different regions, zoom in and out, even rotate or tilt the map itself. A user-friendly app might, in turn, offer users a UI element that allows them to reset the initial map view. Add a "Go Home" Button element to the HelloHEREMaps application as follows: 1. From the Package Explorer, double-click the HelloHEREMaps/res/values/strings.xml file to open it for editing. 2. At the bottom of the editor view that displays the string resources, click the strings.xml tab to switch the file's view to text editor mode. 3. Add the following line to the group of <string></string> tags: <string name="label_button_gohome">go Home</string> 4. From the Package Explorer, double-click the HelloHEREMaps/res/layout/activity_main.xml file to open it for editing.

19 Quick Start Add the following markup directly above the <fragment /> tag: <!-- UI element declaration for "Go Home" button --> <android.widget.button android:layout_width="wrap_content" android:layout_height="wrap_content" android:onclick="gohome" /> 6. From the Package Explorer, double-click the HelloHEREMaps/src/ com.mapstutorial.helloheremaps/mainactivity.java file to open it for editing. 7. Add the following lines to the import statements near the top of the source file: import android.view.view; import java.util.list; 8. Add the following method to the end of the class: // Functionality for taps of the "Go Home" button public void gohome(view view) { if (map!= null) { // Change map view to "home" coordinate and zoom level, plus // eliminate any rotation or tilt map.setcenter(new GeoCoordinate( , , 0.0), Map.Animation.NONE); map.setzoomlevel((map.getmaxzoomlevel() + map.getminzoomlevel()) / 2); map.setorientation(0); map.settilt(0); // Reset the map scheme to the initial scheme map.setmapscheme(initial_scheme); 9. Press the key combination Ctrl + F11 within Eclipse to run this extended basic HERE SDK for Android application. Result: Your HERE SDK for Android application displays a map centered initially on the Vancouver municipal region, plus a "Go Home" button near the top-left corner that allows users to reset the map to its initial view. Add a "Change Map Scheme" Button This task introduces the following HERE SDK for Android class methods: com.here.android.mpa.mapping.map.getmapscheme() com.here.android.mpa.mapping.map.getmapschemes() com.here.android.mpa.mapping.map.setmapscheme()

20 Quick Start 20 There are numerous map schemes available from HERE SDK for Android. You can add a UI element to your application that allows users to change the scheme of the map they are viewing. Add a "Change Map Scheme" Button element to the HelloHEREMaps application as follows: 1. From the Package Explorer, double-click the HelloHEREMaps/res/values/strings.xml file to open it for editing. 2. Add the following lines to the group of <string></string> tags: <string name="label_button_changescheme">change Map Scheme</string> 3. From the Package Explorer, double-click the HelloHEREMaps/res/layout/activity_main.xml file to open it for editing. 4. Add the following markup directly beneath the homebutton tag but above the <fragment /> tag: <!-- UI element declaration for "Change Map Scheme" button --> <android.widget.button android:id="@+id/schemebutton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/label_button_changescheme" android:onclick="changescheme" /> 5. From the Package Explorer, double-click the HelloHEREMaps/src/ com.mapstutorial.helloheremaps/mainactivity.java file to open it for editing. 6. Add the following to the import statements near the top of the source file: import java.util.list; 7. Add variable declarations for initial_scheme to the top of the MainActivity class, immediately beneath the declaration for map, as follows: public class MainActivity extends Activity { // map embedded in the map fragment private Map map = null; // map fragment embedded in this activity private MapFragment mapfragment = null; // Initial map scheme, initialized in oncreate() and accessed in gohome() private static String initial_scheme = public void oncreate(bundle savedinstancestate) {...

21 Quick Start Create function private void onmapfragmentinitializationcompleted() and move all the existing text within OnEngineInitListener's onengineinitializationcompleted() into it: private void onmapfragmentinitializationcompleted() { // retrieve a reference of the map from the map fragment map = mapfragment.getmap(); // Set the map center coordinate to the Vancouver region (no animation) map.setcenter(new GeoCoordinate( , , 0.0), Map.Animation.NONE); // Set the map zoom level to the average between min and max (no // animation) map.setzoomlevel((map.getmaxzoomlevel() + map.getminzoomlevel()) / 2); 9. Update the OnEngineInitListener's onengineinitializationcompleted() implementation as follows: mapfragment.init(new OnEngineInitListener() public void onengineinitializationcompleted(onengineinitlistener.error error) { if (error == OnEngineInitListener.Error.NONE) { onmapfragmentinitializationcompleted(); Add the following method to the end of the class: // Functionality for taps of the "Change Map Scheme" button public void changescheme(view view) { if (map!= null) { // Local variable representing the current map scheme String current = map.getmapscheme(); // Local array containing string values of available map schemes List<String> schemes = map.getmapschemes(); // Local variable representing the number of available map schemes int total = map.getmapschemes().size(); if (initial_scheme.isempty()) { //save the initial scheme initial_scheme = current; // If the current scheme is the last element in the array, reset to // the scheme at array index 0 if (schemes.get(total - 1).equals(current)) map.setmapscheme(schemes.get(0)); else { // If the current scheme is any other element, set to the next // scheme in the array for (int count = 0; count < total - 1; count++) { if (schemes.get(count).equals(current)) map.setmapscheme(schemes.get(count + 1));

22 Quick Start To ensure that a tap of the "Go Home" button resets the map scheme while it is resetting everything else (coordinates, zoom level, etc.), add the following lines to the end of the gohome() method: // Reset the map scheme to the initial scheme if (!initial_scheme.isempty()) { map.setmapscheme(initial_scheme); 12. Press the key combination Ctrl + F11 within Eclipse to run this extended basic HERE SDK for Android application. Result: Your HERE SDK for Android application displays a map centered initially on the Vancouver municipal region, plus a "Go Home" button near the top-left corner that allows users to reset the map to its initial view, followed by a "Change Map Scheme" button that allows users to cycle through available map schemes. See folder ExtendedBasicMapSolution for a completed example. You will need to add your own App_Id and App_Code for this completed example to work. Adding Route Calculation to the Simple Application An important feature of many map-based applications is offering directions to users by calculating a route that can be rendered on the map. This tutorial lesson introduces the addition of such functionality to applications developed using the HERE SDK for Android. Getting Started You can import the Android project from the BasicMapSolution folder as a starting point for this exercise. (Please note that MainActivity is changed to BasicMapActivity in this version of the project.) Note: The tasks presented on this page assume that you gave the name "HelloHEREMaps" to your Eclipse project and the name com.mapstutorial.helloheremaps to your application package. Add a "Get Directions" Button Add a "Get Directions" Button element to the HelloHEREMaps application as follows: 1. From the Package Explorer, double-click the HelloHEREMaps/res/values/strings.xml file to open it for editing.

23 Quick Start Add the following lines to the existing group of strings <string name="label_button_getdirections"> Get Directions </string> <string name="textview_routecoordinates_2waypoints"> Press "Get Directions" button to calculate a route:\nstart: Nokia, Burnaby\nEnd: Airport, YVR </string> 3. From the Package Explorer, double-click the HelloHEREMaps/res/layout/activity_main.xml file to open it for editing. 4. Add the following markup directly beneath the LinearLayout tag: <!-- UI element declaration for "Get Directions" button --> <android.widget.button android:id="@+id/directionsbutton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/label_button_getdirections" android:onclick="getdirections" /> 5. Next, change the <TextView/> tag to the following: <TextView android:id="@+id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/textview_routecoordinates_2waypoints" tools:context=".mainactivity" /> 6. From the Package Explorer, double-click the HelloHEREMaps/src/ com.mapstutorial.helloheremaps/mainactivity.java file to open it for editing. 7. Add the following lines to the import statements near the top of the source file: import import import import import import import import import import 8. java.util.enumset; java.util.list; android.view.view; android.widget.textview; com.here.android.mpa.common.geoboundingbox; com.here.android.mpa.mapping.maproute; com.here.android.mpa.routing.routemanager; com.here.android.mpa.routing.routeoptions; com.here.android.mpa.routing.routeplan; com.here.android.mpa.routing.routeresult; Add the declaration of these private member variables above the oncreate function: // TextView for displaying the current map scheme private TextView textviewresult = null; // MapRoute for this activity private MapRoute maproute = null;

24 Quick Start 24 and to set up the member variables for use later, add these lines at the end of the oncreate function: textviewresult = (TextView) findviewbyid(r.id.title); textviewresult.settext(r.string.textview_routecoordinates_2waypoints); 9. Add code to handle the click of the "Get Directions" button at the end of the class: First, create an implementation of the RouteManagerEventListener: private RouteManager.Listener routemanagerlistener = new RouteManager.Listener() { public void oncalculateroutefinished(routemanager.error errorcode, List<RouteResult> result) { if (errorcode == RouteManager.Error.NONE && result.get(0).getroute()!= null) { // create a map route object and place it on the map maproute = new MapRoute(result.get(0).getRoute()); map.addmapobject(maproute); // Get the bounding box containing the route and zoom in GeoBoundingBox gbb = result.get(0).getroute().getboundingbox(); map.zoomto(gbb, Map.Animation.NONE, Map.MOVE_PRESERVE_ORIENTATION); textviewresult.settext( String.format("Route calculated with %d maneuvers.", result.get(0).getroute().getmaneuvers().size())); else { textviewresult.settext( String.format("Route calculation failed: %s", errorcode.tostring())); public void onprogress(int percentage) { textviewresult.settext( String.format("... %d percent done...", percentage)); ; Next, add the implementation of getdirections() below: // Functionality for taps of the "Get Directions" button public void getdirections(view view) { // 1. clear previous results textviewresult.settext(""); if (map!= null && maproute!= null) { map.removemapobject(maproute); maproute = null; // 2. Initialize RouteManager RouteManager routemanager = RouteManager.getInstance(); // 3. Select routing options via RoutingMode RoutePlan routeplan = new RoutePlan(); RouteOptions routeoptions = new RouteOptions(); routeoptions.settransportmode(routeoptions.transportmode.car); routeoptions.setroutetype(routeoptions.type.fastest); routeplan.setrouteoptions(routeoptions);

25 Quick Start 25 // 4. Select Waypoints for your routes // START: Nokia, Burnaby routeplan.addwaypoint(new GeoCoordinate( , )); // END: Airport, YVR routeplan.addwaypoint(new GeoCoordinate( , )); // 5. Retrieve Routing information via RouteManagerListener routemanager.calculateroute(routeplan, routemanagerlistener); ; 10. Save all files in the HelloHEREMaps project by selecting File> Save All or by pressing the key combination Shift + Ctrl + S (within Eclipse). 11. Press the key combination Ctrl + F11 within Eclipse to run this HERE SDK for Android application with route calculation functionality. Result: your HERE SDK for Android application displays a map centered initially on the Vancouver municipal region, with a "Get Directions" button and a text box reflecting current status. Tapping on the button will trigger a route calculation for the hard-coded set of waypoints between Burnaby and Airport, YVR and render, and have the route displayed on map if successful. See the SimpleRoutingSolution folder for a completed example. You will need to add your own App_Id and App_Code for this completed example to work.) Adding Tappable Extruded Buildings to the Simple Application Another way to add a level of immersion and interactivity to your application is to use the Extruded Buildings feature. This tutorial provides instructions on displaying extruded buildings in your app, as well as adding logic to allow users to tap on a building in order to highlight it in a blue color. Getting Started You can import the Android project from the BasicMapSolution folder as a starting point for this exercise. (Please note that MainActivity is changed to BasicMapActivity in this version of the project.) Note: The tasks presented on this page assume that you gave the name "HelloHEREMaps" to your Eclipse project and the name com.mapstutorial.helloheremaps to your application package.

26 Quick Start 26 Modify MainActivity to Show Extruded Buildings You can modify the MapFragment in MainActivity to show extruded buildings by performing the following steps: 1. From the Package Explorer, double-click the HelloHEREMaps/src/ com.mapstutorial.helloheremaps/mainactivity.java file to open it for editing. 2. Add the following lines to the import statements near the top of the source file: import import import import import import import import import import 3. java.util.enumset; java.util.list; android.graphics.color; android.view.menu; com.here.android.mpa.common.viewobject; com.here.android.mpa.mapping.map; com.here.android.mpa.mapping.mapbuildinggroup; com.here.android.mpa.mapping.mapbuildingobject; com.here.android.mpa.mapping.mapfragment; com.here.android.mpa.mapping.mapgesture; Replace the call to mapfragment.init() with the following: mapfragment.init(new OnEngineInitListener() public void onengineinitializationcompleted(onengineinitlistener.error error) { if (error == OnEngineInitListener.Error.NONE) { // retrieve a reference of the map from the map fragment map = mapfragment.getmap(); // Set the map center coordinate to the San Francisco region (no animation) map.setcenter(new GeoCoordinate( , , 0.0), Map.Animation.NONE); // Set the map zoom level to close to street level map.setzoomlevel(18); else { System.out.println("ERROR: Cannot initialize Map Fragment"); ); 4. Save all files in the HelloHEREMaps project by selecting File> Save All or by pressing the key combination Shift + Ctrl + S (within Eclipse). 5. Press the Ctrl + F11 key combination within Eclipse to run this HERE SDK for Android application. Inspect that the app shows a map of San Francisco with visible extruded buildings. 6. In Eclipse, add the buildinggroup private member variable above the oncreate function: private MapBuildingGroup buildinggroup = null; 7. Add an OnGestureListener to this class: private MapGesture.OnGestureListener gesturelistener = new MapGesture.OnGestureListener.OnGestureListenerAdapter() public boolean onmapobjectsselected(list<viewobject> objects) { for (ViewObject vo : objects) { if (vo instanceof MapBuildingObject) {

27 Quick Start 27 // Remove currently selected building buildinggroup.removeallbuildings(); // Add this building to the group. // This will highlight the building. MapBuildingObject building = (MapBuildingObject) vo; buildinggroup.addbuilding(building.getidentifier()); return false; ; 8. Add the following lines to the end of onfragmentinitializationcompleted() within the if condition block to create a building group so that when the user taps on a building, building is added to this group: // Create a custom building group buildinggroup = map.getmapbuildinglayer().createnewbuildinggroup(); // Set the buildinggroup's color to "blue" buildinggroup.setcolor(color.blue, EnumSet.allOf(MapBuildingGroup.BuildingFace.class)); // Listen for gesture events. For example tapping on buildings mapfragment.getmapgesture().addongesturelistener(gesturelistener); 9. Press the Ctrl + F11 key combination within Eclipse to run this HERE SDK for Android application tappable buildings. Result: your HERE SDK for Android application displays a map centered initially on the San Francisco municipal region. Tapping on a building will cause the building to turn blue. See folder ExtrudedMapSolution for a completed example. You will need to add your own App_Id and App_Code for this completed example to work. Adding LiveSight Functionality to the Simple Application This tutorial introduces the addition of LiveSight functionality to applications developed using the HERE SDK for Android. It covers several basic use cases including transitioning from Map to LiveSight mode and adding and removing LiveSight objects. By adding LiveSight functionality to your application, you can create new and unique user experiences which utilize the real world as an interface.

28 Quick Start 28 Getting Started You can import the Android project from the BasicMapSolution folder as a starting point for this exercise. (Please note that MainActivity is changed to BasicMapActivity in this version of the project.) Note: The tasks presented on this page assume that you gave the name "HelloHEREMaps" to your Eclipse project and the name com.mapstutorial.helloheremaps to your application package. Update the AndroidManifest.xml with New Permissions LiveSight makes use of the devices camera. As a result of this, the camera permission needs to be added to the AndroidManifest.xml for LiveSight to work. Additionally, this tutorial makes use of setalternativecenter(). When using this method, the mock location permission is required, but this is optional and not required for LiveSight to function. 1. From the Package Explorer, double-click the HelloHEREMaps/AndroidManifest.xml file to open it for editing. 2. Add the following permissions: <uses-permission android:name="android.permission.access_mock_location" /> <uses-permission android:name="android.permission.camera" /> Add "Start LiveSight", "Stop LiveSight" and "Add Object" Buttons This task introduces the following HERE SDK for Android class methods: com.here.android.mpa.ar.compositefragment.getarcontroller() com.here.android.mpa.ar.arcontroller.start() com.here.android.mpa.ar.arcontroller.stop() com.here.android.mpa.ar.arcontroller.setusedowniconsonmap() com.here.android.mpa.ar.arcontroller.setalternativecenter() com.here.android.mpa.ar.arcontroller.addarobject() com.here.android.mpa.ar.arcontroller.removearobject() com.here.android.mpa.ar.ariconobject() Add the "Start LiveSight", "Stop LiveSight" and "Add Object" Buttons to the HelloHEREMaps application as follows: 1. From the Package Explorer, double-click the HelloHEREMaps/res/values/strings.xml file to open it for editing.

29 Quick Start At the bottom of the editor view that displays the string resources, click the strings.xml tab to switch the file's view to text editor mode. 3. Add the following line to the group of <string></string> tags: <string name="label_button_stoplivesight">stop LiveSight</string> <string name="label_button_startlivesight">start LiveSight</string> <string name="label_button_addobject">add Object</string> 4. From the Package Explorer, double-click the HelloHEREMaps/res/layout/activity_main.xml file to open it for editing. 5. Change the Layout type from a LinearLayout to a RelativeLayout to better accommodate our desired UI: <LinearLayout>... </LinearLayout> becomes <RelativeLayout>... </RelativeLayout> 6. Now, change the Fragment type from a MapFragment to a CompositeFragment. The CompositeFragment allows us to seamlessly switch between Map mode and LiveSight mode, whereas the MapFragment only provides Map functionality: <fragment class="com.here.android.mpa.mapping.mapfragment" android:id="@+id/mapfragment"... becomes <fragment class="com.here.android.mpa.ar.compositefragment" android:id="@+id/compositefragment" Next, add the buttons to the layout. Add the following markup below the <fragment /> tag: <Button android:id="@+id/startlivesight" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:layout_alignparentleft="true" android:onclick="startlivesight" android:text="@string/label_button_startlivesight" /> <Button android:id="@+id/stoplivesight"

30 Quick Start 30 android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:layout_alignparentright="true" android:onclick="stoplivesight" android:visibility="gone" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_alignparenttop="true" android:onclick="toggleobject" /> 8. From the Package Explorer, double-click the HelloHEREMaps/src/ com.mapstutorial.helloheremaps/mainactivity.java file to open it for editing. 9. Add the following lines to the import statements near the top of the source file: import java.io.ioexception; import android.view.view; import android.widget.button; import android.widget.toast; import import import import import com.here.android.mpa.ar.arcontroller; com.here.android.mpa.ar.arcontroller.error; com.here.android.mpa.ar.ariconobject; com.here.android.mpa.ar.compositefragment; com.here.android.mpa.common.image; 10. Remove the "import com.here.android.mpa.mapping.mapfragment" import statement. 11. Find and replace all instances of "MapFragment" with "CompositeFragment" and "mapfragment" with "compositefragment" 12. Add the following member variables near the top of the class: // ARController is a facade for controlling LiveSight behavior private ARController arcontroller; // buttons which will allow the user to start LiveSight and add objects private Button startbutton; private Button stopbutton; private Button toggleobjectbutton; // the image we will display in LiveSight private Image image; // ARIconObject represents the image model which LiveSight accepts for display private ARIconObject ariconobject;

31 Quick Start 31 private boolean objectadded; 13. Modify the "oncreate()" method as public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); // Search for the composite fragment to finish setup by calling init(). compositefragment = (CompositeFragment) getfragmentmanager().findfragmentbyid( R.id.compositefragment); compositefragment.init(new OnEngineInitListener() public void onengineinitializationcompleted( OnEngineInitListener.Error error) { if (error == OnEngineInitListener.Error.NONE) { // retrieve a reference of the map from the composite fragment map = compositefragment.getmap(); // Set the map center to the Vancouver Downtown region map.setcenter(new GeoCoordinate( , , 0.0), Map.Animation.NONE); // Set the map zoom level to the average between min and max map.setzoomlevel((map.getmaxzoomlevel() + map.getminzoomlevel()) / 2); // LiveSight setup should be done after fragment init is complete setuplivesight(); else { System.out.println("ERROR: Cannot initialize Composite Fragment"); ); // hold references to the buttons for future use startbutton = (Button) findviewbyid(r.id.startlivesight); stopbutton = (Button) findviewbyid(r.id.stoplivesight); toggleobjectbutton = (Button) findviewbyid(r.id.toggleobject); 14. Add the following methods to the end of the class: private void setuplivesight() { // ARController should not be used until fragment init has completed arcontroller = compositefragment.getarcontroller(); // tells LiveSight to display icons while viewing the map (pitch down) arcontroller.setusedowniconsonmap(true);

32 Quick Start 32 // tells LiveSight to use a static mock location instead of the devices GPS fix arcontroller.setalternativecenter(new GeoCoordinate( , , 0.0)); public void startlivesight(view view) { if (arcontroller!= null) { // triggers the transition from Map mode to LiveSight mode Error error = arcontroller.start(); if (error == Error.NONE) { startbutton.setvisibility(view.gone); stopbutton.setvisibility(view.visible); else { Toast.makeText(getApplicationContext(), "Error starting LiveSight: " + error.tostring(), Toast.LENGTH_LONG); public void stoplivesight(view view) { if (arcontroller!= null) { // exits LiveSight mode and returns to Map mode Error error = arcontroller.stop(true); if (error == Error.NONE) { startbutton.setvisibility(view.visible); stopbutton.setvisibility(view.gone); else { Toast.makeText(getApplicationContext(), "Error stopping LiveSight: " + error.tostring(), Toast.LENGTH_LONG); public void toggleobject(view view) { if (arcontroller!= null) { if (!objectadded) { if (ariconobject == null) { image = new com.here.android.mpa.common.image(); try { image.setimageresource(r.drawable.icon); catch (IOException e) { e.printstacktrace(); // creates a new icon object which uses the same image in up and down views ariconobject = new ARIconObject(new GeoCoordinate( , , 2.0), (View) null, image);

33 Quick Start 33 // adds the icon object to LiveSight to be rendered arcontroller.addarobject(ariconobject); objectadded = true; toggleobjectbutton.settext("remove Object"); else { // removes the icon object from LiveSight, it will no longer be rendered arcontroller.removearobject(ariconobject); objectadded = false; toggleobjectbutton.settext("add Object"); Result: Your HERE SDK for Android application displays a map centered initially on the Downtown Vancouver municipal region, with a "Start LiveSight" button near the bottom-left corner that allows users to start LiveSight. Also, there is an "Add Object" button in the top-left hand corner which allows users to add an object to be viewed in LiveSight mode. See folder LiveSightSolution for a completed example. You will need to add your own App_Id and App_Code for this completed example to work.

34 Quick Start 34 Adding a Radar to the LiveSight Sample Application The HERE SDK provides LiveSight APIs that allow for you to add "radar" information about the augmented reality surroundings. For example, you can retrieve a list of all LiveSight objects and draw them in a mini-map. Figure 1: LiveSightRadarSolution A sample project that demonstrates this LiveSight radar functionality can be found in the tutorial/ LiveSightRadarSolution folder. In this example (which is based on the LiveSightSolution sample project), a resolution-independent radar widget is drawn at the top right corner of the Camera View. This radar widget contains a North-direction indicator and a gray area that represents the current cone of vision. When the user moves the LiveSight Camera View by moving their device, this radar widget is also updated immediately. The user can tap on the "Add Objects" button to add LiveSight objects onto the Camera View, and these objects will then show up as white dots on the radar widget. The following sections of this tutorial highlight a few key areas in this sample project.

35 Quick Start 35 LiveSightRadarActivity.java A key section in the LiveSightRadarActivity class is the setuplivesight() method. This method contains a call to arcontroller.addonradarupdatelistener(onradarupdate). ARController.OnRadarUpdateListener contains a single callback method, onradarupdate(), which is triggered continuously while LiveSight is enabled. This callback provides a populated ARRadarProperties object that you can use to retrieve radar-related information in order to update the radar widget. // Radar logic private ARController.OnRadarUpdateListener onradarupdate = new ARController.OnRadarUpdateListener() public void onradarupdate(arradarproperties radar) { if (m_radar!= null && radar!= null) { m_radar.update(radar); ; ARRadar.java The ARRadar class is responsible for drawing the radar widget. The radar widget is comprised of a few components, including: a semi-transparent black circle a border the letter "N" a black background surrounding the letter "N" a green circle, indicating the user a border around the user circle a light gray sector, indicating the current cone-of-vision optional white dots, indicating LiveSight objects Most of the ARRadar class contains logic to draw the radar widget. However, the UpdateRadarDots(ARRadarProperties) method also contains a few calls to read information from the ARRadarProperties object, including the list of ARRadarItem used for the white dots. Please note that the ARRadarProperties.getDimmingLimit() method returns a distance for calculating the distance where objects are too close for your current cone of vision. When objects are

HERE SDK for Android. Developer's Guide. Online Version 2.1

HERE SDK for Android. Developer's Guide. Online Version 2.1 HERE SDK for Android Developer's Guide Online Version 2.1 Contents 2 Contents Legal Notices.4 Document Information 5 Service Support. 6 Chapter1:Overview 7 What is the HERE SDK for Android?..8 Feature

More information

Arduino & Android. A How to on interfacing these two devices. Bryant Tram

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

More information

Tutorial #1. Android Application Development Advanced Hello World App

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

More information

Getting Started: Creating a Simple App

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

More information

Introduction to NaviGenie SDK Client API for Android

Introduction to NaviGenie SDK Client API for Android Introduction to NaviGenie SDK Client API for Android Overview 3 Data access solutions. 3 Use your own data in a highly optimized form 3 Hardware acceleration support.. 3 Package contents.. 4 Libraries.

More information

Now that we have the Android SDK, Eclipse and Phones all ready to go we can jump into actual Android development.

Now that we have the Android SDK, Eclipse and Phones all ready to go we can jump into actual Android development. Android Development 101 Now that we have the Android SDK, Eclipse and Phones all ready to go we can jump into actual Android development. Activity In Android, each application (and perhaps each screen

More information

2. Click the download button for your operating system (Windows, Mac, or Linux).

2. Click the download button for your operating system (Windows, Mac, or Linux). Table of Contents: Using Android Studio 1 Installing Android Studio 1 Installing IntelliJ IDEA Community Edition 3 Downloading My Book's Examples 4 Launching Android Studio and Importing an Android Project

More information

ANDROID APPS DEVELOPMENT FOR MOBILE AND TABLET DEVICE (LEVEL I)

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: Peter@Peter-Lo.com Facebook: http://www.facebook.com/peterlo111

More information

MMI 2: Mobile Human- Computer Interaction Android

MMI 2: Mobile Human- Computer Interaction Android MMI 2: Mobile Human- Computer Interaction Android Prof. Dr. michael.rohs@ifi.lmu.de Mobile Interaction Lab, LMU München Android Software Stack Applications Java SDK Activities Views Resources Animation

More information

Developing Android Apps: Part 1

Developing Android Apps: Part 1 : Part 1 d.schmidt@vanderbilt.edu www.dre.vanderbilt.edu/~schmidt Institute for Software Integrated Systems Vanderbilt University Nashville, Tennessee, USA CS 282 Principles of Operating Systems II Systems

More information

Developing an Android App. CSC207 Fall 2014

Developing an Android App. CSC207 Fall 2014 Developing an Android App CSC207 Fall 2014 Overview Android is a mobile operating system first released in 2008. Currently developed by Google and the Open Handset Alliance. The OHA is a consortium of

More information

Android Application Development: Hands- On. Dr. Jogesh K. Muppala muppala@cse.ust.hk

Android Application Development: Hands- On. Dr. Jogesh K. Muppala muppala@cse.ust.hk Android Application Development: Hands- On Dr. Jogesh K. Muppala muppala@cse.ust.hk Wi-Fi Access Wi-Fi Access Account Name: aadc201312 2 The Android Wave! 3 Hello, Android! Configure the Android SDK SDK

More information

Android Basics. Xin Yang 2016-05-06

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)

More information

Introduction to Android Development. Daniel Rodrigues, Buuna 2014

Introduction to Android Development. Daniel Rodrigues, Buuna 2014 Introduction to Android Development Daniel Rodrigues, Buuna 2014 Contents 1. Android OS 2. Development Tools 3. Development Overview 4. A Simple Activity with Layout 5. Some Pitfalls to Avoid 6. Useful

More information

ADITION Android Ad SDK Integration Guide for App Developers

ADITION Android Ad SDK Integration Guide for App Developers Documentation Version 0.5 ADITION Android Ad SDK Integration Guide for App Developers SDK Version 1 as of 2013 01 04 Copyright 2012 ADITION technologies AG. All rights reserved. 1/7 Table of Contents 1.

More information

Presenting Android Development in the CS Curriculum

Presenting Android Development in the CS Curriculum Presenting Android Development in the CS Curriculum Mao Zheng Hao Fan Department of Computer Science International School of Software University of Wisconsin-La Crosse Wuhan University La Crosse WI, 54601

More information

Advertiser Campaign SDK Your How-to Guide

Advertiser Campaign SDK Your How-to Guide Advertiser Campaign SDK Your How-to Guide Using Leadbolt Advertiser Campaign SDK with Android Apps Version: Adv2.03 Copyright 2012 Leadbolt All rights reserved Disclaimer This document is provided as-is.

More information

directory to "d:\myproject\android". Hereafter, I shall denote the android installed directory as

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

More information

How to develop your own app

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

More information

Android Development. http://developer.android.com/develop/ 吳 俊 興 國 立 高 雄 大 學 資 訊 工 程 學 系

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

More information

AdFalcon Android SDK 2.1.4 Developer's Guide. AdFalcon Mobile Ad Network Product of Noqoush Mobile Media Group

AdFalcon Android SDK 2.1.4 Developer's Guide. AdFalcon Mobile Ad Network Product of Noqoush Mobile Media Group AdFalcon Android SDK 214 Developer's Guide AdFalcon Mobile Ad Network Product of Noqoush Mobile Media Group Table of Contents 1 Introduction 3 Supported Android version 3 2 Project Configurations 4 Step

More information

Mocean Android SDK Developer Guide

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:...

More information

Login with Amazon Getting Started Guide for Android. Version 2.0

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

More information

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3

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

More information

Mobile Application Development

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

More information

ANDROID APP DEVELOPMENT: AN INTRODUCTION CSCI 5115-9/19/14 HANNAH MILLER

ANDROID APP DEVELOPMENT: AN INTRODUCTION CSCI 5115-9/19/14 HANNAH MILLER ANDROID APP DEVELOPMENT: AN INTRODUCTION CSCI 5115-9/19/14 HANNAH MILLER DISCLAIMER: Main focus should be on USER INTERFACE DESIGN Development and implementation: Weeks 8-11 Begin thinking about targeted

More information

Android Quiz App Tutorial

Android Quiz App Tutorial Step 1: Define a RelativeLayout Android Quiz App Tutorial Create a new android application and use the default settings. You will have a base app that uses a relative layout already. A RelativeLayout is

More information

Android Java Live and In Action

Android Java Live and In Action Android Java Live and In Action Norman McEntire Founder, Servin Corp UCSD Extension Instructor norman.mcentire@servin.com Copyright (c) 2013 Servin Corp 1 Opening Remarks Welcome! Thank you! My promise

More information

Boardies IT Solutions info@boardiesitsolutions.com Tel: 01273 252487

Boardies IT Solutions info@boardiesitsolutions.com Tel: 01273 252487 Navigation Drawer Manager Library H ow to implement Navigation Drawer Manager Library into your A ndroid Applications Boardies IT Solutions info@boardiesitsolutions.com Tel: 01273 252487 Contents Version

More information

Tutorial: Android Object API Application Development. Sybase Unwired Platform 2.2 SP02

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

More information

Building Your First App

Building Your First App uilding Your First App Android Developers http://developer.android.com/training/basics/firstapp/inde... Building Your First App Welcome to Android application development! This class teaches you how to

More information

IOIO for Android Beginners Guide Introduction

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

More information

HERE Android SDK. Release Notes. Starter Edition Version 3.1.1

HERE Android SDK. Release Notes. Starter Edition Version 3.1.1 HERE Android SDK Release Notes Starter Edition Version 3.1.1 HERE Android SDK Release Notes 2 Contents Contents Legal Notices...3 Document Information... 4 Overview...5 Target Audience...6 Release Content...7

More information

Android app development course

Android app development course Android app development course Unit 6- + Location Based Services. Geo-positioning. Google Maps API, Geocoding 1 Location Based Services LBS is a concept that encompasses different technologies which offer

More information

Android Environment SDK

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

More information

SDK Quick Start Guide

SDK Quick Start Guide SDK Quick Start Guide Table of Contents Requirements...3 Project Setup...3 Using the Low Level API...9 SCCoreFacade...9 SCEventListenerFacade...10 Examples...10 Call functionality...10 Messaging functionality...10

More information

Android Development Introduction CS314

Android Development Introduction CS314 Android Development Introduction CS314 Getting Started Download and Install Android Studio: http://developer.android.com/tools/studio/index. html This is the basic Android IDE and supports most things

More information

2. Installieren des MySQL Workbench (Version 5.2.43) 3. Unter Database > Manage Connection folgende Werte eintragen

2. Installieren des MySQL Workbench (Version 5.2.43) 3. Unter Database > Manage Connection folgende Werte eintragen 1. Setup 1. Mit dieser Anleitung (http://www.unimarburg.de/fb12/sys/services/svc_more_html#svc_sql) eine Datenbank einrichten. 2. Installieren des MySQL Workbench (Version 5.2.43) 3. Unter Database > Manage

More information

Android Environment SDK

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

More information

By sending messages into a queue, we can time these messages to exit the cue and call specific functions.

By sending messages into a queue, we can time these messages to exit the cue and call specific functions. Mobile App Tutorial Deploying a Handler and Runnable for Timed Events Creating a Counter Description: Given that Android Java is event driven, any action or function call within an Activity Class must

More information

Android Development. Marc Mc Loughlin

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/

More information

Developing NFC Applications on the Android Platform. The Definitive Resource

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

More information

Intro to Android Development 2. Accessibility Capstone Nov 23, 2010

Intro to Android Development 2. Accessibility Capstone Nov 23, 2010 Intro to Android Development 2 Accessibility Capstone Nov 23, 2010 Outline for Today Application components Activities Intents Manifest file Visual user interface Creating a user interface Resources TextToSpeech

More information

Getting Started With Android

Getting Started With Android Getting Started With Android Author: Matthew Davis Date: 07/25/2010 Environment: Ubuntu 10.04 Lucid Lynx Eclipse 3.5.2 Android Development Tools(ADT) 0.9.7 HTC Incredible (Android 2.1) Preface This guide

More information

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3 SP02

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

More information

Mobile Application Frameworks and Services

Mobile Application Frameworks and Services Mobile Application Frameworks and Services Lecture: Programming Basics Dr. Panayiotis Alefragis Professor of Applications Masters Science Program: Technologies and Infrastructures for Broadband Applications

More information

ID TECH UniMag Android SDK User Manual

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

More information

Android app development course

Android app development course Android app development course Unit 8- + Beyond the SDK. Google Play Store. Monetization 1 Google Play Google offers Play Store as a distribution platform for our applications. Present on all Android-powered

More information

Tutorial: BlackBerry Object API Application Development. Sybase Unwired Platform 2.2 SP04

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

More information

TUTORIAL. BUILDING A SIMPLE MAPPING APPLICATION

TUTORIAL. BUILDING A SIMPLE MAPPING APPLICATION Cleveland State University CIS493. Mobile Application Development Using Android TUTORIAL. BUILDING A SIMPLE MAPPING APPLICATION The goal of this tutorial is to create a simple mapping application that

More information

MDMS Multiple Device Monitor System v1.0 User Manual

MDMS Multiple Device Monitor System v1.0 User Manual MDMS Multiple Device Monitor System v1.0 User Manual Copyright 2014 All rights reserved. No part of this document may be reproduced, republished, or retransmitted in any form or by any means whatsoever,

More information

Android Studio Application Development

Android Studio Application Development Android Studio Application Development Belén Cruz Zapata Chapter No. 4 "Using the Code Editor" In this package, you will find: A Biography of the author of the book A preview chapter from the book, Chapter

More information

ELET4133: Embedded Systems. Topic 15 Sensors

ELET4133: Embedded Systems. Topic 15 Sensors ELET4133: Embedded Systems Topic 15 Sensors Agenda What is a sensor? Different types of sensors Detecting sensors Example application of the accelerometer 2 What is a sensor? Piece of hardware that collects

More information

Affdex SDK for Android. Developer Guide For SDK version 1.0

Affdex SDK for Android. Developer Guide For SDK version 1.0 Affdex SDK for Android Developer Guide For SDK version 1.0 www.affdex.com/mobile-sdk 1 August 4, 2014 Introduction The Affdex SDK is the culmination of years of scientific research into emotion detection,

More information

ECWM511 MOBILE APPLICATION DEVELOPMENT Lecture 1: Introduction to Android

ECWM511 MOBILE APPLICATION DEVELOPMENT Lecture 1: Introduction to Android Why Android? ECWM511 MOBILE APPLICATION DEVELOPMENT Lecture 1: Introduction to Android Dr Dimitris C. Dracopoulos A truly open, free development platform based on Linux and open source A component-based

More information

Android App Development Lloyd Hasson 2015 CONTENTS. Web-Based Method: Codenvy. Sponsored by. Android App. Development

Android App Development Lloyd Hasson 2015 CONTENTS. Web-Based Method: Codenvy. Sponsored by. Android App. Development Android App Lloyd Hasson 2015 Web-Based Method: Codenvy This tutorial goes through the basics of Android app development, using web-based technology and basic coding as well as deploying the app to a virtual

More information

PubMatic Android SDK. Developer Guide. For Android SDK Version 4.3.5

PubMatic Android SDK. Developer Guide. For Android SDK Version 4.3.5 PubMatic Android SDK Developer Guide For Android SDK Version 4.3.5 Nov 25, 2015 1 2015 PubMatic Inc. All rights reserved. Copyright herein is expressly protected at common law, statute, and under various

More information

Lab 1 (Reading Sensors & The Android API) Week 3

Lab 1 (Reading Sensors & The Android API) Week 3 ECE155: Engineering Design with Embedded Systems Winter 2013 Lab 1 (Reading Sensors & The Android API) Week 3 Prepared by Kirill Morozov version 1.1 Deadline: You must submit the lab to the SVN repository

More information

Android Introduction. Hello World. @2010 Mihail L. Sichitiu 1

Android Introduction. Hello World. @2010 Mihail L. Sichitiu 1 Android Introduction Hello World @2010 Mihail L. Sichitiu 1 Goal Create a very simple application Run it on a real device Run it on the emulator Examine its structure @2010 Mihail L. Sichitiu 2 Google

More information

Table of Contents. 1. Content Approval...1 EVALUATION COPY

Table of Contents. 1. Content Approval...1 EVALUATION COPY Table of Contents Table of Contents 1. Content Approval...1 Enabling Content Approval...1 Content Approval Workflows...4 Exercise 1: Enabling and Using SharePoint Content Approval...9 Exercise 2: Enabling

More information

WEB MAPPING TOOL DOCUMENTATION

WEB MAPPING TOOL DOCUMENTATION ENTERPRISE ZONES RE DESIGNATION WEB MAPPING TOOL DOCUMENTATION January 26, 2015 COVER PAGE TABLE OF CONTENTS INTRODUCTION 1 APPLICATION LAYOUT 2 WEB MAP NAVIGATION 3 LOCATION SEARCH 4 MAP LEGEND 5 BASEMAP

More information

TomTom PRO 82xx PRO.connect developer guide

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

More information

Android Programming Basics

Android Programming Basics 2012 Marty Hall Android Programming Basics Originals of Slides and Source Code for Examples: http://www.coreservlets.com/android-tutorial/ Customized Java EE Training: http://courses.coreservlets.com/

More information

Mail Programming Topics

Mail Programming Topics Mail Programming Topics Contents Introduction 4 Organization of This Document 4 Creating Mail Stationery Bundles 5 Stationery Bundles 5 Description Property List 5 HTML File 6 Images 8 Composite Images

More information

Cisco Cius Development Guide Version 1.0 September 30, 2010

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

More information

Introduction to Android SDK Jordi Linares

Introduction to Android SDK Jordi Linares Introduction to Android SDK Introduction to Android SDK http://www.android.com Introduction to Android SDK Google -> OHA (Open Handset Alliance) The first truly open and comprehensive platform for mobile

More information

Symantec Enterprise Vault

Symantec Enterprise Vault Symantec Enterprise Vault Guide for Microsoft Outlook 2003/2007 Users 10.0 Full Outlook Add-In Symantec Enterprise Vault: Guide for Microsoft Outlook 2003/2007 Users The software described in this book

More information

Fleet Connectivity Extension

Fleet Connectivity Extension Fleet Connectivity Extension Developer's Guide Version 1.0 Fleet Connectivity Extension Developer's Guide 2 Contents Contents Legal Notices...3 Document Information... 4 Chapter 1: Overview... 5 What is

More information

TIBCO Spotfire Automation Services 6.5. User s Manual

TIBCO Spotfire Automation Services 6.5. User s Manual TIBCO Spotfire Automation Services 6.5 User s Manual Revision date: 17 April 2014 Important Information SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDED OR BUNDLED TIBCO

More information

Symantec Enterprise Vault

Symantec Enterprise Vault Symantec Enterprise Vault Guide for Mac OS X Users 10.0 Symantec Enterprise Vault: Guide for Mac OS X Users The software described in this book is furnished under a license agreement and may be used only

More information

Symantec Enterprise Vault

Symantec Enterprise Vault Symantec Enterprise Vault Guide for Microsoft Outlook 2010/2013 Users 10.0 Full Outlook Add-In Symantec Enterprise Vault: Guide for Microsoft Outlook 2010/2013 Users The software described in this book

More information

Getting Started with Android

Getting Started with Android Mobile Application Development Lecture 02 Imran Ihsan Getting Started with Android Before we can run a simple Hello World App we need to install the programming environment. We will run Hello World on

More information

Wave 4.5. Wave ViewPoint Mobile 2.0. User Guide

Wave 4.5. Wave ViewPoint Mobile 2.0. User Guide Wave 4.5 Wave ViewPoint Mobile 2.0 User Guide 2014 by Vertical Communications, Inc. All rights reserved. Vertical Communications and the Vertical Communications logo and combinations thereof and Applications

More information

Chapter 2 Getting Started

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)

More information

Creating a 2D Game Engine for Android OS. Introduction

Creating a 2D Game Engine for Android OS. Introduction Creating a 2D Game Engine for Android OS Introduction This tutorial will lead you through the foundations of creating a 2D animated game for the Android Operating System. The goal here is not to create

More information

Symantec Enterprise Vault

Symantec Enterprise Vault Symantec Enterprise Vault Guide for Microsoft Outlook 2003/2007 Users 9.0 Symantec Enterprise Vault: Guide for Microsoft Outlook 2003/2007 Users The software described in this book is furnished under a

More information

Scribe Online Integration Services (IS) Tutorial

Scribe Online Integration Services (IS) Tutorial Scribe Online Integration Services (IS) Tutorial 7/6/2015 Important Notice No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, photocopying,

More information

Cloud Administration Guide for Service Cloud. August 2015 E65820-01

Cloud Administration Guide for Service Cloud. August 2015 E65820-01 Cloud Administration Guide for Service Cloud August 2015 E65820-01 Table of Contents Introduction 4 How does Policy Automation work with Oracle Service Cloud? 4 For Customers 4 For Employees 4 Prerequisites

More information

DIGIPASS CertiID. Getting Started 3.1.0

DIGIPASS CertiID. Getting Started 3.1.0 DIGIPASS CertiID Getting Started 3.1.0 Disclaimer Disclaimer of Warranties and Limitations of Liabilities The Product is provided on an 'as is' basis, without any other warranties, or conditions, express

More information

Merchandising with Adobe Digital Publishing Suite

Merchandising with Adobe Digital Publishing Suite Merchandising with Adobe Digital Publishing Suite Drive additional revenue through a Custom Store with Digital Publishing Suite, Enterprise Edition Table of contents 1: Business advantages of a Custom

More information

Android App Development. Rameel Sethi

Android App Development. Rameel Sethi Android App Development Rameel Sethi Relevance of Android App to LFEV Would be useful for technician at Formula EV race course to monitor vehicle conditions on cellphone Can serve as useful demo of LFEV

More information

Android Persistency: Files

Android Persistency: Files 15 Android Persistency: Files Notes are based on: The Busy Coder's Guide to Android Development by Mark L. Murphy Copyright 2008-2009 CommonsWare, LLC. ISBN: 978-0-9816780-0-9 & Android Developers http://developer.android.com/index.html

More information

Centrify Mobile Authentication Services

Centrify Mobile Authentication Services Centrify Mobile Authentication Services SDK Quick Start Guide 7 November 2013 Centrify Corporation Legal notice This document and the software described in this document are furnished under and are subject

More information

Android For Java Developers. Marko Gargenta Marakana

Android For Java Developers. Marko Gargenta Marakana Android For Java Developers Marko Gargenta Marakana Agenda Android History Android and Java Android SDK Hello World! Main Building Blocks Debugging Summary History 2005 Google buys Android, Inc. Work on

More information

Symantec Enterprise Vault

Symantec Enterprise Vault Symantec Enterprise Vault Guide for Microsoft Outlook 2010/2013 Users 10.0 Full Outlook Add-In Symantec Enterprise Vault: Guide for Microsoft Outlook 2010/2013 Users The software described in this book

More information

Advantages. manage port forwarding, set breakpoints, and view thread and process information directly

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

More information

Android Programming. Høgskolen i Telemark Telemark University College. Cuong Nguyen, 2013.06.18

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

More information

Symantec Enterprise Vault

Symantec Enterprise Vault Symantec Enterprise Vault Guide for Microsoft Outlook 2010 Users 9.0 Symantec Enterprise Vault: Guide for Microsoft Outlook 2010 Users The software described in this book is furnished under a license agreement

More information

Security Analytics Engine 1.0. Help Desk User Guide

Security Analytics Engine 1.0. Help Desk User Guide 2015 Dell Inc. ALL RIGHTS RESERVED. This guide contains proprietary information protected by copyright. The software described in this guide is furnished under a software license or nondisclosure agreement.

More information

Download and Installation Instructions. Android SDK and Android Development Tools (ADT)

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Download and Installation Instructions for Android SDK and Android Development Tools (ADT) on Mac OS X Updated October, 2012 This document will describe how to download and install the Android SDK and

More information

Central Management Software CV3-M1024

Central Management Software CV3-M1024 Table of Contents Chapter 1. User Interface Overview...5 Chapter 2. Installation...6 2.1 Beginning Installation...6 2.2 Starting the CMS software...10 2.3 Starting it from the Start menu...10 2.4 Starting

More information

Mixing Station Manual Manual Version 0.21. This manual is not yet complete, please be patient

Mixing Station Manual Manual Version 0.21. This manual is not yet complete, please be patient Manual Version 0.21 This manual is not yet complete, please be patient Content About... 3 Compatible Mixer:... 3 Quick start... 4 Start View... 5 UI Elements... 6 Knobs... 6 Fader... 6 Main View... 7 Channel

More information

User Guide. Live Meeting. MailStreet Live Support: 866-461-0851

User Guide. Live Meeting. MailStreet Live Support: 866-461-0851 User Guide Live Meeting Information in this document, including URL and other Internet Web site references, is subject to change without notice. Unless otherwise noted, the example companies, organizations,

More information

Tutorial: Mobile Business Object Development. SAP Mobile Platform 2.3

Tutorial: Mobile Business Object Development. SAP Mobile Platform 2.3 Tutorial: Mobile Business Object Development SAP Mobile Platform 2.3 DOCUMENT ID: DC01927-01-0230-01 LAST REVISED: March 2013 Copyright 2013 by Sybase, Inc. All rights reserved. This publication pertains

More information

How to Create an Android Application using Eclipse on Windows 7

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

More information

Android Tutorial. Larry Walters OOSE Fall 2011

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

More information

Animation in ArcMap Tutorial

Animation in ArcMap Tutorial ArcGIS 9 Animation in ArcMap Tutorial Copyright 2005 2008 ESRI All Rights Reserved. Printed in the United States of America. The information contained in this document is the exclusive property of ESRI.

More information

Keynote DeviceAnywhere/HP Application Lifecycle Management (HP ALM/QC) Integration Guide. TCE Automation 5.2

Keynote DeviceAnywhere/HP Application Lifecycle Management (HP ALM/QC) Integration Guide. TCE Automation 5.2 Keynote DeviceAnywhere/HP Application Lifecycle Management (HP ALM/QC) Integration Guide TCE Automation 5.2 Copyright Copyright 2012 Keynote DeviceAnywhere. All Rights Reserved. August 2012. Notice 2012

More information

WatchDox Administrator's Guide. Application Version 3.7.5

WatchDox Administrator's Guide. Application Version 3.7.5 Application Version 3.7.5 Confidentiality This document contains confidential material that is proprietary WatchDox. The information and ideas herein may not be disclosed to any unauthorized individuals

More information