Discussion Forums  >  Uncategorized

Replies: 11    Views: 4981

jackw
Lost but trying
Profile
Posts: 14
Reg: Dec 17, 2010
Surber, VA
140
12/27/10 07:08 AM (15 years ago)

Missing com.google.android.maps.GeoPoint

The com.google.android.maps code package is described at http://code.google.com/android/add-ons/google-apis/reference/index.html and this package is supposed to be in the standard developer SDK. Yet I've downloaded standard developer SDK and every other SDK I can from Google into my Android directory using Eclipse, but I am still missing com.google.android.maps.GeoPoint. Has anyone run into this problem or have a suggestion on how to download this package?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
12/27/10 11:51 AM (15 years ago)
If you're sure you have the Google Maps code-base installed (like the URL you listed describes) be sure to see the README.txt file that was included in the buzztouch download. There are a few lines of code that you'll need to uncomment to 'enable maps'
 
jackw
Lost but trying
Profile
Posts: 14
Reg: Dec 17, 2010
Surber, VA
140
like
12/31/10 05:07 PM (15 years ago)
I finally figured out how to get my Android Maps API Key for debugging. Made changes mentioned in the Redame.txt file to both the res/value/strings.xml and AndrodManifest.xml file. Eclipse does not give errors. However, the Android simulator gives this Message: >>> Maps Not Configuredr Maps not configured properly. See: showLocationMap() method in src/ACT_ActivityBase.java
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
12/31/10 05:10 PM (15 years ago)
Awesome... you're well on your way ;-) Did you look at the ACT_ActivityBase.java file? Review the README.txt file and the method in ACT_ActivityBase.java. You need to uncomment a few lines of code. The instructions on how to do this should be in the README.txt. Glad to hear you have the maps plugins setup.
 
Zoid66
Lost but trying
Profile
Posts: 176
Reg: Oct 26, 2010
USA
1,760
like
12/31/10 09:13 PM (15 years ago)
Here is a few more details for others: Open Eclipse once opened go to Window / Android SDK and AVD Manager: You should see Installed packages: See if Google API's by Google Inc, Android API 4, revision is listed: If it is not you will need to add this: To do so in the Android SDK and AVD Manager on the left you should see Available packages click Third Party Add-ons this should get you going.. After doing so you may need to close down eclispe and re import the project.
 
jackw
Lost but trying
Profile
Posts: 14
Reg: Dec 17, 2010
Surber, VA
140
like
01/01/11 08:14 AM (15 years ago)
Still have errors in src marked by **: package com.v1_4.B130730D81EC45D4.com; **import com.google.android.maps.GeoPoint; public class Obj_MapLocation{ ** GeoPoint point; Made all Readme.txt changes and have Google API's by Google Inc, Android API 4. Only have one debugging Map API key entered in res/values/strings. Could this be problem?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/01/11 12:15 PM (15 years ago)
Probably not... zip up your project and send it to info at buzztouch.com, I'll get a look at it sometime this weekend ;-)
 
jackw
Lost but trying
Profile
Posts: 14
Reg: Dec 17, 2010
Surber, VA
140
like
01/01/11 01:55 PM (15 years ago)
Finally figured it all out and now Google maps works great in my app. In addition to the readme changes, I had to make two other changes: 1. In Eclipse Preferences for Android select Target Name Google APIs Vendor Google Inc. Platform 1.6 API 4 then click Apply. [That got rid of all the code errors.] 2. A virtual device must be created using the Target Name Google APIs (Google Inc.) [That made the emulator work with Google Maps.] Thanks for all your help.
 
weztcoazt
Aspiring developer
Profile
Posts: 17
Reg: Jan 06, 2011
North of Seattl...
170
like
01/09/11 11:39 AM (15 years ago)
Adding to this thread...I have successfully played with my app through the emulator, now ready to make sure everything works. I was wondering WHEN you make the changes mentioned in the Readme.txt file. Is it before you open in Eclipse? What happens to the app if you make changes to the files after it has been compiled? Basically I downloaded app, got it working then went back to files to change and now it's saying the AndrodManifest.xml is missing (error in eclipse). Can someone help me with a step by step?
 
jackw
Lost but trying
Profile
Posts: 14
Reg: Dec 17, 2010
Surber, VA
140
like
01/09/11 11:58 AM (15 years ago)
The changes in the Readme.txt file contained in your downloaded project describes changes that must be made to your AndrodManifest.xml and Act_ActivityBase.java files in order to get Google maps to work. You can start Eclipse and then double-click Readme.txt to read what changes are needed. I had to make two other changes: 1. In Eclipse Preferences for Android select Target Name Google APIs Vendor Google Inc. Platform 1.6 API 4 then click Apply. 2. A virtual device must be created using the Target Name Google APIs (Google Inc.)
 
weztcoazt
Aspiring developer
Profile
Posts: 17
Reg: Jan 06, 2011
North of Seattl...
170
like
01/09/11 01:29 PM (15 years ago)
UPDATE: I reread the readme a few dozen times along with all the forum posts and jackw's tip got my maps working! Let me reword my question. Can I make the changes outlined above AFTER i have imported into Eclipse and am running the app in an emulator? Or is it something that needs to happen before you load in eclipse. Thanks for your patience with me...
 
jackw
Lost but trying
Profile
Posts: 14
Reg: Dec 17, 2010
Surber, VA
140
like
01/11/11 04:16 PM (15 years ago)
I'm not sure, but I made the changes AFTER importing into Eclipse and BEFORE running the emulator. The emulator would only work after I made the two numbered changes I mentioned on my 12/17 post.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.