Lect0r / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

Support Android 1.5 #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It looks like the only thing being used that requires Android 1.6 are the zoom 
controls. If they were wrapped by something that checks for their existence 
first through reflection, this should work ok on 1.5, which is still 25% of the 
devices out there.

Original issue reported on code.google.com by bob.hage...@gmail.com on 19 Jun 2010 at 6:11

GoogleCodeExporter commented 9 years ago
Oops, missed the DisplayMetrics.DENSITY_DEFAULT and densityDpi that are in now, 
they'd need to be wrapped as well.

Original comment by bob.hage...@gmail.com on 19 Jun 2010 at 7:03

GoogleCodeExporter commented 9 years ago
The density stuff would be easy enough to do with reflection.

I had a look at doing the zoom controls with reflection a while ago but didn't 
find a solution.  This project was upgraded to 1.6 a long time ago, before I 
started working on it, and now that 1.5 is fading fast it doesn't seem worth 
spending a lot of effort to make it backwards compatible.

If you can provide a nice solution then I'll be happy to use it.

Original comment by neilboyd on 21 Jun 2010 at 10:22

GoogleCodeExporter commented 9 years ago
I managed to get the zoom buttons working with this, feel free to use it.

Original comment by bob.hage...@gmail.com on 3 Jul 2010 at 3:51

Attachments:

GoogleCodeExporter commented 9 years ago
And the diffs needed for DefaultResourceProxyImpl and CloudmadeUtil.

Original comment by bob.hage...@gmail.com on 3 Jul 2010 at 5:22

Attachments:

GoogleCodeExporter commented 9 years ago
I'm interested in 1.5 compatibility too. Thanks for looking into this, 
bob.hagemann!

Original comment by andpet@gmail.com on 3 Jul 2010 at 7:33

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r271.

Original comment by neilboyd on 4 Jul 2010 at 3:18

GoogleCodeExporter commented 9 years ago
Thanks Bob. I've committed everything, with a few minor changes.

Original comment by neilboyd on 4 Jul 2010 at 3:22

GoogleCodeExporter commented 9 years ago
This change should be undone once 1.5 is not used any more, at least in the 
OpenStreetMapViewer app, because the resolution doesn't look very good in 1.5.

Original comment by neilboyd on 5 Jul 2010 at 2:37

GoogleCodeExporter commented 9 years ago
This blog has some nice tips:
http://android-developers.blogspot.com/2010/07/how-to-have-your-cupcake-and-eat-
it-too.html

Original comment by neilboyd on 21 Jul 2010 at 8:03