[android-developers] best way to go from GeoPoint to Location

2009-11-25 Thread tatman
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

[android-developers] Re: question about mapview "data"

2009-11-18 Thread tatman
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). > > >

[android-developers] Re: question about mapview "data"

2009-11-18 Thread tatman
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

[android-developers] question about mapview "data"

2009-11-18 Thread tatman
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

[android-developers] Re: custom ArrayAdapter compile error

2009-11-05 Thread tatman
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

[android-developers] Re: custom ArrayAdapter compile error

2009-11-05 Thread tatman
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

[android-developers] custom ArrayAdapter compile error

2009-11-05 Thread tatman
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

[android-developers] Re: problem with TabHost

2009-10-29 Thread tatman
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

[android-developers] problem with TabHost

2009-10-28 Thread tatman
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