MapActivity as tab

34 views
Skip to first unread message

L K

unread,
Dec 28, 2012, 7:24:45 AM12/28/12
to mapsfo...@googlegroups.com
Hi All,

I tried to use MapActivity as tab but I always got an exception, Could not find class. when tried to create Intent: mapTabIntent = new Intent(this, MapMF.class);
Why I got an exception?
As I analysed the rows of LogCat I reallized a message with orange color : Unable to resolve superclass of com....MapMF.class where the  class MapMF extends MapActivity of mapsforge.

What did I do wrong?

 Have somebody got any idea for resolve this problem?

L K

unread,
Dec 28, 2012, 8:44:38 AM12/28/12
to mapsfo...@googlegroups.com
Hi All,

If I use com.google.android.maps.MapActivity instead of org.mapsforge.android.maps.MapActivity it works perfectly.

I don't understand why didn't work with MapActivity of mmapsforge.

L K

unread,
Dec 29, 2012, 8:22:26 AM12/29/12
to mapsfo...@googlegroups.com
Hi all,

The cause of this problem was, a wrong order of libraries on Properties\Java Build Path\Order and Export. I moved up the mapsforge library, to position below to my application and above the Google APIs [Android 2.2]


2012. december 28., péntek 13:24:45 UTC+1 időpontban L K a következőt írta:
Reply all
Reply to author
Forward
0 new messages