Error On Import Com.google.android.maps.geopoint
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error importing com.google.android.maps up vote 1 down vote favorite Hi Im playing around with an android map app tutorial, but I'm getting lots of errors because I dont seem to be importing the com.google.andoid.maps package properly because eclipse is giving me an error for the import and any of its classes. Is there any reason why it shouldnt be working. import com.google.android.maps.*; import android.os.Bundle; import android.view.KeyEvent; import android.view.Window; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class ShowTheMap extends MapActivity { private static double lat; private static double lon; private int latE6; private int lonE6; private MapController mapControl; private GeoPoint gp; private MapView mapView; private Button overlayButton, accessButton; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); // Suppress title bar for more space setContentView(R.layout.showthemap); // Add map controller with zoom controls mapView = (MapView) findViewById(R.id.mv); mapView.setSatellite(false); mapView.setTraffic(false); mapView.setBuiltInZoomControls(true); // Set android:clickable=true in main.xml int maxZoom = mapView.getMaxZoomLevel(); int initZoom = maxZoom-2; mapControl = mapView.getController(); mapControl.setZoom(initZoom); // Convert lat/long in degrees into integers in microdegrees latE6 = (int) (lat*1e6); lonE6 = (int) (lon*1e6); gp = new GeoPoint(latE6, lonE6); mapControl.animateTo(gp); // Button to control food overlay overlayButton = (Button)findViewById(R.id.doOverlay); overlayButton.setOnClickListener(new OnClickListener(){ public void onClick(View v) { } }); // Button to control access overlay accessButton = (Button)findViewById(R.id.doAccess); accessButton.setOnClickListener(new OnClickListener(){ public void onClick(View v) { } }); } // Method to insert latitude and longitude in degrees public static void putLatLong(double latitude, double longitude){ lat = latitude; lon =longitude; } // This sets the s key on the
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up import com.google.android.maps.geopoint cannot be resolved http://stackoverflow.com/questions/14939326/error-importing-com-google-android-maps up vote 9 down vote favorite 1 I have Java GoogleMAP project.This is not android project. I have done this project previous using KML. Now Google has changed to JSON/XML. I need to save coordinates within 2 location in database -postgresql. Then accroding to that i will draw the path in MAP. Now the problem is : GeoPoint cannot be resolved to a type . http://stackoverflow.com/questions/12000024/import-com-google-android-maps-geopoint-cannot-be-resolved I import like this also import com.google.maps.GeoPoint;. This also show as red mark. Please let me know what is an issues or problem? I google it. No luck. All are mention about android google api setup. Not an android project... please help me.. Thanks in advance. java google-maps google-maps-api-3 map share|improve this question edited Aug 17 '12 at 5:18 asked Aug 17 '12 at 4:58 Piraba 1,437962110 add a comment| 7 Answers 7 active oldest votes up vote 57 down vote Go to project properties, and go to Android. Select "Google API" instead of Android x.x. It works for me and ideally should work for you too. share|improve this answer answered Sep 7 '12 at 12:43 N Panigrahy 3,36382965 1 this is the correct solution in most cases. –tony gil Dec 6 '12 at 3:27 2 The question says 'Not an android project' –billynomates Mar 1 '13 at 17:43 +1 this works for me :) –Zubair Ahmad Khan Feb 8 '14 at 5:22 1 LOVE YOU DUDE!!! –user3182266 Mar 19 '14 at 13:40 Absolutely perfect... –i.n.e.f Apr 22 '14 at 6:56 | show 1 more comment up vot
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring http://stackoverflow.com/questions/9950344/cant-import-com-google-android-maps-mapview developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question http://stackoverflow.com/questions/31851054/android-google-maps-geopoint-issue x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up can't import com.google.android.maps.MapView up vote 6 down vote favorite Unfortunately after a long day searching I couldn't find anything useful for me. My Problem is that I couldn't use "extend MapActivity" or error on rather import the libary. I tried to use "Google API" insted of "Android API" like recomended in some other threads but the problem is that I have no "Google API" in my SDK Manager to download or choose. My Android SDK Manager So, I have in my "Android SDK Manager" just the Android Apis from "Android 1.5 (API 3)" to "Android 4.0.3 (API 15)" and no "Google API". Here is an example where the "Google API" is available inside error on import the "Android 4.0.3 (API 15)" Installing the Google APIs... Is there any posibility to download or import the "Google API" in a different way or am I doing something wrong? java android eclipse eclipse-plugin maps share|improve this question edited Aug 30 '12 at 4:20 Templar 2,91972536 asked Mar 30 '12 at 21:00 Yves 75111524 Go to properties of your project and then on separator Android choose Google API's for your current platform. Hope this helps you –Pedro Romao Apr 17 '13 at 16:31 add a comment| 2 Answers 2 active oldest votes up vote 12 down vote I had the same problem with a different solution, I right clicked on my project in the Package Exploere and selected "Build Path->Configure Build Path" Selected "Java Build Path" and the "Libraries" tab Selected "Add External Jar" Navigated to my sdk/add-ons/addon-google_apis_google_inc_-/libs Selected "maps.jar" I was then able to import com.google.maps.* share|improve this answer answered Apr 1 '12 at 16:42 user330844 48669 add a comment| up vote 3 down vote You may want to add the "Android" tag to your question to get better help. The "Google APIs" should be listed within 'some' of the Android API's as a subcatory on the Android SDK Manager. I just checked my SDK manager and Google Apis can be selected and installed within Android 1.6, 2.1 and 4.0 Hope this helps, if not re-download and re-install the Android SDK mana
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Android Google Maps GeoPoint issue up vote -1 down vote favorite I know it's have been asked several time, but in all answers, i don't find solution so I come to ask myself. In an Activity named "DeAs" I have an adress editText, and I want to display a list of potential adress below the editText the user is editing. So first in the Android Manifest, I've wrote this: