here is the error message:
Writing exception to parcel
java.lang.IllegalArgumentException: Unknown URL
at com.android.providers.contacts.ContactsProvider.getType
(ContactsProvider.java:1668)
at android.content.ContentProvider$Transport.getType
(ContentProvider.java:134)
at android.content.ContentProviderNative.onTransact
(ContentProviderNative.java:112)
at android.os.Binder.execTransact(Binder.java:287)
at dalvik.system.NativeStart.run(Native Method)
Starting activity: Intent { act=android.intent.action.VIEW
dat=content://call_log }
Shutting down VM
Uncaught handler: thread main exiting due to uncaught exception
android.content.ActivityNotFoundException: No Activity found to handle
Intent { act=android.intent.action.VIEW dat=content://call_log }
at android.app.Instrumentation.checkStartActivityResult
(Instrumentation.java:1484)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:
1454)
at android.app.Activity.startActivityForResult(Activity.java:2660)
at android.app.Activity.startActivity(Activity.java:2704)
at com.example.test.test$2.onClick(test.java:43)
at android.view.View.performClick(View.java:2344)
at android.view.View.onTouchEvent(View.java:4133)
at android.widget.TextView.onTouchEvent(TextView.java:6504)
at android.view.View.dispatchTouchEvent(View.java:3672)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
at com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1712)
at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent
(PhoneWindow.java:1202)
at android.app.Activity.dispatchTouchEvent(Activity.java:1987)
at com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1696)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1658)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4203)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:791)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
at dalvik.system.NativeStart.main(Native Method)
again, i just want to view the call log (last dialed calls) using this
piece of code:
Intent i = new Intent();
i.setAction(Intent.ACTION_VIEW);
i.setData(android.provider.CallLog.CONTENT_URI);
startActivity(i);
any ideas what is going wrong?
On 28 Sep., 00:02, Mark Murphy <[email protected]> wrote:
> Matt wrote:
> > No one? I'm still trying to bring up the call log but so far without
> > success. Even the slightest hint could be helpful.
>
> You didn't indicate what error you got. You can find this out by
> examining adb logcat, DDMS, or the DDMS perspective in Eclipse, looking
> for the stack trace.
>
> --
> Mark Murphy (a Commons
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _The Busy Coders' Guide to *Advanced* Android Development_ In Print!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---