1 / 7

Android-Programmering

Android-Programmering. Våren 2014. Google Maps. Installere Google Play Services SDK (må kanskje oppdatere ADT) Legg til bibliotek som library dependency Google Map API Key Lag prosjekt Huk av for Google Maps Generer ny Android Key Legg til SHA1+pakkenavn fra debug.keystore

yonah
Download Presentation

Android-Programmering

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Android-Programmering Våren 2014

  2. Google Maps • Installere Google Play Services SDK (må kanskje oppdatere ADT) • Legg til bibliotek som librarydependency • Google Map API Key • Lag prosjekt • Huk av for Google Maps • Generer ny Android Key • Legg til SHA1+pakkenavn fra debug.keystore • keytool -list -v -alias androiddebugkey -keystore C:\Users\<username>\.android\debug.keystore -storepassandroid -keypassandroid • Legg til i AndroidManifest

  3. Legge til Google Services i Genymotion • Last ned Google Apps • Installer i Genymotion • Restart • Logg inn Google+ • Oppdater Google+ i Google Play • Start Google+ • Oppdater Google Services

  4. Maps • Longitude and Latitude • Bearing • Tilt • Zoom

  5. MapFragment • SupportMapFragment < API level 12 • Kan legges til som ett fragment i XML • getMap() for å hente ut instansen av GoogleMap • Flytte kamera • Legge til markers • Endre UI elementer • Legge til EventListeners

  6. Kontroller Zoom Compass MyLocation

  7. Parcelable • Serialisering – laget for hurtighet • Sende egne objekter til en Activity • Må implementere Parcelable

More Related