[android-developers] Finding if two line segments intersect

2009-05-14 Thread Hamilton Turner
Hi all, I have been searching for something like this for a while, finally made what I think is a decent solution on my own, and wanted to share it with the community. Comments would be appreciated, I think I may have some small bugs in the equality checking if the lines are parallel (I

[android-developers] Re: Do Cursor s stay valid across database changes?

2009-05-13 Thread Hamilton Turner
Marco, Thanks for the reply. Do you happen to have a link to this being used? I though a cursor was similar to PHP's handle, meaning that it did not retrieve the data until the data was actively requested, saving on all sorts of things. So if I had a class with 5 cursors, all pointing to

[android-developers] Should I use Cursors, or and Object[] to return data from a DB

2009-05-13 Thread Hamilton Turner
So I have a database with 2 tables. One is the Polygon table, and each row in Polygon can map to multiple rows in the Points table. I want a fetchAllPolygons function, similar to the sample Notepad application. I could do something like this (I could make it better, but that's the main