Re: [android] Maps application
Cédric Berger wrote: > I see no reason why google would not allow the use of this API. Not > open sourcing it is one thing, but it is an important piece of their > framework, and their goal is to spread the use of android and its > applications... I agree completely! Now if someone from Google would chime in... :-) > I have installed Andnav 2. Looks really promising. I do not know if it > can run without google.map API (since I did add the library for other > tests) > Andnav1 was depending on it and its data. But due to licence issues, > (for advanced use as navigation, offline cache,...), version 2 uses > OSM. It seems that Andnav is not open source, while osmdroid is GPL3. Same developer name in both places, so I'm guessing that Andnav uses osmdroid under the "I can relicense my code to myself" exception. Apparently he plans to start charging for Andnav, but he's also asking for donations to fund a US server. Sounds like there's still some confusion about a business model. osmdroid may still be a good option for an unencumbered Maps API for Android, especially if Google doesn't make their maps API distributable on devices running open source Android. What I'd really like to see is a cloned (i.e. just change package name), open source reimplementation of the Google maps API with pluggable back ends that make it easy to use various map sources including OSM. I guess I should stop talking about it and start coding. Jim ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [android] Maps application
On Fri, Dec 5, 2008 at 21:45, Jim Ancona <[EMAIL PROTECTED]> wrote: > IANAL, but the SDK license agreement says "Except to the extent required > by applicable third party licenses, you may not load any part of the SDK > onto a mobile handset or any other hardware device except a personal > computer, combine any part of the SDK with other software, or distribute > any software or device incorporating a part of the SDK." I would read > that as prohibiting even installing anything from the SDK on your own > phone, never mind distributing it. > Yes, the point missing here is the "applicable third party licence". (and it is not even really third party !). I see no reason why google would not allow the use of this API. Not open sourcing it is one thing, but it is an important piece of their framework, and their goal is to spread the use of android and its applications... > Even if the API were available, Google's TOS are fairly restrictive (see > http://code.google.com/android/maps-api-signup.html). In particular, > you may not "use the Service or Content with any products, systems, or > applications for or in connection with (a) real time navigation or route > guidance based on position input from a sensor (including but not > limited to any visual or audible turn-byturn route guidance)". That > seems to prohibit even using the GPS to indicate the direction to your > destination. > > To avoid all these issues, one alternative is OSMdroid, a > reimplementation of the Maps API using Open Street Maps data. It's at: > > http://code.google.com/p/osmdroid/ > I have installed Andnav 2. Looks really promising. I do not know if it can run without google.map API (since I did add the library for other tests) Andnav1 was depending on it and its data. But due to licence issues, (for advanced use as navigation, offline cache,...), version 2 uses OSM. I will try the GPS tracking soon. For now, I could not test much because I cannot get internet connectivity with Android on my neo. But I cached some maps within Andnav2 in the Emulator, then copied them onto my neo, so I can navigate the maps now. (to try Andnav, you have to register on their site, but for I think it is not yet opened to the US) http://www.andnav.org/ http://www.andnav.org/index.php/community-forum?task=viewtopic&id=12 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [android] Maps application
Cédric Berger wrote: > Hi, > Is the Android Maps application available somewhere ? > > I installed the Maps.apk I got from the Emulator. > It also needs /system/framework/com.google.android.maps.jar (I also > pulled it from Emulator) > > - are there legal issues to distribute them ? IANAL, but the SDK license agreement says "Except to the extent required by applicable third party licenses, you may not load any part of the SDK onto a mobile handset or any other hardware device except a personal computer, combine any part of the SDK with other software, or distribute any software or device incorporating a part of the SDK." I would read that as prohibiting even installing anything from the SDK on your own phone, never mind distributing it. Since, as you noted, the Maps API jar is not included in the open source release, it's currently impossible to run any apps using the Maps API on a device running the open source distribution. A number of people (including me) have asked on the Android groups about Google's intentions, but I haven't seen any answers. Even if the API were available, Google's TOS are fairly restrictive (see http://code.google.com/android/maps-api-signup.html). In particular, you may not "use the Service or Content with any products, systems, or applications for or in connection with (a) real time navigation or route guidance based on position input from a sensor (including but not limited to any visual or audible turn-byturn route guidance)". That seems to prohibit even using the GPS to indicate the direction to your destination. To avoid all these issues, one alternative is OSMdroid, a reimplementation of the Maps API using Open Street Maps data. It's at: http://code.google.com/p/osmdroid/ It's not an exact clone of the Google API, so you will probably have to make some changes to your code to use it. It is GPL3 licensed and the OSM data is under a Creative Commons license, so you don't have to worry about Google's restrictions. Jim ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [android] Maps application
Cédric Berger wrote: > Hi, > Is the Android Maps application available somewhere ? > > I installed the Maps.apk I got from the Emulator. > It also needs /system/framework/com.google.android.maps.jar (I also > pulled it from Emulator) > > - are there legal issues to distribute them ? If they are on the SDK... :o -- Treviño's World - Life and Linux http://www.3v1n0.net/ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [android] Maps application
On Fri, Dec 5, 2008 at 09:04, Cédric Berger <[EMAIL PROTECTED]> wrote: > - I finally got a GPS fix ! (but I really miss a simple GPS > application to see basic GPS data.) > But Maps crashes as soon as GPS has got a fix. ( ClassCastException > when trying to locate on map). I lost my log file so I need to do > another test (and get a fix) to get the exact class > Any idea ? : > Finally got the log when trying to locate : /AndroidRuntime( 5729): Shutting down VM W/dalvikvm( 5729): threadid=3: thread exiting with uncaught exception (group=0x40010e28) E/AndroidRuntime( 5729): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 5729): java.lang.ClassCastException: android.graphics.drawable.BitmapDrawable E/AndroidRuntime( 5729):at com.google.android.maps.MyLocationOverlay.getLocationDot(MyLocationOverlay.java:179) E/AndroidRuntime( 5729):at com.google.android.maps.MyLocationOverlay.drawMyLocation(MyLocationOverlay.java:541) E/AndroidRuntime( 5729):at com.google.android.maps.MyLocationOverlay.draw(MyLocationOverlay.java:491) E/AndroidRuntime( 5729):at com.google.android.maps.OverlayBundle.draw(OverlayBundle.java:45) E/AndroidRuntime( 5729):at com.google.android.maps.MapView.onDraw(MapView.java:451) E/AndroidRuntime( 5729):at android.view.View.draw(View.java:5352) E/AndroidRuntime( 5729):at android.view.ViewGroup.drawChild(ViewGroup.java:1436) E/AndroidRuntime( 5729):at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1208) E/AndroidRuntime( 5729):at android.view.ViewGroup.drawChild(ViewGroup.java:1434) E/AndroidRuntime( 5729):at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1208) E/AndroidRuntime( 5729):at android.view.ViewGroup.drawChild(ViewGroup.java:1434) E/AndroidRuntime( 5729):at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1208) E/AndroidRuntime( 5729):at android.view.View.draw(View.java:5355) E/AndroidRuntime( 5729):at android.widget.FrameLayout.draw(FrameLayout.java:324) E/AndroidRuntime( 5729):at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1701) E/AndroidRuntime( 5729):at android.view.ViewRoot.draw(ViewRoot.java:980) E/AndroidRuntime( 5729):at android.view.ViewRoot.performTraversals(ViewRoot.java:829) E/AndroidRuntime( 5729):at android.view.ViewRoot.handleMessage(ViewRoot.java:1103) E/AndroidRuntime( 5729):at android.os.Handler.dispatchMessage(Handler.java:88) E/AndroidRuntime( 5729):at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 5729):at android.app.ActivityThread.main(ActivityThread.java:3742) E/AndroidRuntime( 5729):at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 5729):at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime( 5729):at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739) E/AndroidRuntime( 5729):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) E/AndroidRuntime( 5729):at dalvik.system.NativeStart.main(Native Method) I/Process ( 869): Sending signal. PID: 5729 SIG: 3 I/dalvikvm( 5729): threadid=7: reacting to signal 3 I/dalvikvm( 5729): Wrote stack trace to '/data/anr/traces.txt' - Note that I also have a lot of these logs. Maybe "normal" since I have no connection so no map tiles available, but it should not try (and fail) to show empty tiles... D/skia( 5729): xxx jpeg error 53 Not a JPEG file: starts with 0x%02x 0x%02x E/MapView ( 5729): IllegalStateException on drawMap. Wiping cache. E/MapView ( 5729): java.lang.IllegalStateException: Null Bitmap!/loading_tile.png=17301864 E/MapView ( 5729): at com.google.common.graphics.android.AndroidImage.(Unknown Source) E/MapView ( 5729): at com.google.common.graphics.android.AndroidImageFactory.createImage(Unknown Source) E/MapView ( 5729): at com.google.googlenav.map.MapTile.c(Unknown Source) E/MapView ( 5729): at com.google.googlenav.map.MapTile.getImage(Unknown Source) E/MapView ( 5729): at com.google.googlenav.map.Map.a(Unknown Source) E/MapView ( 5729): at com.google.googlenav.map.Map.drawMap(Unknown Source) E/MapView ( 5729): at com.google.android.maps.MapView.drawMap(MapView.java:997) E/MapView ( 5729): at com.google.android.maps.MapView.onDraw(MapView.java:443) E/MapView ( 5729): at android.view.View.draw(View.java:5352) E/MapView ( 5729): at android.view.ViewGroup.drawChild(ViewGroup.java:1436) E/MapView ( 5729): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1208) E/MapView ( 5729): at android.view.ViewGroup.drawChild(ViewGroup.java:1434) E/MapView ( 5729): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1208) E/MapView ( 5729): at android.view.ViewGroup.drawChild(ViewGroup.java:1434) E/MapView ( 5729): at android.view.ViewGroup.dispatchDraw(
[android] Maps application
Hi, Is the Android Maps application available somewhere ? I installed the Maps.apk I got from the Emulator. It also needs /system/framework/com.google.android.maps.jar (I also pulled it from Emulator) - are there legal issues to distribute them ? - I still have no internet connectivity so could not try much, but it seems to work, I can navigate and zoom in empty map screen. - I finally got a GPS fix ! (but I really miss a simple GPS application to see basic GPS data.) But Maps crashes as soon as GPS has got a fix. ( ClassCastException when trying to locate on map). I lost my log file so I need to do another test (and get a fix) to get the exact class Any idea ? : ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community