У меня есть проблема с моими намерениями. Кажется, что мое приложение падает, когда я выбираю намерение. Я нашел строку кода ошибки из-за трассировки стека. Но я не мог найти в этом ничего плохого. Надеюсь, кто-нибудь сможет мне помочь.
Это код java в строке 121:
startActivity (новый Intent (Intent.ACTION_INSERT, getIntent(). getData()));
Это трассировка стека:
11-24 16:09:24.634: ERROR/AndroidRuntime(222): Uncaught handler: thread main exiting due to uncaught exception
11-24 16:09:24.834: ERROR/AndroidRuntime(222): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.INSERT dat=content://joel.google.provider.TemplatePad/templates }
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1408)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at android.app.Activity.startActivityForResult(Activity.java:2749)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at android.app.Activity.startActivity(Activity.java:2855)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at joel.AndroidGroupSMS.TemplatesList.onOptionsItemSelected(TemplatesList.java:121)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at android.app.Activity.onMenuItemSelected(Activity.java:2170)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:730)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:139)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:855)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:525)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:122)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at android.view.View.onTouchEvent(View.java:4179)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at android.widget.TextView.onTouchEvent(TextView.java:6541)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at android.view.View.dispatchTouchEvent(View.java:3709)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at android.os.Handler.dispatchMessage(Handler.java:99)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at android.os.Looper.loop(Looper.java:123)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at android.app.ActivityThread.main(ActivityThread.java:4363)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at java.lang.reflect.Method.invokeNative(Native Method)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at java.lang.reflect.Method.invoke(Method.java:521)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
11-24 16:09:24.834: ERROR/AndroidRuntime(222): at dalvik.system.NativeStart.main(Native Method)