diff --git a/doc/~$便签泛读、标注和维护报告文档.docx b/doc/~$便签泛读、标注和维护报告文档.docx
new file mode 100644
index 0000000..7306b70
Binary files /dev/null and b/doc/~$便签泛读、标注和维护报告文档.docx differ
diff --git a/doc/~$便签质量分析报告.docx b/doc/~$便签质量分析报告.docx
new file mode 100644
index 0000000..7115a73
Binary files /dev/null and b/doc/~$便签质量分析报告.docx differ
diff --git a/doc/~WRL2503.tmp b/doc/~WRL2503.tmp
new file mode 100644
index 0000000..2e90554
Binary files /dev/null and b/doc/~WRL2503.tmp differ
diff --git a/doc/小米便签泛读、标注和维护报告文档.docx b/doc/小米便签泛读、标注和维护报告文档.docx
index 73adb30..f6c9e7d 100644
Binary files a/doc/小米便签泛读、标注和维护报告文档.docx and b/doc/小米便签泛读、标注和维护报告文档.docx differ
diff --git a/doc/小米便签质量分析报告.docx b/doc/小米便签质量分析报告.docx
index db22fec..a4e7406 100644
Binary files a/doc/小米便签质量分析报告.docx and b/doc/小米便签质量分析报告.docx differ
diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml
index aebc482..8eb54d5 100644
--- a/src/main/AndroidManifest.xml
+++ b/src/main/AndroidManifest.xml
@@ -41,16 +41,23 @@
-
-
-
+
+
+
+
+
+
-
-
+
+
diff --git a/src/main/java/net/micode/notes/ui/NoteEditActivity.java b/src/main/java/net/micode/notes/ui/NoteEditActivity.java
index bf5d31f..c460dbd 100644
--- a/src/main/java/net/micode/notes/ui/NoteEditActivity.java
+++ b/src/main/java/net/micode/notes/ui/NoteEditActivity.java
@@ -212,6 +212,24 @@ public class NoteEditActivity extends Activity implements OnClickListener,
return;
}
initResources();
+
+ final ImageButton add_img_btn = (ImageButton) findViewById(R.id.add_img_btn);//根据id获取添加图片按钮
+ //为点击图片按钮设置监听器
+ add_img_btn.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ Log.d(TAG, "onClick: click add image button");
+ //ACTION_GET_CONTENT: 允许用户选择特殊种类的数据,并返回(特殊种类的数据:照一张相片或录一段音)
+ Intent loadImage = new Intent(Intent.ACTION_GET_CONTENT);
+ //Category属性用于指定当前动作(Action)被执行的环境.
+ //CATEGORY_OPENABLE; 用来指示一个ACTION_GET_CONTENT的intent
+ loadImage.addCategory(Intent.CATEGORY_OPENABLE);
+ loadImage.setType("image/*");
+ startActivityForResult(loadImage, PHOTO_REQUEST);
+ }
+ });
+ convertToImage();//将路径显示为图片
+ count();
}
/**
@@ -355,6 +373,7 @@ public class NoteEditActivity extends Activity implements OnClickListener,
* is not ready
*/
showAlertHeader();
+ convertToImage();//将路径转化未图片
}
/**
* @method showAlertHeader