3 rd -party APIs Kalin Kadiev Astea Solutions AD.

Slides:



Advertisements
Similar presentations
Android Application Development A Tutorial Driven Course.
Advertisements

Android Application Development Tutorial. Topics Lecture 4 Overview Overview of Sensors Programming Tutorial 1: Tracking location with GPS and Google.
Google APIs & Location Based Applications -Krishna Achanta
Bruce Scharlau, University of Aberdeen, 2010 Android and Location Mobile Computing Unless otherwise stated, images are from android sdk.
Introducing to Location in Android LOCATION IS EVERYTHING Kamil Lelonek Kamil Lelonek
Cosc 5/4730 Android Maps v2. Maps V1 and V2 In March 2013 google removed the ability to get a map key for version 1. Version 2 had been introduced in.
Location based services
Prepared by: Prepared by: Jameela Rabaya Jameela Rabaya Fatima Darawsha Fatima Darawsha.
Cosc 4/5730 Android and Blackberry Near Field Communications (NFC)
W alkie Doggie is a web application that allows dog owners to help each other with their dog walks. It’s main feature is the walkies, which are the user’s.
CS378 - Mobile Computing Maps. Using Google Maps Like other web services requires an API key from Google ons/google-apis/mapkey.html.
Chapter 11: Discover! Incorporating Google Maps
Google Android Map API Presentation 13/03/2008. Map API – Overview (1) Map rendering facility on Android device Similar to Google Earth Integrate map.
Location based social networking on Android phones – integrated with Facebook. Simple and easy to use.
Location & Maps.  Mobile applications can benefit from being location-aware, e.g.,  Routing from a current to a desired location  Searching for stores.
CS378 - Mobile Computing Maps. Using Google Maps Content on using Google Maps inside your app Alternatives: Open Street Maps –
Java RMI Project and Android Architecture
Map Applications.
Route Tracker App Android How to Program © by Pearson Education, Inc. All Rights Reserved.
Google Maps Android API v2 吳俊興 國立高雄大學 資訊工程學系 CSF645 – Mobile Computing 行動計算
Location-Based API 1. 2 Location-Based Services or LBS allow software to obtain the phone's current location. This includes location obtained from the.
Location based services Using Google Maps v2 etc. in Android apps 1Location based services.
Social network Twitter Hashtag: #m2eu #android Personal Israel Ferrer –
Location based services
CSS216 MOBILE PROGRAMMING Android, Chapter 8 Book: “Professional Android™ 2 Application Development” by Reto Meier, 2010 by: Andrey Bogdanchikov (
The HDF Group ESIP Summer Meeting HDF Studio John Readey The HDF Group 1 July 8 – 11, 2014.
Ignite Presentation: Near Field Communication Harry Yang.
App Development for Smart Devices CS 495/595 - Fall 2013 Tamer Nadeem Dept. of Computer Science Lec #10: Conclusion.
Working in the Background Radan Ganchev Astea Solutions.
MAKANI ANDROID APPLICATION Prepared by: Asma’ Hamayel Alaa Shaheen.
Maps Dr. David Janzen Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution 2.5 License.
Adding Overlay Items.  So, now you have a map, but in many cases you'll also want to create your own map markers and lay-overs.  You must implement.
Webview and Web services. Web Apps You can make your web content available to users in two ways in a traditional web browser in an Android application,
Adding Location Nasrullah. Adding Location Adding a Map Activity Obtaining a Map API Debug Key Adding a Map View Finding an Address with Google’s GeoCoder.
Android - Location Based Services. Google Play services facilitates adding location awareness to your app with automated location tracking Geo fencing.
Cosc 4735 Primer: Marshmallow Changes and new APIs in android 6.0 (api 23)
Security API discussion Group Name: SEC Source: Shingo Fujimoto, FUJITSU Meeting Date: Agenda Item: Security API.
TCS Internal Maps. 2 TCS Internal Objective Objective :  MAPS o Integration of Maps.
Cosc 5/4735 YouTube API. YouTube The YouTube Android Player API enables you to incorporate video playback functionality into your Android applications.
Secure Mobile Development with NetIQ Access Manager
GOOGLE PLAY By William Cook April 14, GOOGLE PLAY Marketplace for apps for android Androids “app store” You must make an account on the developer.
Resources & Android Manifest Калин Кадиев Astea Solutions AD.
© 2010 IBM Corporation RESTFul Service Modelling in Rational Software Architect April, 2011.
Location based services 1. Some location-based services available in Android Geo-coding – Address -> location Reverse geo-coding – Location -> address(es)
CS371m - Mobile Computing Maps. Using Google Maps Content on using Google Maps inside your app Alternatives Exist: – Open Street Maps –
Pervasive Radar Social Collaborative Augmented Reality Tool Presented By: Muthanna Abdulhussein M7012 Pervasive Computing Final Project Presentation.
1. 2 Android location services Determining a device’s current location Tracking device movements Proximity alerts.
CS499 – Mobile Application Development Fall 2013 Location & Maps.
Containers as a Service with Docker to Extend an Open Platform
Android Application Maps 1.
Tracking device movements
Lecture 5: Location Topics: Google Play Services, Location API.
Location-Based Services: Part 2 (Google Maps)
AnDroid GoogleMaps API
SaaS Application Deep Dive
Android 17: Location Kirk Scott.
Tracking and Booking Taxi
Widgets & Fragments Kalin Kadiev Astea Solutions AD.
Social Networks Integration in Android
Sensors, maps and fragments:
Firebase Cloud messaging A primer
CS371m - Mobile Computing Maps.
Azure AD Line Of Business Application Integration
Iteration 1 Presentation
What is OAuth and Why?.
Find your friend – An Android application
SharePoint Online Authentication Patterns
Lecture 5: Location Topics: Google Play Services, Location API.
It is used to Start an Activity Start a Service Deliver a Broadcast
Maps, Geocoding, and Location-Based Services.
Presentation transcript:

3 rd -party APIs Kalin Kadiev Astea Solutions AD

LocationManager Provides ability to: get the last known location register for periodic location updates register for proximity alerts Needed permissions in AndroidManifest: android.permission.ACCESS_COARSE_LOCATION android.permission.ACCESS_FINE_LOCATION

LocationManager Getting the best provider for a criteria GPS Network Other? Provider differences Accuracy Battery usage Latency

Google Maps General stuff 3rd party - Google does not guarantee every android device has maps library. Not open source Hardly customizable You can't see the source Does not work without MapActivity Only one MapActivity per process You should be able to use a WebView with a map instead

apk build process aidl javac aapt apkbuilder → jarsigner → zipalign

apk signing Signing the app with your certificate's private key identifies the app developer The private key is secured in a keystore This keystore's fingerprint is used to generate the Google Maps АPI key

MapView Extend MapActivity In your layout, put MapView as a top-level component Provide the generated API key

Controlling the MapView setBuiltInZoomControls setZoom setCenter zoomInFixing, zoomOutFixing zoomToSpan

Adding overlays Extend ItemizedOverlay Fill the overlay with OverlayItem objects Override ItemizedOverlay.onTap to handle tapping Use ItemizedOverlay.addOverlay(OverlayItem) MapView.getOverlays.add(ItemizedOverlay)

Geocoding Geocoding - transforming a street address or other description of a location into a (latitude, longitude) coordinate. Reverse geocoding - transforming a (latitude, longitude) coordinate into a (partial) address.

Geocoding With Android's Geocoder getFromLocation getFromLocationName With Google services See the limitations first!

NFC What is NFC? A set of short-range wireless technologies, which allow you to share small payloads of data between an NFC tag (unpowered NFC chip) and an Android- powered device, or between two Android-powered devices.

NFC So what? Enables secure contactless payments Does not need 2 powered devices Does not need pairing (as in Bluetooth)

NFC in Android Android parses the scanned NFC tag and figures out the MIME type or a URI. Android encapsulates the MIME type or the URI and the payload in an intent. The activity that can handle the intent is being started.

Handling NFC intents Requirements permission “android.permission.NFC” platform “minSdkVersion=10” feature “android.hardware.nfc” Add intent filter to your activity for the MIME type or the URI. In your onResume(), handle the intent.

OAuth – what is it? A standard for authorization. Allows sharing a limited set of your private data to 3rd-party apps without sharing your credentials with it.

Facebook integration Create a Facebook app. Get the Facebook development kit. Depend on it. Authenticate. Use the Graph API Hold your token!

Twitter integration No specific Android library, a Java one instead. Put the.jar into your /libs and depend on it. Possibly wrap the requests in AsyncTasks The rest is quite similar to Facebook.

Q&A + Feedback Questions? Feedback section: – Did you hear well? – Was there anything you didn’t understand? – What would you like changed in our next lecture?

Recommended resources Location Tutorial LocationManager MapView Tutorial Obtaining Maps API key Geocoder Google Geocoding API NFC in Android OAuth Facebook, Twitter4J FacebookTwitter4J