Tìm kiếm theo tiêu đề

Tin tức cộng đồng

[MỜI HỢP TÁC] Các kỳ thi Olympic Quốc tế 2026 (IMO - IEO - ISO)

Kính gửi Quý Lãnh đạo, Ban Giám hiệu và Quý Thầy/Cô, FermatTech (Đối tác Google tại VN) phối hợp cùng SCO Ấn Độ trân trọng kính mời tham gia 3 kỳ thi uy tín dành cho HS từ lớp 1 - 12: - IMO: Olympic Toán Quốc tế. - IEO: Olympic Tiếng Anh Quốc tế. - ISO: Olympic Khoa học...
Xem tiếp

Tin tức thư viện

Chức năng Dừng xem quảng cáo trên violet.vn

12087057 Kính chào các thầy, cô! Hiện tại, kinh phí duy trì hệ thống dựa chủ yếu vào việc đặt quảng cáo trên hệ thống. Tuy nhiên, đôi khi có gây một số trở ngại đối với thầy, cô khi truy cập. Vì vậy, để thuận tiện trong việc sử dụng thư viện hệ thống đã cung cấp chức năng...
Xem tiếp

Hỗ trợ kĩ thuật

  • (024) 62 930 536
  • 0919 124 899
  • hotro@violet.vn

Liên hệ quảng cáo

  • (024) 66 745 632
  • 096 181 2005
  • contact@bachkim.vn

Android + Google API

Wait
  • Begin_button
  • Prev_button
  • Play_button
  • Stop_button
  • Next_button
  • End_button
  • 0 / 0
  • Loading_status
Nhấn vào đây để tải về
Báo tài liệu có sai sót
Nhắn tin cho tác giả
(Tài liệu chưa được thẩm định)
Nguồn:
Người gửi: Nguyễn Tuấn Kiệt
Ngày gửi: 10h:38' 30-12-2013
Dung lượng: 968.0 KB
Số lượt tải: 20
Số lượt thích: 0 người
Google APIs 
& 
Location Based Applications
-Krishna Achanta
krishna.achanta@gmail.com
Prerequisites

Eclipse with Android SDK and AVD Manager
Google Apis
Java
XML
Android device[or Emulator] to test
Agenda:
1. Google Maps Api for Android.
        For applications using Google MapViews

2. Android Location Package.
        The classes required to access the users location without having to use maps.
MapView
Adding Google APIs

Obtaining Maps Key

Using MapActivity

Showing current location

Adding Overlay items
MapView: Adding Google APIs
All you need. [not really]
http://code.google.com/android/add-ons/google-apis/index.html



MapView: Obtaining Maps Key
Generate Certificate
keytool -genkey -v -keystore droid_kids.keystore -alias droid_kids -keyalg RSA -keysize 2048 -validity 10000

Get Fingerprint of the certificate
keytool -list -alias droid_kids -keystore droid_kids.keystore
Fingerprint is : E0:9D:58:9F:B2:CD:5C:9C:42:8B:60:0F:23:BC:24:11

Register the fingerprint with Google Maps Service
http://code.google.com/android/maps-api-signup.html
Key is: 0zu3JWra9vK5LxswGR1V4Wh3SztudX-UjgLWLJA

MapView: Create Maps Activity
Include Maps library


Add permissions




Create a MapView layout and add the key
                xmlns:android="http://schemas.android.com/apk/res/android"
                android:id="@+id/mapview"    
                android:layout_width="fill_parent"    android:layout_height="fill_parent"
                android:clickable="true"    
                android:apiKey="0zu3JWra9vK5LxswGR1V4Wh3SztudX-UjgLWLJA"/>




MapView Coding
Layers

Zoom

Center

Overlays

MyLocation
Find Location
Location Sources

LocationManager & Location Providers

Criteria

LocationListener

locationManager.requestLocationUpdates(bestProvider, time, distance , locationListener);
Questions
OUT OF TIME
References
- http://developer.android.com/guide/topics/location/index.html

- http://code.google.com/android/add-ons/google-apis/

- http://www.anddev.org/index.php

- http://itouchmap.com/latlong.html [For finding location coordinates].


 
Gửi ý kiến