为什么我的Android应用程序出现异常错误 [英] Why I Get Unusual Error In My Android App
本文介绍了为什么我的Android应用程序出现异常错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Eclipse中写了一段 peace 代码,但它没有用。
我想在我的应用程序中显示联系人列表,所以我使用了这段代码。
Intent i = new Intent(android .content.Intent.ACTION_VIEW,
Uri.parse( content:// contacts ));
startActivity(i);
当我使用此代码时出现此错误:
找不到活动来处理意图...
任何人都可以帮助我吗?
解决方案
Uri.parse( 内容://com.android.contacts/contacts跨度>)
Hi ,
I wrote a peace piece of code in Eclipse , but it didn't work.
I wanted to show Contact list in my app, so I used this code.
Intent i=new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("content://contacts"));
startActivity(i);
When I use this code I get this error :
No Activity found to handle Intent ...
Can any one help me?
解决方案
Uri.parse("content://com.android.contacts/contacts")
这篇关于为什么我的Android应用程序出现异常错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文