Hi John,
Using Emulator, with knowing the exact errors logged in your LogCat, I
can only recommend you do the following, make sure you have obtained
your apiKey from google and have added to your view or added to your
code (if implementing view via code instead of view schema).
Things to check LogCat for specific errors, assuming your using eclipse
pluging,
Some items to check:
1. Gotcha Google Maps does not appear
1.Resolution Add android:apiKey child xml element to Map
view in YourViewcontaingMapView.xml (see example below).
You will need to register your MD5 certificate for your given keystore
or obtain a temporary base on the debug.keystore provided by Android
SDK.
<view class="com.google.android.maps.MapView"
android:id="@+id/myMap"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:apiKey="09xRwy63ZPP7H0xYAIZ_Rh2zagheLvwdaXcoSceafzVPF"/>
Confirm the following:
Gotcha 2.Application does not connect to internet (http
connection errors)
Resolution 2.Add the internet permission to manifest file
<uses-permission
android:name="android.permission.INTERNET"></uses-permission>
Gotcha 3.Class not found error, can not resolve super class
Resolution 3.add <uses-library
android:name="com.google.android.maps" /> as a child to <application
/application> in manifest file
Check or logs for errors, they will point you in the right direction.
Regards,
Kure
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of John Cola
Sent: Friday, January 16, 2009 4:59 PM
To: android-framework
Subject: Re: How to test GPS
Hi Mike
Thanks! After taking a closer look at the code and yes, it seems to be
optional. It is specifically design for HTC "native_supports_xtra"
Hi Kure
Thanks for your big help! I have tested it on emulator and it can work
fine with Maps.apk.
But it also prove my Location application, written by myself, can not
retrieve the longitude and latitude correctly :(
I referecne the GPS location implementation from open source "mydroid
\packages\apps\Camera\src\com\android\camera\Camera.java"
(Seems like the Camera application has some features about GPS)
Do you have any idea to program the Android application to retrive the
GPS information? I've tried both NETWORK_PROVIDER and GPS_PROVIDER just
as Camera application does but it is failed to get the GPS information.
John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---