Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Can't create a MapView Object -> VerifyError

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: Exabot [Bot], Majestic-12 [Bot] and 4 guests