Can't create a MapView Object -> VerifyError

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Can't create a MapView Object -> VerifyError

Postby dwischer » Mon Oct 05, 2009 10:33 am

Hi,

what i'm trying to do is to show a simple map on the first activity.
So i tried to build a mapview object:
public class Test3 extends Activity {

private MapView mv = null;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layout.main);

this.mv = new MapView(null, "myKey");

setContentView(this.mv);
}

}

But in this line: this.mv = new MapView(null, "myKey"); i get a
VerifyError and i cant figure out why.
Maybe someone here has an idea how to get a map on the screen. (The
HelloMapView tutorial isnt working either)

Regards,
Daniel
dwischer
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Oct 05, 2009 10:31 am

Top

Postby azraeal » Wed Oct 07, 2009 10:27 pm

You need to export your project as a signed apk. By pressing the green "play" button to run, it will run/install your app with either the debug key, or no key. So, sign your app with the certificate you used to generate your API key, then install from that apk.
azraeal
Experienced Developer
Experienced Developer
 
Posts: 71
Joined: Fri Sep 04, 2009 6:34 pm
Location: California

Top

Return to Map Problems

Who is online

Users browsing this forum: Google [Bot] and 3 guests