Android :: Error When Write Code Import Com.google.android.maps.MapView

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."

Android :: error when write code import com.google.android.maps.MapView


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 View Related

Android :: Import For Google Maps

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

Android :: Proxy Server Don't Allow To Import Google Maps

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

Android :: Google Maps & Apps With Mapview Have Different Current Positions

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

Android :: Google Maps & Apps With Mapview Have Different Current Positions Options

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

Android :: Google Maps - MapView - Draw A Nice Flight Route Between 2 Points

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

Android :: Can't Find/import The Com.google.android.maps Library/package?

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

Android :: How To Get Source Code Of Google Maps For Sdk 1.5

Jul 3, 2009

Do anybody know how can I get the source code of Google maps for android sdk1.5, if the version of Google maps for android sdk 1.5 is same with the version of Google maps for android sdk 1.0? Can I build the source code of Google map v1.0 with the source code of sdk 1.5 to a same imge?

View 2 Replies View Related

Android :: Out Of Memory Error When Using Google Maps API

Sep 29, 2010

I have an application here that has a feature of showing a POI on the map. It's only one POI and it is only drawn when it's actually within the visible screen area. It works perfectly for a while but if I play around zooming in and out and dragging, it will eventually crash. According to Logcat, the reason is always an OutOfMemory error.

At first, I thought it was a bug on the Google Maps API. After some researching and seeing some Romain Guy posts, I was kind of convinced that I had done something stupid on my app that kept me running out of memory from time to time. Then I ran some more detailed tests with Heap Analyzer (Eclipse) on and I saw that even though I had 2+, sometimes 3+ megabytes left of free memory, I was still getting those annoyings Force Close messages caused by OutOfMemoryError. Most of the times it crashes when trying to alocate some 614kb chunk of memory regardless of how much I have left.

This problem happens a lot on Nexus One 2.2.1 and on HTC Evo 2.1. After some little testing, I got no crash neither on G1 1.6 nor Samsung Galaxy S i9000 2.1. But I cannot say for sure the G1 and Galaxy will not show this problem after more testing. I can only think of a memory fragmentation problem. I hope this problem has a solution. I will also be glad if I can just catch this error and prevent the app from crashing.................

View 1 Replies View Related

Android :: How To Write Android.mk For An Application Using Com.google.android.maps.jar

Aug 26, 2010

I am developing an application using com.google.android.maps.jar It is OK to develop it with Eclipse SDK. but an build-error happens when building system.img with GMS licence (com.google.android.maps.jar is already installed at out/target/common/ obj/JAVA_LIBRARIES/com.google.android.maps.jar_intermediates/ com.google.android.maps.jar)

make: *** No rule to make target `out/target/common/obj/JAVA_LIBRARIES/ com.google.android.maps.jar_intermediates/javalib.jar', needed by `out/ target/common/obj/APPS/LifeStory_intermediates/classes-full- debug.jar'. Stop.

Here is my Android.mk

CODE:.............

View 4 Replies View Related

Android :: Unable To Import Import Com.google.android.gtalkservic­e.IGTalkSession

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

HTC EVO 4G :: Google Maps Location Error?

Jun 26, 2010

Is anyone having issues with Google Maps being able to pinpoint your exact location while using the Evo?I used to use Google Maps all the time on my MyTouch, and it would always find my exact location with no problem. But I used it for the first time today on my Evo, and it was always a couple of streets off (not "general" location with the transparent blue circle, but "exact" location w/no circle). This is very inconvenient when using Navigation because it keeps wanting to redirect from a place that I'm not at.I made sure my GPS was on before I started using Maps. I haven't tried using Sprint Nav or any other Nav apps, so I'm not sure if it's a problem with Google Maps, or the Evo GPS.

View 6 Replies View Related

Android :: Possible To Show My Maps In MapView?

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

HTC Hero :: VillainROM 10.3.0 - Google Maps Error

Jun 22, 2010

I just installed VillainROM 10.3.0 Final and so far I noticed that Google Maps is not working.

View 6 Replies View Related

HTC Desire :: Google Maps - My Location Error

Sep 18, 2010

I am having trouble with Google Maps in my HTC Desire. When I look at My Location, it is completely wrong. When I rotate my phone, the arrow turns round, but the location is nowhere near where I actually am. Anybody have any idea what I can do about this, as I really need to use this feature.

View 4 Replies View Related

Motorola Droid X :: Car Dock And Google Maps Navigation Error

Jul 22, 2010

Just got off the phone with two VZW reps who couldn't give me an answer and suggested that I use VZ Navigator since Verizon can support that software, LOL. My Problem: Used Google Maps Navigator for the first time today. Was using my Motorola Car Dock I purchased and got the address put in and everything then tapped "Navigate". Si there I am and have my nice map view of the route I'm taking and every 30 or so seconds it would flip to a grey screen with multiple tiered options, first of which was "my location" and the address. Below that was the option to tap "Navigate" again which took me back to the map view as it should be. Problem is that it just kept popping back into the grey tier screen every 30 or so seconds. I took it off the dock and this doesn't seem to be happening while not on the dock although I get another message telling me to detach the charger from the wall to conserve battery...WTF? After speaking in depth with VZW reps they seem clueless. First rep told me to try and uninstall Google maps and reinstall (which come to find out I can't do after speaking to the second rep) while the second rep seemed to want to glorify his Droid Incredible and how great it was over the Droid X. he offered to reset my phone but advised I would have to sync all my contacts again, redo all my widgets and reconfigure all my e-mail addresses. Anybody else experiencing this problem with the car Dock and Google Navigation?

View 7 Replies View Related

Motorola Droid :: Error Downloading Update For Google Maps

Nov 5, 2010

My phone has been unsuccessfully trying to download the update for googlemaps.I've tried stopping, and restarting but it still won't work.Is anyone else having this problem? And is there a way to fix it?

View 7 Replies View Related

General :: Spice Mi-350 Phone - Google Maps Error After Rom Flash

Jan 9, 2013

I'm using a Spice Mi-350 phone (It is the same as Lenovo A60). On the stock Google Maps worked perfectly. But recently i flashed Yonip 5.3.7 Rebirth ROM. Since then Google Maps does not work anymore. When ever i open it, it says 'This application requires a working data connection'. I have a fully working data connection and every other app on my phone can access the internet except for Google Maps and it's related apps(like Navigation,Places,Local,etc).

Here is the download link for the Yonip 5.3.7 Rebirth ROM. [URL] .....

View 8 Replies View Related

Android :: FindViewById Returns Null MapView When Following Maps Tutorial

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

Android :: MapView Has Bad Resolution Comparing To Generic Maps / Solution To This?

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

Android :: How To Import Individual Projects From Source Code?

Jul 13, 2010

As far as I understand, all the built-in standard apps like (email, music, calendar etc) are built using the same API. So I should be able to import a project like mail / music etc without checking out the full source repository of android. I'v been trying that but I am getting compilation problems like class resolve failure. Am I doing it wrong? What do I have to do to import a project in eclipse without compilation error. I am interested in the Music application.I have setup the latest android eclipse plugin and run test applications with it, so my setup is OK.

View 3 Replies View Related

Android :: Weird MapView - PixelConverter Error

Sep 28, 2010

I have an application based on the MapActivity. The application drops ItemizedOverlay items on the map as you start to move about. It has been running with no problems until I dropped it into a Nexus 2.2 phone.

I'm running into a weird problem where sometimes when I zoom in/out too fast, or pan too fast, the MapView will go "white" and my Overlay items will get shoved into the upper left hand corner.

The only error I've seen in my log is:

CODE:..........

My Map keys are working fine. I have internet permissions setup on the phone too.

I'm scratching my head over this one.

View 1 Replies View Related

Android :: How To Import And Compile FBReaderJ Source Code Into Eclipse - Windows?

Sep 16, 2010

I want to import and compile FBReaderJ on eclipse. I have downloaded the latest source code from their website. Is it necessary to install NDK and cygwin for compiling FBRreaderJ.

View 1 Replies View Related

Android :: How To Write Apps For Droid In C Code?

Nov 24, 2010

We all know that Android runs Dalvik VM programs. Normally developers write programs in Java and they compile it to Dalvik bytecode. I wonder if it would be possible to create a compiler that can take C# code and compile it into Dalvik bytecode.

View 1 Replies View Related

Android :: Need To Write Code That Is Activating GPS On Phone?

Aug 26, 2009

I have written an android app that needs the GPS capabilities of the phone. If GPS is activated everything works fine, but if it is not i get an error. So my question: Is it possible to write code that is activating GPS on the phone? I found a forum post that it is not possible because of security reasons. Is this true?

View 3 Replies View Related

Android : Write Code For Send Email From App?

Sep 14, 2010

I want to send email from my application,how can write code for send email from my application,have any setup for email?

View 1 Replies View Related

Android :: How To Write Code That Can Be Easily Ported To Iphone

Sep 10, 2010

I'm looking for a way to easily port content driven applications from one mobile platform to another. Currently HTML5+js seems to be the only language that can be easily reused.Can you share your experience? I'm looking for a way to go forward.

View 2 Replies View Related

Android :: Write Code For Store Image In Sdcard

Sep 8, 2010

I want to store image in sdcard using android coding,Anybody know the code for image store in sdcard using Android coding..

View 1 Replies View Related

Android :: How To Write Code / Compile Phone App On Machine?

Nov 18, 2009

Is it possible to write the code/compile Android application on one machine and debug it remotely on the emulator launched on another? I'm sick and tired of the emulator constantly eating half of my laptop's processor.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved