modest maps & android --> help me fix error
in
Android Processing
•
2 years ago
Hi Everyone
I am a bit of an amateur programmer, so I might be missing something obvious.
I am trying to run the processing version of modest maps ( http://www.tom-carden.co.uk/2008/02/18/modest-maps-vs-processing/) on my android device.
When I run my code (simplified to the bare essentials) I get following error message:
FATAL EXCEPTION: Thread-13
java.lang.NoSuchMethodError: processing.core.PApplet.loadImage
at com.modestmaps.InteractiveMap$TileLoader.run(InteractiveMap.java:457)
at java.lang.Thread.run(Thread.java:1020)
This is my code, it is the code from the website, however I removed all interactions and the gui.
- //
// This is a test of the interactive Modest Maps library for Processing
// the modestmaps.jar in the code folder of this sketch might not be
// entirely up to date - you have been warned!
//
// this is the only bit that's needed to show a map:
InteractiveMap map;
void setup() {
// create a new map, optionally specify a provider
map = new InteractiveMap(this, new Microsoft.AerialProvider());
// others would be "new Microsoft.HybridProvider()" or "new Microsoft.RoadProvider()"
// the Google ones get blocked after a few hundred tiles
// the Yahoo ones look terrible because they're not 256px squares :)
}
void draw() {
background(0);
// draw the map:
map.draw();
// (that's it! really... everything else is interactions now)
}
Any help would be appreceated
Thanks
p.
EDIT:
My guess is that depending on whether its regular processing or android processing, that it refers to a different PApplet.java file. However, I have no clue whether that makes sense, or how to do anything about it, if that is the problem.
http://code.google.com/p/
http://code.google.com/p/
1