New version of osmdroid 1.11

47 views
Skip to first unread message

Fabien Carrion

unread,
Jan 11, 2011, 9:03:56 PM1/11/11
to and...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Valentin,

After your commit of the last version of osmdroid, I get this when I
start the whereami activity:

FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity
ComponentInfo{org.androad/org.androad.ui.map.WhereAmIMap}:
android.view.InflateException: Binary XML file line #19: Error inflating
class
org.andnav.osm.views.overlay.OpenStreetMapViewItemizedOverlayControlView
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
at android.app.ActivityThread.access$2300(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #19:
Error inflating class
org.andnav.osm.views.overlay.OpenStreetMapViewItemizedOverlayControlView
at android.view.LayoutInflater.createView(LayoutInflater.java:513)
at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
at android.app.Activity.setContentView(Activity.java:1647)
at
org.androad.ui.map.WhereAmIMap.onSetupContentView(WhereAmIMap.java:239)
at
org.androad.ui.map.OpenStreetMapAndNavBaseActivity.onCreate(OpenStreetMapAndNavBaseActivity.java:98)
at
org.androad.ui.map.OpenStreetMapAndNavBaseActivity.onCreate(OpenStreetMapAndNavBaseActivity.java:50)
at org.androad.ui.map.WhereAmIMap.onCreate(WhereAmIMap.java:353)
at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
... 11 more
Caused by: java.lang.reflect.InvocationTargetException
at
org.andnav.osm.views.overlay.OpenStreetMapViewItemizedOverlayControlView.<init>(OpenStreetMapViewItemizedOverlayControlView.java:35)
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
at android.view.LayoutInflater.createView(LayoutInflater.java:500)
... 24 more
Caused by: java.lang.IllegalArgumentException
at
org.andnav.osm.DefaultResourceProxyImpl.getBitmap(DefaultResourceProxyImpl.java:73)
at
org.andnav.osm.views.overlay.OpenStreetMapViewItemizedOverlayControlView.<init>(OpenStreetMapViewItemizedOverlayControlView.java:42)
... 28 more
Force finishing activity org.androad/.ui.map.WhereAmIMap


You didn't have any troubles? There is nothing to update on the androad
side? I saw quite a bunch of changes on osmdroid.

If I add sqlitejdbc-v056.jar I still get an out of memory exception at
compilation. You never experience this trouble?

Let me know

- --
Fabien Carrion

() Campagne du ruban ASCII -- Contre les mails en html
/\ contre les pieces-jointes Microsoft
Web: http://fabien.carrion.free.fr/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0tDAIACgkQTe/bvZWuSM+JiwCfXdrxvpACd2E+Wk3uG+LPO9/c
zJ8AoJYcRfK1njYwnMSftm4Z8yo9KUJF
=BWo2
-----END PGP SIGNATURE-----

Message has been deleted

valentin.blot0

unread,
Jan 12, 2011, 12:12:36 PM1/12/11
to AndRoad
There has been some change in the osmdroid library recently. A new
maptile chain has been made and some names changed also. With the
latest commits of androad it should now work.

The good thing is that my sqlite storage for tiles has been
implemented, in osmdroid and in mobile atlas creator.

Valentin

On Jan 12, 4:48 pm, Valentin Blot <valentin.bl...@gmail.com> wrote:
> Effectivement y'a eu pas mal de changements du côté de osmdroid. Je suis en
> train d'essayer de les rpendre en compte mais pour l'instant c'est pas encore
> parfait. Ils ont en fait mergé une branche et ça fout la grouille un peu
> partout. Ils ont aussi changé le nom des packages et le nom d'un certain
> nombre de classes. Je pense pouvoir commiter un truc qui marche d'ici demain.
>
> Par contre le bon point c'est qu'ils ont intégré mon stockage dans des bdd
> sqlite et la création de ces bdd a aussi été intégrée dans mobile atlas
> creator.
>
> valentin
Reply all
Reply to author
Forward
0 new messages