How can I load Google Maps in android application for GPS Tracking?
Posted Date Unknown Lovely Manuel 2 Comments

I want to load the Google Map in my Android application for GPS Tracking. Please help me with a sample.

I got the following exception in my trial.

03-19 10:29:09.554: W/System.err(1396): IOException processing: 26
03-19 10:29:09.554: W/System.err(1396): java.io.IOException: Server returned: 3
03-19 10:29:09.570: W/System.err(1396):     at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:115)
03-19 10:29:09.570: W/System.err(1396):     at android_maps_conflict_avoidance.com.google.googlenav.map.MapService$MapTileRequest.readResponseData(MapService.java:1473)
03-19 10:29:09.578: W/System.err(1396):     at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.processDataRequest(DataRequestDispatcher.java:1117)
03-19 10:29:09.585: W/System.err(1396):     at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher.java:994)
03-19 10:29:09.593: W/System.err(1396):     at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$DispatcherServer.run(DataRequestDispatcher.java:1702)
03-19 10:29:09.601: W/System.err(1396):     at java.lang.Thread.run(Thread.java:1019)


Here is my code

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >    
    <com.google.android.maps.MapView
  android:id="@+id/mapView"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:enabled="true"
  android:clickable="true"
  android:apiKey="apy key" />    
</RelativeLayout>


 <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.gpsmapping"
    android:versionCode="1"
    android:versionName="1.0" >
 <uses-sdk
        android:maxSdkVersion="17"
        android:minSdkVersion="3"
        android:targetSdkVersion="17" />
  <uses-feature
        android:glEsVersion="0x00020000"
        android:required="true"/>    
    <permission
        android:name="com.example.gpsmapping.permission.MAPS_RECEIVE"
        android:protectionLevel="signature"/>    
<uses-permission android:name="com.example.gpsmapping.permission.MAPS_RECEIVE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <uses-library android:name="com.google.android.maps" />
        <activity
            android:name="com.example.gpsmapping.MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>     
    </application>
</manifest>



See All Responses Below...
Author
Message Rating
Posted on: 14/06/2013
First make sure that you need to get the free google map license key form google. Also make sure that the Version is correct as specified by the system requirements..

Tom
Posted on: 14/06/2013
First you must ensure that the android project is using the correct API version of SDK , You cannot use Stand alone APP  SDK  for google map .
Also you have to obtain API key from google for your installed SDK in your system to send request to google services and also make sure that the services are running as a thread .


Share this page across other social networking sites



Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Comments
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site. 

TekTipsDownload
GateExam
Academic Projects
TekTipsExperts



 
Site optimized for IE7, 1280 X 768 and above. Copyright © 2010 - 2018 KTS InfoTech
Site Developed Using KTS WebCloud