Here is the output from logcat:

03-01 18:06:05.043: WARN/dalvikvm(228): threadid=3: thread exiting with
uncaught exception (group=0x40010e28)
03-01 18:06:05.084: ERROR/AndroidRuntime(228): Uncaught handler: thread
main exiting due to uncaught exception
03-01 18:06:06.373: ERROR/AndroidRuntime(228):
android.content.ActivityNotFoundException: Unable to find explicit
activity class {com.brooks.snake/android.provider.Contacts$Settings};
have you declared this activity in your AndroidManifest.xml?
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1468)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
android.app.Instrumentation.execStartActivity(Instrumentation.java:1442)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
android.app.Activity.startActivityForResult(Activity.java:2528)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
android.app.Activity.startActivity(Activity.java:2572)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
com.brooks.snake.Snake.onOptionsItemSelected(Snake.java:57)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
android.app.Activity.onMenuItemSelected(Activity.java:1964)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:708)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:138)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:804)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:435)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:120)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
android.view.View.onTouchEvent(View.java:3523)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
android.widget.TextView.onTouchEvent(TextView.java:4410)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
android.view.View.dispatchTouchEvent(View.java:3178)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1545)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
android.view.ViewRoot.handleMessage(ViewRoot.java:1140)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
android.os.Handler.dispatchMessage(Handler.java:88)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
android.os.Looper.loop(Looper.java:123)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
android.app.ActivityThread.main(ActivityThread.java:3742)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
java.lang.reflect.Method.invokeNative(Native Method)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
java.lang.reflect.Method.invoke(Method.java:515)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:739)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
03-01 18:06:06.373: ERROR/AndroidRuntime(228):     at
dalvik.system.NativeStart.main(Native Method)
03-01 18:06:07.383: INFO/Process(49): Sending signal. PID: 228 SIG: 3
03-01 18:06:07.674: INFO/dalvikvm(228): threadid=7: reacting to signal 3
03-01 18:06:08.285: INFO/dalvikvm(228): Wrote stack trace to
'/data/anr/traces.txt'
03-01 18:08:47.665: DEBUG/GpsLocationProvider(49): NetworkThread out of
wake loop
03-01 18:08:47.704: DEBUG/GpsLocationProvider(49): Requesting time from
NTP server pool.ntp.org
03-01 18:08:58.003: DEBUG/SntpClient(49): request time failed:
java.net.SocketTimeoutException: The operation timed out
03-01 18:08:58.023: DEBUG/GpsLocationProvider(49): requestTime failed
03-01 18:08:58.113: DEBUG/GpsLocationProvider(49): NetworkThread wait
for 299999ms
03-01 18:11:07.494: INFO/Process(228): Sending signal. PID: 228 SIG: 9
03-01 18:11:07.814: INFO/WindowManager(49): WIN DEATH: Window{434a1f08
com.brooks.snake/com.brooks.snake.Snake}
03-01 18:11:08.004: INFO/ActivityManager(49): Process com.brooks.snake
(pid 228) has died.
03-01 18:11:08.515: INFO/WindowManager(49): WIN DEATH: Window{434b29a0
Panel:com.brooks.snake/com.brooks.snake.Snake}
03-01 18:13:58.113: DEBUG/GpsLocationProvider(49): NetworkThread out of
wake loop
03-01 18:13:58.143: DEBUG/GpsLocationProvider(49): Requesting time from
NTP server pool.ntp.org
03-01 18:14:08.424: DEBUG/SntpClient(49): request time failed:
java.net.SocketTimeoutException: The operation timed out
03-01 18:14:08.443: DEBUG/GpsLocationProvider(49): requestTime failed
03-01 18:14:08.496: DEBUG/GpsLocationProvider(49): NetworkThread wait
for 300000ms

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