Android :: Unable To Import Com.google.android.maps.MapView?
Nov 13, 2010
import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;
import android.view.ViewGroup;
import android.widget.*;
import com.google.android.maps.MapView;
public class MapView extends MapActivity{
/** Called when the activity is first created. */
LinearLayout linearLayout;
MapView mapView;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.map);
mapView = (MapView) findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(true);
MapController mapController = mapView.getController();
}
}
View 2 Replies
Mar 29, 2010
i am new to android development. I got an error when write the code "import com.google.android.maps.MapView; in eclipse. The error is "The import com.google can not be resolved."
View 2 Replies
View Related
Apr 16, 2010
I am implementing GTalk sample application by refering some book But they mentioned the following imports import
com.google.android.gtalkservice.IGTalkSession; import com.google.android.gtalkservice.IGTalkService; import com.google.android.gtalkservice.GTalkServiceConstants; import com.google.android.gtalkservice.IChatSession;
But when i am importing it is giving me error the import can't be resolved. I tried those above imports for the following targets 1.1, 1.5, Google api, 1.6.Google api, 2.0, Google api, 2.0.1,Google api, 2.1, Google api No where the above imports found I am unable to import above things.
View 2 Replies
View Related
Oct 18, 2010
I was successfully using google maps in my application but then needed to change the Android SDK version from 1.5 to 2.0. Now the import for Google maps can't be resolved.
View 1 Replies
View Related
Oct 11, 2010
I have done all the necessary settings of proxy in my emulator using comand line as well as Graphical from the emulator's mobile settings. By doing this internet browsing is running in my emulator, but when i run my project to import google maps in my application, Only grid shown having no maps on it. I think proxy server donn't let it to download maps from the site.
View 1 Replies
View Related
Jul 20, 2010
I have a mapview where I want to track the user's current location. GPS as well as 'use wireless networks' is activated in my phone settings.
Nevertheless, since I'm indoor I don't get a GPS fix, therefore the location is determined via network; wifi spot is available.
I have the Google Maps app running as well as my application running.
Strangely, the current location differes between Google Maps and my application, where the Google Maps is very accurate while in my app the location is somehow off a few 100 meters.
In my application I basically do the following (for debugging purposes now):
1) initially place one marker on the map: geopoint retrieved via locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
2) initially place another marker on the map: geopoint retrieved via locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
This will put the last known locations of both providers onto the map (eventually last known from outside my app).
3) then for the regular updates (since I don't get a GPS fix anyway indoor here), I do:
locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, baseLocationListener);
You can see for the frequency and distance I pass the 0 param in both cases.
In the app manifest, the following permissions are granted:
android.permission.ACCESS_COARSE_LOCATION
android.permission.ACCESS_FINE_LOCATION
android.permission.ACCESS_MOCK_LOCATION
Actually my baseLocationListener does get called, which I see in the log, but the updated location is somehow the same as the last known current position (of LocationManager.NETWORK_PROVIDER), same lat/lng.
I thought maybe I overlooked something or missed a parameter or setting, or my code has a bug. Therefore I installed some other (3 in total) LBS apps from the Android market that also show the current user's location. The current locations displayed in those apps are equals to the one in my application - and they're all some 100 meters off - but at least all the same.
See the screenshot here:
http://img33.imageshack.us/img33/8679/mapproblem.png
Now I am wondering:
1) as I understand, getLastKnowLocation is system-wide and not app-wide, why are there differences between the location in Google maps and all the other apps?
2) does Google Maps not update the lastKnownLocation of a provider?
3) does Google Maps use a different custom location provider (i.e. due to licensing reasons) other than GPS_PROVIDER or NETWORK_PROVIDER as they are in the SDK?
4) how do achieve the same accurate result with the NETWORK_PROVIDER like Google Maps does?
View 2 Replies
View Related
Jul 20, 2010
It seems that the problem is in the data quality of the different map provider that are used for Google Maps and MapView in SDK, which differ.
The map tiles coordinates don't seem to be very accurate, just like in the public google maps web api / tiles.
See this screenshot for an example, where I pinned the same geo point. http://img339.imageshack.us/i/gmaps2.png/
The map using the public map api is off a few hundred meters. Seems that we just have to live with it.
CODE:................
View 2 Replies
View Related
Aug 1, 2010
I wonder, how can I draw a nice flight route between 2 points on a google map's MapView? look at this: http://maps.forum.nu/gm_flight_path.html
View 6 Replies
View Related
Jan 3, 2010
I'm learning via a few books w/downloadable code. One of the examples I'd like to get running won't even compile because the IDE can't find/import the com.google.android.maps library/package, which I found odd since I have everything possible installed that the SDK offers. The book info on the publisher site was not helpful either.
I'm using Eclipse (build 20090920-1017) with the ADT 0.9.5 plugin. SDK is fully updated (all available packages installed, including android 1.1 api 2 rev. 1 through android 2.0.1 api6 rev 1, and google apis 3 rev 3 through 6 rev 1.)
View 3 Replies
View Related
Oct 19, 2010
I'm running Cyanogenmod 6. I just noticed that I can't find Google voice or Google maps in the market. I do have the apps installed, but can't see them int he market to get updates. I tried out LFY1.7 and Ultimate Droid 1.0.0, and see the same issue.
View 5 Replies
View Related
Mar 20, 2010
I have a new CLIQ and have been unable to download Google Maps Navigation (with voice instructions) with no success. search Android Markets but Google Maps Navigation does not appear.
View 4 Replies
View Related
Jul 7, 2010
If I long press the home button it keeps showing google maps as running.How do i turn stop this so it wont keep coming back I think its draining my battery
View 13 Replies
View Related
Jan 13, 2010
I updated the firmware on my HTC Hero some time ago from Modaco to Firmware 1.5.I just got an N1, so I restored the Hero to give to my wife, and the next thing I noticed is there was no Google Maps. I went in to the Market and again...I couldn't even pull it in a search even though I pulled it in searches on my N1.
Does anyone know what's up here? Do I need to upgrade my firmware? If so, does anyone have a link to the install?
View 7 Replies
View Related
Aug 31, 2010
The Google map is too older for me, so I create my map in Google map and add some lines and marks. Is there a way to show my maps in MapView?
View 2 Replies
View Related
Jan 19, 2010
This has been posted under the sprint htc hero forum, however i know there are much more people posting here that can help with this problem. Maps works fine, but when I open the app a pop up shows "unable to load the url", its pretty annoying. How can I get rid of this....clearing the cache and defaults did nothing.
View 2 Replies
View Related
Jan 10, 2010
Every time I open Google Maps, a little pop-up window says "Unable to load the URL" The program works fine, it's just kind of annoying. Does anyone else experience this? Is there a known solution? I cleared the cache and data and force-stopped the ap, but it still happens. For what it's worth, the same exact thing happened on my Moment (well, on the Moment Google Maps didn't work at all due to the POS GPS)
View 4 Replies
View Related
Oct 29, 2010
I updated Google Maps to 4.6 yesterday. And I am unable to see one of the main features of the new version i.e. to filter results by open times and neighbourhood etc. When I click on the places icon in my maps, it just shows me the two search filters that I had before - 'Distance' and 'Rating'. Am I the only one who is having this problem? I am on T-Mobile in UK.
View 7 Replies
View Related
Jan 11, 2012
I have started using Waze for my GPS navigation needs. The problem is, I had previously told my phone to use Google Maps Navigation (or simply "Navigation", the one with the blue arrow icon, instead of the other option at the time which was TeleNav GPS Navigator), but I can't seem to remove that default app setting.
I have gone to Settings->Applications->Manage Applications->All to look for the Navigation app and clear "Launch by Default" setting, but it does not appear in the list of apps at all.
Is this a thing about Google apps, that they are kept hidden and forever locked into being your default app once you tell it so? I thought maybe it was part of the regular Google Maps app, but the setting there says there are no defaults set to be cleared.
View 5 Replies
View Related
Jun 4, 2009
I'm following this tutorial here: http://developer.android.com/guide/tutorials/views/hello-mapview.html
and am on point 11
Here's the res/layout/main.xml:
CODE:........
Here's the code:
CODE:........................
View 2 Replies
View Related
Sep 7, 2010
I just received a HTC Desire to test on. I noticed, that a mapView residuing in a frame smaller than a whole screen is not as sharp as a generic maps application. Is there any solution to this?
View 2 Replies
View Related
Jan 6, 2010
I am trying to make screen with Google Map.
This screen has 2 parts. First part includes Button TextView and ListView and places on the top of Screen. Second part includes MapView (Google map) and places on the bottom of Screen.
How to make it ?
I've done it. But no luck. It throws this exception...
View 1 Replies
View Related
Jun 17, 2010
I am trying to import projects from a book "Beginning Android 2" but when I choose the root directory the "Finish" button is still grayed out. I've tried importing the project from scratch with no success, and I've also tried to create a template project with the same name and everything and then importing into that (Import existing projects into workspace) but it always says "No projects are found to import".
The contents of the folder are: Res folder, src folder with .java file, the manifest, build, and default.properties files.
View 1 Replies
View Related
Jan 31, 2010
I have been trying to get this seemingly simple problem fixed for about half a day now. I have a working MapView and I just want to show the default zoom keys and have them there all the time. They do not appear at all - it's not that they appear then go away.
Code...
I have tried commenting out the setZoom and tried moving the setBuiltInZoom controls to the updateLocation method. I've found a lot of posts in relation to this problem but none that solve it.
View 2 Replies
View Related
Sep 25, 2010
I use the google code from devloper.android.com I use that application but in the emulator it shows only the crossed lines not the map so is there any settings in emulator for displaying maps
CODE:.....
Android mainfest
CODE:..................
View 4 Replies
View Related
Jun 2, 2010
I am facing to android application signing problem. My application contains Google MapView. When I compile the app and run on the emulator, MapView works fine. But signed the app, MapView doesn't work. I've get Google Map API. This works on the simulator. I could sign the app once 2 months ago. Then I've upgraded the app. Now I need to sign the app again. Actually I don't know why signed app's mapView doesn't work. How to fix it?
I used following steps when sign the app: Run Eclipse. Select the project. Right Click -> Android Tools -> Export Signed Application Package -> Then Filled forms. (In forms, Validity years: 200, and all passwords are same.)
View 2 Replies
View Related
Jan 30, 2009
Now, I'm developing an Android app called "Echo". But 5 hours ago, My Dev phone haven't displayed MapView. First, I supposed that my API-key have been disabled. I tried to Maps API Key signup agian. But google server response error.
> Server Error > The server encountered a temporary error and could not complete your request.
> Please try again in 30 seconds.
View 4 Replies
View Related
Apr 19, 2010
I don't know how to create an custom Activity extending MapActivity and ListActivity ?
I am trying screen that contains of google map and list view.
How to make it?
View 1 Replies
View Related
Aug 31, 2010
Just wondering if there is a standard/default overlay/marker that I can use in the MAPVIEW?
I have been searching on the web and all tutorials talk about extending the Overlay and put your custom image on it.
Is there a easier way? I just want to have the a marker, nothing fancy.
View 1 Replies
View Related
Feb 16, 2010
An automated scheduling system frequently sends me vCalendar attachments which I used to be able to open and automatically add to my calendar on my WinMo 6.1 phone. I've recently become an Android convert (myTouch 3g) and would like this same data loaded into my google calendar. I share my Google calendar with others, so using a proprietary calendar system isn't much of an option. I'm a programmer, but not on mobile platforms. If the software doesn't exist, I can probably code it up pretty quickly if someone points me in the right direction... ie how to programatically add to a google calendar.
View 4 Replies
View Related
Jul 16, 2010
I had found a lot of stackoverflow post about save an Activity and the reload it.
My question: How can I have an Activity with an MapView and after reload the same mapview?
What is the best way to switch between activity and views?
View 2 Replies
View Related