google maps - Getting error when changing from main to other activity - Android -


i have application using google maps - until moment works fine. when want click button in order add functionality on map have problems. managed visualise button on screen, works on click - shows toast correctly. aim start new activity (having own layout) - looking , reading tones of tutorials , stuff here have :

        //the add button in upper right corner     button addbookmark = (button) findviewbyid(r.id.button);     addbookmark.setonclicklistener(new view.onclicklistener()      {         @override         public void onclick(view mapview) {              intent addbookmarkintent = new intent(googlemapsapp.this, locationbookmaker.class);             startactivity(addbookmarkintent);                                                    }     });         

also i've edited manifest file:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"       ...          <activity android:name=".locationbookmarker"         android:label="@string/app_name" >             <intent-filter>                 <action android:name="android.intent.action.main"/>                 <category android:name="android.intent.category.default"/>             </intent-filter>         </activity>          ...  </manifest> 

no matter try "the application googlemapsapp (process google.maps.app) has stopped unexpectedly. please try again." "force close" option.

i've been trying since 2 days - , in lot of examples in internet other should working this. cannot see mistake. maybe in starting of intent, or manifest or where...?

according exception, class it's looking 'locationbookmaker', in manifest have 'locationbookmarker' (notice 'r'). may problem.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -