• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to open Google Maps from button?

I am trying to open Google Maps in a new activity so that my main screen is different. The app crashes. Here is the button code:

Code:
mapsButton.setOnClickListener(new View.OnClickListener() {
        	public void onClick(View v) {
        		startActivity(new Intent("com.grigorovl.Map"));
  
        	}
        });

Below are the classes:
Main.java [Java] Main.java - Pastebin.com
Map.java [Java] Map.xml - Pastebin.com
main.xml [XML] main.xml - Pastebin.com
map.xml [XML] map.xml - Pastebin.com

I am using Eclipse 3.6.2 with Google API level 8 (2.2) emulator, using debug API hash, Manifest has the necessary entries. Any help would be appreciated.

Cheers.
 
Back
Top Bottom