The line right after the one you commented on.  The line the is a call
to startActivity(i).  

Where would I find the logcat.

On Sun, 2009-03-01 at 15:44 -0500, Faber Fedor wrote:
> On Sun, Mar 1, 2009 at 1:24 PM, Kevin J. Brooks
> <[email protected]> wrote:
>         
>         Hello all,
>         
>         When I click on Menu, then settings I receive an error that
>         says, "The
>         application Snake (process com.brooks.snake) has stopped
>         unexpectedly.
>         Please try again.  I have run it in debug and it seems happen
>         at the
>         startActivity function.  Here is the code most of my code.
>          Where did I
>         go wrong?
> 
> It would help if you gave us the error message(s) from logcat or told
> us on which line the program dies.
>  
>         Override for  onOptionsItemSelected:
>            @Override
>            public boolean onOptionsItemSelected(MenuItem item){
>                switch(item.getItemId()){
>                case R.id.settings:
>                        Intent i = new Intent(this,Settings.class);
> 
> My SWAG (Silly Wild-A$$ Guess) is this should read
>                 
>                  Intent i = new
> Intent(MyClassName.this,Settings.class);
> 
> 
> 
> -- 
> 
> Faber Fedor
> Linux New Jersey
> http://linuxnj.com
> faberfedor.blogspot.com
> 
> > 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to