wood burning stoves 2.0*
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
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?