intent跳转到联系人界面 为什么直接程序出错?急求!!!
long idtemp=Contacts1.get(arg2).getId();
Uri personUri = ContentUris.withAppendedId(
People.CONTENT_URI, idtemp);//idtemp联系人ID
intent.setAction(Intent.ACTION_VIEW);
intent.setData(personUri);
startActivity(intent);
之前运行的一直好好的,之后换到别个程序上就老是直接出错程序关闭。
log里面也一点信息也没有。
有人知道是为什么吗?
我已经纠结一下午了。头都疼死了!~ --------------------编程问答-------------------- 上面程序少了
Intent intent=new Intent();
我定义了的。 --------------------编程问答-------------------- idtemp 不存在吧 --------------------编程问答-------------------- 如果是异常终止的话,肯定会有log输出的,你怀疑哪出错,自己可以打出log看一下的。
补充:移动开发 , Android