This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Android and the fly likes Eclipse not create a location(string) object. Why? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Eclipse not create a location(string) object. Why?" Watch "Eclipse not create a location(string) object. Why?" New topic
Author

Eclipse not create a location(string) object. Why?

fahimeh hashemian
Ranch Hand

Joined: Aug 07, 2012
Posts: 84
Hi
I want to calculate distance between two point by google map. i searched and i think that i use of Location object but when i write this:


Eclipse writes The android.location.Location; conflicts with a type defined in the same file. and when i create a location object Eclipse writes The constructor Location(string) is undefined.



I asked this of one, and he say to me, i create a package but i can't understand why i create a package!

What is the problem? What should i do? Cheers
 
 
subject: Eclipse not create a location(string) object. Why?
 
Similar Threads
it doesn't give me the country name
Object Read problem
Problem in Obtaining Location using GPS
gps not getting user location
Is there a way to force Location Updates Via cell Tower?