I have a GeoPoint (point from MapView) object and Location (from
LocationManager) object. I want to compute the distance between the
two. Location has a "distanceTo" function.
I cannot create a new Location object from lat, lon values.
What is the recommended way for doing this?
Matt
--
You
On Nov 18, 3:02 pm, Mark Murphy wrote:
> tatman wrote:
> > At what point would I have more than one instance of my type derived
> > from ItemizedOverlay
>
> Perhaps never. However, you may have more than one overlay (e.g., yours
> and MyLocationOverlay).
>
> >
On Nov 18, 2:37 pm, Mark Murphy wrote:
> tatman wrote:
> > I'm going through the tutorials about mapview. And it seems like
> > there is a lot of "lists" going around and, honestly seems like
> > overkill.
>
> > Is the mapview example accurate in
I'm going through the tutorials about mapview. And it seems like
there is a lot of "lists" going around and, honestly seems like
overkill.
Is the mapview example accurate in that I need to maintain my map data
in 3 lists?
1) override ItemizedOverlay which contains list #1 of
OverlayItem instance
and I now have that fixed too :)
I added/changed this
LayoutInflater vi = (LayoutInflater) getContext().getSystemService
(Context.LAYOUT_INFLATER_SERVICE);
On Nov 5, 4:28 pm, tatman wrote:
> btw Im missing an import in the post: import android.view.ViewGroup;
>
> That fixes the overr
btw Im missing an import in the post: import android.view.ViewGroup;
That fixes the override error.
I now have different compile error. It says getSystemService is
undefined.
Any thoughts?
On Nov 5, 4:17 pm, tatman wrote:
> I'm trying to create my own ArrayAdapter. I'm miss
I'm trying to create my own ArrayAdapter. I'm missing something. I
cannot get the code to compile. The documentation says I need to
override getView. But the compiler isn't seeing getView as a method
defined in the super class. What am I missing?
import android.content.Context;
import androi
On Oct 29, 10:38 am, Kevin Bailey
wrote:
> >
> > > xmlns:android="http://schemas.android.com/apk/res/android";
> > android:id="@+id/tabhost"
>
> Don't know if it will help but my main.xml file says:
>
> android:id="@android:id/tabhost"
indeed! where I got that from IDK. But that d
I cannot get a tabhost with "xml resource" to work. In the debugger I
see the exception "RuntimeException, Your content must have a TabHost
whose id attribute is 'android.R.id.tabhost'
I have set the id of my tabhost element to tabhost. I've also set it
in pretty much every other control. I've
9 matches
Mail list logo