当前位置:编程学习 > wap >>

安卓程序运行出错 The source attachment does not contain the source for the file

我的安卓程序在运行时按下保存按钮时会报错。具体出错代码段如下:
protected void savePhotos() {
// TODO Auto-generated method stub
ContentValues values = new ContentValues();
     values.put(Media.MIME_TYPE, "image/jpeg");
     Uri uri =getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, values);
     try{
     OutputStream outStream = getContentResolver().openOutputStream(uri);
     mBitmap.compress(Bitmap.CompressFormat.JPEG, 50, outStream);
     outStream.close();
     }catch(Exception e) {}
}

调试时出现如下错误:
Class File Editor
Source not found
The source attachment does not contain the source for the file ContentResolver.class.
You can change the source attachment by clicking Change Attachment by clicking Change Attached Source below:

Change Attached Source

请问该如何解决,我试过网上很多种方法了,还是不行 --------------------编程问答-------------------- 是不是你的代码哪里设置了断点。。
补充:移动开发 ,  Android
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,