diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/Notes-master.iml b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/Notes-master.iml index c90834f..5f73886 100644 --- a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/Notes-master.iml +++ b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/Notes-master.iml @@ -8,4 +8,7 @@ + + \ No newline at end of file diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/Contact.java b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/Contact.java index 6b9e30b..e5bda02 100644 --- a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/Contact.java +++ b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/Contact.java @@ -26,6 +26,9 @@ import android.util.Log; import java.util.HashMap; public class Contact { + private Contact() { + throw new IllegalStateException("Utility class"); + } // 缓存联系人信息,键为电话号码,值为联系人姓名 private static HashMap sContactCache; @@ -45,7 +48,7 @@ public class Contact { // 如果联系人缓存为空,进行初始化 if(sContactCache == null) { - sContactCache = new HashMap(); + sContactCache = new HashMap<>(); } // 如果缓存中已包含该电话号码对应的联系人姓名,则直接返回姓名 diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/Contact_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/Contact_leitu.docx index 74f957b..848f5e4 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/Contact_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/Contact_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/Notes.java b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/Notes.java index 31adbd8..b592358 100644 --- a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/Notes.java +++ b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/Notes.java @@ -18,6 +18,8 @@ package net.micode.notes.data; import android.net.Uri; +import java.util.PrimitiveIterator; + // Notes 类中定义了很多常量,这些常量大多是int型和string型 public class Notes { // 权限 @@ -55,6 +57,9 @@ public class Notes { // 数据类型常量 public static class DataConstants { + private DataConstants() { + throw new IllegalStateException("Utility class"); + } public static final String NOTE = TextNote.CONTENT_ITEM_TYPE; public static final String CALL_NOTE = CallNote.CONTENT_ITEM_TYPE; } @@ -63,14 +68,14 @@ public class Notes { /** * Uri to query all notes and folders */ - public static final Uri CONTENT_NOTE_URI = Uri.parse("content://" + AUTHORITY + "/note"); + public static final Uri CONTENT_NOTE_URI = Uri.parse(content + AUTHORITY + "/note"); //定义查询便签和文件夹的指针 /** * Uri to query data */ - public static final Uri CONTENT_DATA_URI = Uri.parse("content://" + AUTHORITY + "/data"); + public static final Uri CONTENT_DATA_URI = Uri.parse(content + AUTHORITY + "/data"); //定义查找数据的指针 @@ -294,6 +299,9 @@ public class Notes { * Mode to indicate the text in check list mode or not *

Type: Integer 1:check list mode 0: normal mode

*/ + private TextNote() { + throw new IllegalStateException("Utility class"); + } // 表示文本为检查列表模式或非检查列表模式的模式 public static final String MODE = DATA1; @@ -312,6 +320,9 @@ public class Notes { * Call date for this record *

Type: INTEGER (long)

*/ + private CallNote() { + throw new IllegalStateException("Utility class"); + } // 记录的通话日期 public static final String CALL_DATE = DATA1; diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/NotesDatabaseHelper_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/NotesDatabaseHelper_leitu.docx index e69de29..8ca3d04 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/NotesDatabaseHelper_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/NotesDatabaseHelper_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/NotesProvider.java b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/NotesProvider.java index edb0a60..ee8701f 100644 --- a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/NotesProvider.java +++ b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/NotesProvider.java @@ -42,6 +42,8 @@ public class NotesProvider extends ContentProvider { private static final String TAG = "NotesProvider"; + private static final String URL = "Unknown URI "; + private static final int URI_NOTE = 1; private static final int URI_NOTE_ITEM = 2; private static final int URI_DATA = 3; @@ -139,7 +141,7 @@ public class NotesProvider extends ContentProvider { } break; default: - throw new IllegalArgumentException("Unknown URI " + uri); + throw new IllegalArgumentException(URL+ uri); } if (c != null) { c.setNotificationUri(getContext().getContentResolver(), uri); @@ -164,7 +166,7 @@ public class NotesProvider extends ContentProvider { insertedId = dataId = db.insert(TABLE.DATA, null, values); break; default: - throw new IllegalArgumentException("Unknown URI " + uri); + throw new IllegalArgumentException(URL + uri); } // Notify the note uri if (noteId > 0) { @@ -283,7 +285,7 @@ public class NotesProvider extends ContentProvider { sql.append(" WHERE "); } if (id > 0) { - sql.append(NoteColumns.ID + "=" + String.valueOf(id)); + sql.append(NoteColumns.ID + "=" + id); } if (!TextUtils.isEmpty(selection)) { String selectString = id > 0 ? parseSelection(selection) : selection; diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/NotesProvider_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/NotesProvider_leitu.docx index e69de29..71a4a8c 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/NotesProvider_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/NotesProvider_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/Notes_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/Notes_leitu.docx index e69de29..4b805a2 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/Notes_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/Notes_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/~$tesDatabaseHelper_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/~$tesDatabaseHelper_leitu.docx new file mode 100644 index 0000000..4b46daa Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/~$tesDatabaseHelper_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/~$tesProvider_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/~$tesProvider_leitu.docx new file mode 100644 index 0000000..fd5d95c Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/~$tesProvider_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/~$tes_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/~$tes_leitu.docx new file mode 100644 index 0000000..ef82620 Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/data/~$tes_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/MetaData.java b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/MetaData.java index 3a2050b..8e7d3d4 100644 --- a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/MetaData.java +++ b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/MetaData.java @@ -26,7 +26,7 @@ import org.json.JSONObject; public class MetaData extends Task { - private final static String TAG = MetaData.class.getSimpleName(); + private static final String TAG = MetaData.class.getSimpleName(); private String mRelatedGid = null; diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/MetaData_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/MetaData_leitu.docx index e69de29..0c25da1 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/MetaData_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/MetaData_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/Node.java b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/Node.java index 63950e0..31854ec 100644 --- a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/Node.java +++ b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/Node.java @@ -47,7 +47,7 @@ public abstract class Node { private boolean mDeleted; - public Node() { + protected Node() { mGid = null; mName = ""; mLastModified = 0; diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/Node_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/Node_leitu.docx index e69de29..3aa5785 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/Node_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/Node_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/SqlData_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/SqlData_leitu.docx index e69de29..84f223a 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/SqlData_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/SqlData_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/SqlNote.java b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/SqlNote.java index 79a4095..998b89e 100644 --- a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/SqlNote.java +++ b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/SqlNote.java @@ -43,7 +43,7 @@ public class SqlNote { private static final int INVALID_ID = -99999; - public static final String[] PROJECTION_NOTE = new String[] { + protected static final String[] PROJECTION_NOTE = new String[] { NoteColumns.ID, NoteColumns.ALERTED_DATE, NoteColumns.BG_COLOR_ID, NoteColumns.CREATED_DATE, NoteColumns.HAS_ATTACHMENT, NoteColumns.MODIFIED_DATE, NoteColumns.NOTES_COUNT, NoteColumns.PARENT_ID, NoteColumns.SNIPPET, NoteColumns.TYPE, @@ -140,7 +140,7 @@ public class SqlNote { mOriginParent = 0; mVersion = 0; mDiffNoteValues = new ContentValues(); - mDataList = new ArrayList(); + mDataList = new ArrayList<>(); } public SqlNote(Context context, Cursor c) { @@ -148,7 +148,7 @@ public class SqlNote { mContentResolver = context.getContentResolver(); mIsCreate = false; loadFromCursor(c); - mDataList = new ArrayList(); + mDataList = new ArrayList<>(); if (mType == Notes.TYPE_NOTE) loadDataContent(); mDiffNoteValues = new ContentValues(); @@ -159,7 +159,7 @@ public class SqlNote { mContentResolver = context.getContentResolver(); mIsCreate = false; loadFromCursor(id); - mDataList = new ArrayList(); + mDataList = new ArrayList<>(); if (mType == Notes.TYPE_NOTE) loadDataContent(); mDiffNoteValues = new ContentValues(); diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/SqlNote_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/SqlNote_leitu.docx index e69de29..6446bf7 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/SqlNote_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/SqlNote_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/TaskList.java b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/TaskList.java index 4ea21c5..54dfdd6 100644 --- a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/TaskList.java +++ b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/TaskList.java @@ -39,7 +39,7 @@ public class TaskList extends Node { public TaskList() { super(); - mChildren = new ArrayList(); + mChildren = new ArrayList<>(); mIndex = 1; } diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/TaskList_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/TaskList_leitu.docx index e69de29..453e4e0 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/TaskList_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/TaskList_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/~$de_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/~$de_leitu.docx new file mode 100644 index 0000000..fe18ad2 Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/~$de_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/~$lData_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/~$lData_leitu.docx new file mode 100644 index 0000000..f3a7fac Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/~$lData_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/~$lNote_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/~$lNote_leitu.docx new file mode 100644 index 0000000..e33ea8b Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/~$lNote_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/~$skList_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/~$skList_leitu.docx new file mode 100644 index 0000000..2d4a3c9 Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/~$skList_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/~$taData_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/~$taData_leitu.docx new file mode 100644 index 0000000..2b0f65b Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/data/~$taData_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskASyncTask_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskASyncTask_leitu.docx index e69de29..612fb90 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskASyncTask_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskASyncTask_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskClient.java b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskClient.java index c67dfdf..f5979a1 100644 --- a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskClient.java +++ b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskClient.java @@ -298,7 +298,9 @@ public class GTaskClient { Log.d(TAG, "encoding: " + contentEncoding); } + InputStream input = entity.getContent(); + if (contentEncoding != null && contentEncoding.equalsIgnoreCase("gzip")) { input = new GZIPInputStream(entity.getContent()); } else if (contentEncoding != null && contentEncoding.equalsIgnoreCase("deflate")) { @@ -306,11 +308,12 @@ public class GTaskClient { input = new InflaterInputStream(entity.getContent(), inflater); } - try { + InputStreamReader isr = new InputStreamReader(input); BufferedReader br = new BufferedReader(isr); StringBuilder sb = new StringBuilder(); + try { while (true) { String buff = br.readLine(); if (buff == null) { @@ -331,7 +334,7 @@ public class GTaskClient { HttpPost httpPost = createHttpPost(); try { - LinkedList list = new LinkedList(); + LinkedList list = new LinkedList<>(); list.add(new BasicNameValuePair("r", js.toString())); UrlEncodedFormEntity entity = new UrlEncodedFormEntity(list, "UTF-8"); httpPost.setEntity(entity); diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskClient_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskClient_leitu.docx index e69de29..3afaf43 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskClient_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskClient_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskManager.java b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskManager.java index d2b4082..055a95e 100644 --- a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskManager.java +++ b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskManager.java @@ -90,13 +90,13 @@ public class GTaskManager { private GTaskManager() { mSyncing = false; mCancelled = false; - mGTaskListHashMap = new HashMap(); - mGTaskHashMap = new HashMap(); - mMetaHashMap = new HashMap(); + mGTaskListHashMap = new HashMap<>(); + mGTaskHashMap = new HashMap<>(); + mMetaHashMap = new HashMap<>(); mMetaList = null; - mLocalDeleteIdMap = new HashSet(); - mGidToNid = new HashMap(); - mNidToGid = new HashMap(); + mLocalDeleteIdMap = new HashSet<>(); + mGidToNid = new HashMap<>(); + mNidToGid = new HashMap<>(); } public static synchronized GTaskManager getInstance() { @@ -132,11 +132,10 @@ public class GTaskManager { client.resetUpdateArray(); // login google task - if (!mCancelled) { - if (!client.login(mActivity)) { + + if (!mCancelled&&!client.login(mActivity)) { throw new NetworkFailureException("login google task failed"); } - } // get the task list from google asyncTask.publishProgess(mContext.getString(R.string.sync_progress_init_list)); @@ -249,6 +248,7 @@ public class GTaskManager { private void syncContent() throws NetworkFailureException { int syncType; + String DESC = " DESC"; Cursor c = null; String gid; Node node; @@ -294,7 +294,7 @@ public class GTaskManager { c = mContentResolver.query(Notes.CONTENT_NOTE_URI, SqlNote.PROJECTION_NOTE, "(type=? AND parent_id<>?)", new String[] { String.valueOf(Notes.TYPE_NOTE), String.valueOf(Notes.ID_TRASH_FOLER) - }, NoteColumns.TYPE + " DESC"); + }, NoteColumns.TYPE + DESC); if (c != null) { while (c.moveToNext()) { gid = c.getString(SqlNote.GTASK_ID_COLUMN); @@ -337,11 +337,10 @@ public class GTaskManager { // mCancelled can be set by another thread, so we neet to check one by // one // clear local delete table - if (!mCancelled) { - if (!DataUtils.batchDeleteNotes(mContentResolver, mLocalDeleteIdMap)) { + + if (!mCancelled&&!DataUtils.batchDeleteNotes(mContentResolver, mLocalDeleteIdMap)) { throw new ActionFailureException("failed to batch-delete local deleted notes"); } - } // refresh local sync id if (!mCancelled) { @@ -619,7 +618,7 @@ public class GTaskManager { updateRemoteMeta(node.getGid(), sqlNote); } - private void addRemoteNode(Node node, Cursor c) throws NetworkFailureException { + private void addRemoteNode(Cursor c) throws NetworkFailureException { if (mCancelled) { return; } diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskManager_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskManager_leitu.docx index e69de29..2255483 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskManager_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskManager_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskSyncService.java b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskSyncService.java index cca36f7..fafce43 100644 --- a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskSyncService.java +++ b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskSyncService.java @@ -24,23 +24,23 @@ import android.os.Bundle; import android.os.IBinder; public class GTaskSyncService extends Service { - public final static String ACTION_STRING_NAME = "sync_action_type"; + public static final String ACTION_STRING_NAME = "sync_action_type"; - public final static int ACTION_START_SYNC = 0; + public static final int ACTION_START_SYNC = 0; - public final static int ACTION_CANCEL_SYNC = 1; + public static final int ACTION_CANCEL_SYNC = 1; - public final static int ACTION_INVALID = 2; + public static final int ACTION_INVALID = 2; - public final static String GTASK_SERVICE_BROADCAST_NAME = "net.micode.notes.gtask.remote.gtask_sync_service"; + public static final String GTASK_SERVICE_BROADCAST_NAME = "net.micode.notes.gtask.remote.gtask_sync_service"; - public final static String GTASK_SERVICE_BROADCAST_IS_SYNCING = "isSyncing"; + public static final String GTASK_SERVICE_BROADCAST_IS_SYNCING = "isSyncing"; - public final static String GTASK_SERVICE_BROADCAST_PROGRESS_MSG = "progressMsg"; + public static final String GTASK_SERVICE_BROADCAST_PROGRESS_MSG = "progressMsg"; - private static GTaskASyncTask mSyncTask = null; + private GTaskASyncTask mSyncTask = null; - private static String mSyncProgress = ""; + private String mSyncProgress = ""; private void startSync() { if (mSyncTask == null) { diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskSyncService_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskSyncService_leitu.docx index e69de29..52dafed 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskSyncService_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/GTaskSyncService_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/~$askASyncTask_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/~$askASyncTask_leitu.docx new file mode 100644 index 0000000..2fe86d6 Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/~$askASyncTask_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/~$askClient_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/~$askClient_leitu.docx new file mode 100644 index 0000000..2d2d902 Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/~$askClient_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/~$askManager_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/~$askManager_leitu.docx new file mode 100644 index 0000000..ce8dc92 Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/~$askManager_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/~$askSyncService_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/~$askSyncService_leitu.docx new file mode 100644 index 0000000..55fd611 Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/gtask/remote/~$askSyncService_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/Note.java b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/Note.java index 6706cf6..e5829f0 100644 --- a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/Note.java +++ b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/Note.java @@ -186,7 +186,7 @@ public class Note { throw new IllegalArgumentException("Wrong note id:" + noteId); } - ArrayList operationList = new ArrayList(); + ArrayList operationList = new ArrayList<>(); ContentProviderOperation.Builder builder = null; if(mTextDataValues.size() > 0) { diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/Note_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/Note_leitu.docx index e69de29..315db96 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/Note_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/Note_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/WorkingNote.java b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/WorkingNote.java index be081e4..22217e1 100644 --- a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/WorkingNote.java +++ b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/WorkingNote.java @@ -62,7 +62,7 @@ public class WorkingNote { private NoteSettingChangedListener mNoteSettingStatusListener; - public static final String[] DATA_PROJECTION = new String[] { + protected static final String[] DATA_PROJECTION = new String[] { DataColumns.ID, DataColumns.CONTENT, DataColumns.MIME_TYPE, @@ -72,7 +72,7 @@ public class WorkingNote { DataColumns.DATA4, }; - public static final String[] NOTE_PROJECTION = new String[] { + protected static final String[] NOTE_PROJECTION = new String[] { NoteColumns.PARENT_ID, NoteColumns.ALERTED_DATE, NoteColumns.BG_COLOR_ID, diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/WorkingNote_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/WorkingNote_leitu.docx index e69de29..29072da 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/WorkingNote_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/WorkingNote_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/~$rkingNote_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/~$rkingNote_leitu.docx new file mode 100644 index 0000000..44a5f62 Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/~$rkingNote_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/~$te_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/~$te_leitu.docx new file mode 100644 index 0000000..38cb852 Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/model/~$te_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/BackupUtils_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/BackupUtils_leitu.docx index e69de29..d6776c8 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/BackupUtils_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/BackupUtils_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/DataUtils_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/DataUtils_leitu.docx index e69de29..5ecc88c 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/DataUtils_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/DataUtils_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/GTaskStringUtils_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/GTaskStringUtils_leitu.docx index e69de29..1e24ad6 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/GTaskStringUtils_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/GTaskStringUtils_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/ResourceParser_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/ResourceParser_leitu.docx index e69de29..b67062a 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/ResourceParser_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/ResourceParser_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/~$askStringUtils_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/~$askStringUtils_leitu.docx new file mode 100644 index 0000000..6db3772 Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/~$askStringUtils_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/~$ckupUtils_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/~$ckupUtils_leitu.docx new file mode 100644 index 0000000..61f0734 Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/~$ckupUtils_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/~$sourceParser_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/~$sourceParser_leitu.docx new file mode 100644 index 0000000..88af329 Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/~$sourceParser_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/~$taUtils_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/~$taUtils_leitu.docx new file mode 100644 index 0000000..f0d9f8e Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/tool/~$taUtils_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/AlarmAlertActivity_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/AlarmAlertActivity_leitu.docx index e69de29..810b812 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/AlarmAlertActivity_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/AlarmAlertActivity_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/DateTimePickerDialog_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/DateTimePickerDialog_leitu.docx index e69de29..544cc76 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/DateTimePickerDialog_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/DateTimePickerDialog_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/DateTimePicker_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/DateTimePicker_leitu.docx index e69de29..4fd2350 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/DateTimePicker_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/DateTimePicker_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/FoldersListAdapter.java b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/FoldersListAdapter.java index 96b77da..bb9fe0d 100644 --- a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/FoldersListAdapter.java +++ b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/FoldersListAdapter.java @@ -30,7 +30,7 @@ import net.micode.notes.data.Notes.NoteColumns; public class FoldersListAdapter extends CursorAdapter { - public static final String [] PROJECTION = { + protected static final String [] PROJECTION = { NoteColumns.ID, NoteColumns.SNIPPET }; diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/FoldersListAdapter_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/FoldersListAdapter_leitu.docx index e69de29..fede613 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/FoldersListAdapter_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/FoldersListAdapter_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/NoteEditActivity.java b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/NoteEditActivity.java index 96a9ff8..d48148c 100644 --- a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/NoteEditActivity.java +++ b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/NoteEditActivity.java @@ -82,6 +82,84 @@ public class NoteEditActivity extends Activity implements OnClickListener, public TextView tvAlertDate; public ImageView ibSetBgColor; + + public HeadViewHolder() { + } + + public HeadViewHolder(TextView tvModified, ImageView ivAlertIcon, TextView tvAlertDate, ImageView ibSetBgColor) { + this.tvModified = tvModified; + this.ivAlertIcon = ivAlertIcon; + this.tvAlertDate = tvAlertDate; + this.ibSetBgColor = ibSetBgColor; + } + + /** + * 获取 + * @return tvModified + */ + public TextView getTvModified() { + return tvModified; + } + + /** + * 设置 + * @param tvModified + */ + public void setTvModified(TextView tvModified) { + this.tvModified = tvModified; + } + + /** + * 获取 + * @return ivAlertIcon + */ + public ImageView getIvAlertIcon() { + return ivAlertIcon; + } + + /** + * 设置 + * @param ivAlertIcon + */ + public void setIvAlertIcon(ImageView ivAlertIcon) { + this.ivAlertIcon = ivAlertIcon; + } + + /** + * 获取 + * @return tvAlertDate + */ + public TextView getTvAlertDate() { + return tvAlertDate; + } + + /** + * 设置 + * @param tvAlertDate + */ + public void setTvAlertDate(TextView tvAlertDate) { + this.tvAlertDate = tvAlertDate; + } + + /** + * 获取 + * @return ibSetBgColor + */ + public ImageView getIbSetBgColor() { + return ibSetBgColor; + } + + /** + * 设置 + * @param ibSetBgColor + */ + public void setIbSetBgColor(ImageView ibSetBgColor) { + this.ibSetBgColor = ibSetBgColor; + } + + public String toString() { + return "HeadViewHolder{tvModified = " + tvModified + ", ivAlertIcon = " + ivAlertIcon + ", tvAlertDate = " + tvAlertDate + ", ibSetBgColor = " + ibSetBgColor + "}"; + } } private static final Map sBgSelectorBtnsMap = new HashMap(); diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/NoteEditActivity_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/NoteEditActivity_leitu.docx index e69de29..28114ef 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/NoteEditActivity_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/NoteEditActivity_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/~$armAlertActivity_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/~$armAlertActivity_leitu.docx new file mode 100644 index 0000000..7ae01a7 Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/~$armAlertActivity_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/~$ldersListAdapter_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/~$ldersListAdapter_leitu.docx new file mode 100644 index 0000000..1da9277 Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/~$ldersListAdapter_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/~$teEditActivity_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/~$teEditActivity_leitu.docx new file mode 100644 index 0000000..1e9d5b7 Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/~$teEditActivity_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/~$teTimePickerDialog_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/~$teTimePickerDialog_leitu.docx new file mode 100644 index 0000000..90cfa6b Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/~$teTimePickerDialog_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/~$teTimePicker_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/~$teTimePicker_leitu.docx new file mode 100644 index 0000000..89e4dbf Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/ui/~$teTimePicker_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/NoteWidgetProvider.java b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/NoteWidgetProvider.java index a08d2b8..c2d6b9f 100644 --- a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/NoteWidgetProvider.java +++ b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/NoteWidgetProvider.java @@ -35,7 +35,7 @@ import net.micode.notes.ui.NotesListActivity; // 抽象类,用于管理便签小部件 public abstract class NoteWidgetProvider extends AppWidgetProvider { // 定义用于查询数据库时需要的字段 - public static final String [] PROJECTION = new String [] { + protected static final String [] PROJECTION = new String [] { NoteColumns.ID, NoteColumns.BG_COLOR_ID, NoteColumns.SNIPPET diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/NoteWidgetProvider_2x_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/NoteWidgetProvider_2x_leitu.docx index e69de29..e0072fa 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/NoteWidgetProvider_2x_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/NoteWidgetProvider_2x_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/NoteWidgetProvider_4x_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/NoteWidgetProvider_4x_leitu.docx index e69de29..33f7667 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/NoteWidgetProvider_4x_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/NoteWidgetProvider_4x_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/NoteWidgetProvider_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/NoteWidgetProvider_leitu.docx index e69de29..2b90970 100644 Binary files a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/NoteWidgetProvider_leitu.docx and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/NoteWidgetProvider_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/~$teWidgetProvider_2x_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/~$teWidgetProvider_2x_leitu.docx new file mode 100644 index 0000000..d7a3a97 Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/~$teWidgetProvider_2x_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/~$teWidgetProvider_leitu.docx b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/~$teWidgetProvider_leitu.docx new file mode 100644 index 0000000..f529cb9 Binary files /dev/null and b/小米标签及案例/源程序代码-小米便签-Notes-master/Notes-master/src/net/micode/notes/widget/~$teWidgetProvider_leitu.docx differ diff --git a/小米标签及案例/源程序代码-小米便签-Notes-master/源程序代码-小米便签-Notes-master/源程序代码-小米便签-Notes-master.iml b/小米标签及案例/源程序代码-小米便签-Notes-master/源程序代码-小米便签-Notes-master/源程序代码-小米便签-Notes-master.iml index 0c84021..c419671 100644 --- a/小米标签及案例/源程序代码-小米便签-Notes-master/源程序代码-小米便签-Notes-master/源程序代码-小米便签-Notes-master.iml +++ b/小米标签及案例/源程序代码-小米便签-Notes-master/源程序代码-小米便签-Notes-master/源程序代码-小米便签-Notes-master.iml @@ -8,4 +8,7 @@ + + \ No newline at end of file