Sunday, April 29, 2012

[android-developers] Forced Close for Googles Notepad Exercise 2

Hey guys,

i am doing that http://developer.android.com/resources/tutorials/notepad/notepad-ex2.html.
But when I want to run it on Android 2.2 emulator I get an error:

Here is the log file:
04-29 19:58:24.561: I/Process(336): Sending signal. PID: 336 SIG: 9
04-29 19:58:28.651: W/KeyCharacterMap(344): No keyboard for id 0
04-29 19:58:28.651: W/KeyCharacterMap(344): Using default keymap: /
system/usr/keychars/qwerty.kcm.bin
04-29 19:58:29.791: D/AndroidRuntime(344): Shutting down VM
04-29 19:58:29.791: W/dalvikvm(344): threadid=1: thread exiting with
uncaught exception (group=0x4001d800)
04-29 19:58:29.821: E/AndroidRuntime(344): FATAL EXCEPTION: main
04-29 19:58:29.821: E/AndroidRuntime(344):
android.content.ActivityNotFoundException: Unable to find explicit
activity class {com.notepad2/com.notepad2.NoteEdit}; have you declared
this activity in your AndroidManifest.xml?
04-29 19:58:29.821: E/AndroidRuntime(344): at
android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:
1404)
04-29 19:58:29.821: E/AndroidRuntime(344): at
android.app.Instrumentation.execStartActivity(Instrumentation.java:
1378)
04-29 19:58:29.821: E/AndroidRuntime(344): at
android.app.Activity.startActivityForResult(Activity.java:2817)
04-29 19:58:29.821: E/AndroidRuntime(344): at
com.notepad2.Notepad2Activity.createNote(Notepad2Activity.java:111)
04-29 19:58:29.821: E/AndroidRuntime(344): at
com.notepad2.Notepad2Activity.onMenuItemSelected(Notepad2Activity.java:
83)
04-29 19:58:29.821: E/AndroidRuntime(344): at
com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:
730)
04-29 19:58:29.821: E/AndroidRuntime(344): at
com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:
143)
04-29 19:58:29.821: E/AndroidRuntime(344): at
com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:
855)
04-29 19:58:29.821: E/AndroidRuntime(344): at
com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:
532)
04-29 19:58:29.821: E/AndroidRuntime(344): at
com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:
122)
04-29 19:58:29.821: E/AndroidRuntime(344): at android.view.View
$PerformClick.run(View.java:8816)
04-29 19:58:29.821: E/AndroidRuntime(344): at
android.os.Handler.handleCallback(Handler.java:587)
04-29 19:58:29.821: E/AndroidRuntime(344): at
android.os.Handler.dispatchMessage(Handler.java:92)
04-29 19:58:29.821: E/AndroidRuntime(344): at
android.os.Looper.loop(Looper.java:123)
04-29 19:58:29.821: E/AndroidRuntime(344): at
android.app.ActivityThread.main(ActivityThread.java:4627)
04-29 19:58:29.821: E/AndroidRuntime(344): at
java.lang.reflect.Method.invokeNative(Native Method)
04-29 19:58:29.821: E/AndroidRuntime(344): at
java.lang.reflect.Method.invoke(Method.java:521)
04-29 19:58:29.821: E/AndroidRuntime(344): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
04-29 19:58:29.821: E/AndroidRuntime(344): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
04-29 19:58:29.821: E/AndroidRuntime(344): at
dalvik.system.NativeStart.main(Native Method)

What am I doing wrong ?

greetings and thx in advance

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment