Compare commits
48 Commits
zzy_branch
...
master
Author | SHA1 | Date |
---|---|---|
|
28be974865 | 2 years ago |
|
7cfe354335 | 2 years ago |
|
7f93e46beb | 2 years ago |
|
60b7c99a41 | 2 years ago |
|
cd2b48e8b0 | 2 years ago |
|
d53f2c92d7 | 2 years ago |
|
476ae2e718 | 2 years ago |
|
bb5213254c | 2 years ago |
|
5857c3bf03 | 2 years ago |
|
75e7a72f52 | 2 years ago |
|
592cc7a8ac | 2 years ago |
|
6c3d34e940 | 2 years ago |
|
6d32922ad4 | 2 years ago |
|
163adab1da | 2 years ago |
|
1989257cb1 | 2 years ago |
|
c333063a78 | 2 years ago |
|
7501d0ffd5 | 2 years ago |
|
92a533f45d | 2 years ago |
|
97d555067e | 2 years ago |
|
cf02bff9e3 | 2 years ago |
|
8ed646f9b3 | 2 years ago |
|
8fcc31397e | 2 years ago |
|
f616984939 | 2 years ago |
|
c7dad7b3f1 | 2 years ago |
|
de7e8070e3 | 2 years ago |
|
4f6fc29c33 | 2 years ago |
|
878c91acba | 2 years ago |
|
08402c7784 | 2 years ago |
|
a3f41893f8 | 2 years ago |
|
bb513cadc5 | 2 years ago |
|
8520940050 | 2 years ago |
|
4530df7a86 | 2 years ago |
|
820cb44376 | 2 years ago |
|
e0613c414b | 2 years ago |
|
08309e03b2 | 2 years ago |
|
42384aac83 | 2 years ago |
|
548abb34a3 | 2 years ago |
|
af332a0b83 | 2 years ago |
|
17625e4ccd | 2 years ago |
|
b4ea29e9ab | 2 years ago |
|
9b4278994e | 2 years ago |
|
27cf75b422 | 2 years ago |
|
385cf12527 | 2 years ago |
|
3a317b4998 | 2 years ago |
|
03fba0d9fc | 2 years ago |
|
badc9fc0c3 | 2 years ago |
|
33d2919585 | 2 years ago |
|
7627b24b7b | 2 years ago |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +0,0 @@
|
|||||||
#Mon Mar 27 22:49:53 CST 2023
|
|
||||||
gradle.version=7.5
|
|
Binary file not shown.
@ -1,17 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="deploymentTargetDropDown">
|
|
||||||
<targetSelectedWithDropDown>
|
|
||||||
<Target>
|
|
||||||
<type value="QUICK_BOOT_TARGET" />
|
|
||||||
<deviceKey>
|
|
||||||
<Key>
|
|
||||||
<type value="VIRTUAL_DEVICE_PATH" />
|
|
||||||
<value value="C:\Users\1\.android\avd\Pixel_2_API_22.avd" />
|
|
||||||
</Key>
|
|
||||||
</deviceKey>
|
|
||||||
</Target>
|
|
||||||
</targetSelectedWithDropDown>
|
|
||||||
<timeTargetWasSelectedWithDropDown value="2023-03-28T05:30:44.232977100Z" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -1,22 +0,0 @@
|
|||||||
apply plugin: 'com.android.application'
|
|
||||||
|
|
||||||
android {
|
|
||||||
compileSdkVersion 33
|
|
||||||
buildToolsVersion "33.0.2"
|
|
||||||
|
|
||||||
defaultConfig {
|
|
||||||
applicationId "net.micode.notes"
|
|
||||||
minSdkVersion 14
|
|
||||||
targetSdkVersion 14
|
|
||||||
}
|
|
||||||
|
|
||||||
buildTypes {
|
|
||||||
release {
|
|
||||||
minifyEnabled false
|
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
android{
|
|
||||||
useLibrary 'org.apache.http.legacy'
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,96 +0,0 @@
|
|||||||
#Tue Mar 28 12:59:09 CST 2023
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/font_super.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_font_super.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/call_record.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_call_record.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/new_note_normal.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_new_note_normal.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/edit_yellow.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_edit_yellow.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/edit_title_green.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_edit_title_green.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/menu/sub_folder.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\menu_sub_folder.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/edit_title_yellow.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_edit_title_yellow.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/font_small.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_font_small.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/widget_2x_white.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_widget_2x_white.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/edit_white.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_edit_white.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/layout/account_dialog_title.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\layout_account_dialog_title.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/widget_4x_green.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_widget_4x_green.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_blue_down.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_blue_down.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/color/secondary_text_dark.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\color_secondary_text_dark.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/layout/dialog_edit_text.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\layout_dialog_edit_text.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/layout/widget_4x.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\layout_widget_4x.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_yellow_middle.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_yellow_middle.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/menu_delete.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_menu_delete.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/clock.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_clock.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/font_normal.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_font_normal.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/dropdown_icon.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_dropdown_icon.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/layout/note_edit.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\layout_note_edit.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/edit_green.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_edit_green.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_green_single.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_green_single.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_white_single.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_white_single.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/raw-zh-rCN/introduction=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\raw-zh-rCN_introduction.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/widget_2x_green.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_widget_2x_green.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/xml/preferences.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\xml_preferences.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_red_single.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_red_single.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/delete.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_delete.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/menu/call_record_folder.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\menu_call_record_folder.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/widget_2x_red.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_widget_2x_red.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/layout/widget_2x.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\layout_widget_2x.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/menu_move.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_menu_move.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_green_down.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_green_down.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/layout/note_edit_list_item.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\layout_note_edit_list_item.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/widget_2x_blue.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_widget_2x_blue.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/layout/add_account_text.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\layout_add_account_text.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/xml/widget_4x_info.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\xml_widget_4x_info.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/font_size_selector_bg.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_font_size_selector_bg.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/selected.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_selected.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/search_result.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_search_result.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/widget_4x_white.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_widget_4x_white.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_blue_middle.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_blue_middle.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_green_middle.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_green_middle.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_white_down.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_white_down.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_blue_single.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_blue_single.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/font_large.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_font_large.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_yellow_up.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_yellow_up.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_red_middle.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_red_middle.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/layout/settings_header.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\layout_settings_header.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/menu/note_list.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\menu_note_list.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/menu/call_note_edit.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\menu_call_note_edit.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable/new_note.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable_new_note.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/edit_red.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_edit_red.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/layout/note_list.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\layout_note_list.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/color/primary_text_dark.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\color_primary_text_dark.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/layout/datetime_picker.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\layout_datetime_picker.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/raw/introduction=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\raw_introduction.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_yellow_single.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_yellow_single.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/widget_4x_yellow.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_widget_4x_yellow.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/widget_4x_red.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_widget_4x_red.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/title_alert.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_title_alert.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_red_down.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_red_down.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/menu/note_list_options.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\menu_note_list_options.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/widget_2x_yellow.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_widget_2x_yellow.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/icon_app.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_icon_app.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/layout/note_item.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\layout_note_item.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_background.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_background.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/edit_title_red.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_edit_title_red.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/title_bar_bg.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_title_bar_bg.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_footer_bg.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_footer_bg.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/new_note_pressed.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_new_note_pressed.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_green_up.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_green_up.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/layout/note_list_dropdown_menu.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\layout_note_list_dropdown_menu.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/layout/note_list_footer.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\layout_note_list_footer.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_red_up.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_red_up.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/menu/note_list_dropdown.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\menu_note_list_dropdown.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_white_up.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_white_up.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/edit_title_blue.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_edit_title_blue.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/bg_color_btn_mask.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_bg_color_btn_mask.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/edit_blue.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_edit_blue.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/bg_btn_set_color.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_bg_btn_set_color.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/edit_title_white.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_edit_title_white.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/xml/searchable.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\xml_searchable.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/notification.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_notification.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_blue_up.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_blue_up.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/xml/widget_2x_info.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\xml_widget_2x_info.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/note_edit_color_selector_panel.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_note_edit_color_selector_panel.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_white_middle.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_white_middle.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/layout/folder_list_item.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\layout_folder_list_item.xml.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_folder.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_folder.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/widget_4x_blue.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_widget_4x_blue.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/drawable-hdpi/list_yellow_down.9.png=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_yellow_down.9.png.flat
|
|
||||||
net.micode.notes.app-main-7\:/menu/note_edit.xml=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\merged_res\\debug\\menu_note_edit.xml.flat
|
|
File diff suppressed because one or more lines are too long
@ -1,2 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="D:\learn\StudioProjects\Notes-master\app\src\main\assets"/><source path="D:\learn\StudioProjects\Notes-master\app\build\intermediates\shader_assets\debug\out"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="D:\learn\StudioProjects\Notes-master\app\src\debug\assets"/></dataSet></merger>
|
|
@ -1,2 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="D:\learn\StudioProjects\Notes-master\app\src\main\jniLibs"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="D:\learn\StudioProjects\Notes-master\app\src\debug\jniLibs"/></dataSet></merger>
|
|
@ -1,2 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="D:\learn\StudioProjects\Notes-master\app\src\main\shaders"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="D:\learn\StudioProjects\Notes-master\app\src\debug\shaders"/></dataSet></merger>
|
|
@ -1,4 +0,0 @@
|
|||||||
#Tue Mar 28 13:39:25 CST 2023
|
|
||||||
base.0=D\:\\learn\\StudioProjects\\Notes-master\\app\\build\\intermediates\\dex\\debug\\mergeDexDebug\\classes.dex
|
|
||||||
renamed.0=classes.dex
|
|
||||||
path.0=classes.dex
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,273 +0,0 @@
|
|||||||
1<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
2<!--
|
|
||||||
3 Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
|
|
||||||
4
|
|
||||||
5 Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
6 you may not use this file except in compliance with the License.
|
|
||||||
7 You may obtain a copy of the License at
|
|
||||||
8
|
|
||||||
9 http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
10
|
|
||||||
11 Unless required by applicable law or agreed to in writing, software
|
|
||||||
12 distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
14 See the License for the specific language governing permissions and
|
|
||||||
15 limitations under the License.
|
|
||||||
16-->
|
|
||||||
17<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
18 package="net.micode.notes"
|
|
||||||
19 android:versionCode="1"
|
|
||||||
20 android:versionName="0.1" >
|
|
||||||
21
|
|
||||||
22 <uses-sdk
|
|
||||||
22-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:23:5-44
|
|
||||||
23 android:minSdkVersion="14"
|
|
||||||
23-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:23:15-41
|
|
||||||
24 android:targetSdkVersion="14" />
|
|
||||||
24-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:23:5-44
|
|
||||||
25
|
|
||||||
26 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
|
||||||
26-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:25:5-81
|
|
||||||
26-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:25:22-78
|
|
||||||
27 <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
|
|
||||||
27-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:26:5-88
|
|
||||||
27-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:26:22-85
|
|
||||||
28 <uses-permission android:name="android.permission.INTERNET" />
|
|
||||||
28-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:27:5-67
|
|
||||||
28-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:27:22-64
|
|
||||||
29 <uses-permission android:name="android.permission.READ_CONTACTS" />
|
|
||||||
29-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:28:5-72
|
|
||||||
29-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:28:22-69
|
|
||||||
30 <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
|
|
||||||
30-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:29:5-74
|
|
||||||
30-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:29:22-71
|
|
||||||
31 <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
|
|
||||||
31-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:30:5-80
|
|
||||||
31-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:30:22-77
|
|
||||||
32 <uses-permission android:name="android.permission.GET_ACCOUNTS" />
|
|
||||||
32-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:31:5-71
|
|
||||||
32-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:31:22-68
|
|
||||||
33 <uses-permission android:name="android.permission.USE_CREDENTIALS" />
|
|
||||||
33-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:32:5-74
|
|
||||||
33-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:32:22-71
|
|
||||||
34 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
|
||||||
34-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:33:5-81
|
|
||||||
34-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:33:22-78
|
|
||||||
35
|
|
||||||
36 <application
|
|
||||||
36-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:35:5-149:19
|
|
||||||
37 android:debuggable="true"
|
|
||||||
38 android:icon="@drawable/icon_app"
|
|
||||||
38-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:36:9-42
|
|
||||||
39 android:label="@string/app_name"
|
|
||||||
39-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:37:9-41
|
|
||||||
40 android:testOnly="true" >
|
|
||||||
41 <activity
|
|
||||||
41-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:38:9-51:20
|
|
||||||
42 android:name="net.micode.notes.ui.NotesListActivity"
|
|
||||||
42-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:39:13-49
|
|
||||||
43 android:configChanges="keyboardHidden|orientation|screenSize"
|
|
||||||
43-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:40:13-74
|
|
||||||
44 android:label="@string/app_name"
|
|
||||||
44-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:41:13-45
|
|
||||||
45 android:launchMode="singleTop"
|
|
||||||
45-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:42:13-43
|
|
||||||
46 android:theme="@style/NoteTheme"
|
|
||||||
46-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:43:13-45
|
|
||||||
47 android:uiOptions="splitActionBarWhenNarrow"
|
|
||||||
47-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:44:13-57
|
|
||||||
48 android:windowSoftInputMode="adjustPan" >
|
|
||||||
48-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:45:13-52
|
|
||||||
49 <intent-filter>
|
|
||||||
49-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:47:13-50:29
|
|
||||||
50 <action android:name="android.intent.action.MAIN" />
|
|
||||||
50-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:48:17-69
|
|
||||||
50-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:48:25-66
|
|
||||||
51
|
|
||||||
52 <category android:name="android.intent.category.LAUNCHER" />
|
|
||||||
52-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:49:17-77
|
|
||||||
52-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:49:27-74
|
|
||||||
53 </intent-filter>
|
|
||||||
54 </activity>
|
|
||||||
55 <activity
|
|
||||||
55-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:53:9-81:20
|
|
||||||
56 android:name="net.micode.notes.ui.NoteEditActivity"
|
|
||||||
56-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:54:13-48
|
|
||||||
57 android:configChanges="keyboardHidden|orientation|screenSize"
|
|
||||||
57-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:55:13-74
|
|
||||||
58 android:launchMode="singleTop"
|
|
||||||
58-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:56:13-43
|
|
||||||
59 android:theme="@style/NoteTheme" >
|
|
||||||
59-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:57:13-45
|
|
||||||
60 <intent-filter>
|
|
||||||
60-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:59:13-64:29
|
|
||||||
61 <action android:name="android.intent.action.VIEW" />
|
|
||||||
61-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:60:17-69
|
|
||||||
61-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:60:25-66
|
|
||||||
62
|
|
||||||
63 <category android:name="android.intent.category.DEFAULT" />
|
|
||||||
63-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:61:17-76
|
|
||||||
63-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:61:27-73
|
|
||||||
64
|
|
||||||
65 <data android:mimeType="vnd.android.cursor.item/text_note" />
|
|
||||||
65-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:62:17-78
|
|
||||||
65-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:62:23-75
|
|
||||||
66 <data android:mimeType="vnd.android.cursor.item/call_note" />
|
|
||||||
66-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:62:17-78
|
|
||||||
66-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:62:23-75
|
|
||||||
67 </intent-filter>
|
|
||||||
68 <intent-filter>
|
|
||||||
68-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:66:13-71:29
|
|
||||||
69 <action android:name="android.intent.action.INSERT_OR_EDIT" />
|
|
||||||
69-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:67:17-79
|
|
||||||
69-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:67:25-76
|
|
||||||
70
|
|
||||||
71 <category android:name="android.intent.category.DEFAULT" />
|
|
||||||
71-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:61:17-76
|
|
||||||
71-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:61:27-73
|
|
||||||
72
|
|
||||||
73 <data android:mimeType="vnd.android.cursor.item/text_note" />
|
|
||||||
73-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:62:17-78
|
|
||||||
73-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:62:23-75
|
|
||||||
74 <data android:mimeType="vnd.android.cursor.item/call_note" />
|
|
||||||
74-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:62:17-78
|
|
||||||
74-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:62:23-75
|
|
||||||
75 </intent-filter>
|
|
||||||
76 <intent-filter>
|
|
||||||
76-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:73:13-76:29
|
|
||||||
77 <action android:name="android.intent.action.SEARCH" />
|
|
||||||
77-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:74:17-71
|
|
||||||
77-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:74:25-68
|
|
||||||
78
|
|
||||||
79 <category android:name="android.intent.category.DEFAULT" />
|
|
||||||
79-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:61:17-76
|
|
||||||
79-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:61:27-73
|
|
||||||
80 </intent-filter>
|
|
||||||
81
|
|
||||||
82 <meta-data
|
|
||||||
82-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:78:13-80:54
|
|
||||||
83 android:name="android.app.searchable"
|
|
||||||
83-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:79:17-54
|
|
||||||
84 android:resource="@xml/searchable" />
|
|
||||||
84-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:80:17-51
|
|
||||||
85 </activity>
|
|
||||||
86
|
|
||||||
87 <provider
|
|
||||||
87-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:83:9-86:43
|
|
||||||
88 android:name="net.micode.notes.data.NotesProvider"
|
|
||||||
88-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:84:13-63
|
|
||||||
89 android:authorities="micode_notes"
|
|
||||||
89-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:85:13-47
|
|
||||||
90 android:multiprocess="true" />
|
|
||||||
90-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:86:13-40
|
|
||||||
91
|
|
||||||
92 <receiver
|
|
||||||
92-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:88:9-100:20
|
|
||||||
93 android:name="net.micode.notes.widget.NoteWidgetProvider_2x"
|
|
||||||
93-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:89:13-57
|
|
||||||
94 android:label="@string/app_widget2x2" >
|
|
||||||
94-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:90:13-50
|
|
||||||
95 <intent-filter>
|
|
||||||
95-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:91:13-95:29
|
|
||||||
96 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
|
||||||
96-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:92:17-84
|
|
||||||
96-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:92:25-81
|
|
||||||
97 <action android:name="android.appwidget.action.APPWIDGET_DELETED" />
|
|
||||||
97-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:93:17-85
|
|
||||||
97-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:93:25-82
|
|
||||||
98 <action android:name="android.intent.action.PRIVACY_MODE_CHANGED" />
|
|
||||||
98-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:94:17-85
|
|
||||||
98-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:94:25-82
|
|
||||||
99 </intent-filter>
|
|
||||||
100
|
|
||||||
101 <meta-data
|
|
||||||
101-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:97:13-99:58
|
|
||||||
102 android:name="android.appwidget.provider"
|
|
||||||
102-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:98:17-58
|
|
||||||
103 android:resource="@xml/widget_2x_info" />
|
|
||||||
103-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:99:17-55
|
|
||||||
104 </receiver>
|
|
||||||
105 <receiver
|
|
||||||
105-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:101:9-114:20
|
|
||||||
106 android:name="net.micode.notes.widget.NoteWidgetProvider_4x"
|
|
||||||
106-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:102:13-57
|
|
||||||
107 android:label="@string/app_widget4x4" >
|
|
||||||
107-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:103:13-50
|
|
||||||
108 <intent-filter>
|
|
||||||
108-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:91:13-95:29
|
|
||||||
109 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
|
||||||
109-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:92:17-84
|
|
||||||
109-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:92:25-81
|
|
||||||
110 <action android:name="android.appwidget.action.APPWIDGET_DELETED" />
|
|
||||||
110-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:93:17-85
|
|
||||||
110-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:93:25-82
|
|
||||||
111 <action android:name="android.intent.action.PRIVACY_MODE_CHANGED" />
|
|
||||||
111-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:94:17-85
|
|
||||||
111-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:94:25-82
|
|
||||||
112 </intent-filter>
|
|
||||||
113
|
|
||||||
114 <meta-data
|
|
||||||
114-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:97:13-99:58
|
|
||||||
115 android:name="android.appwidget.provider"
|
|
||||||
115-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:98:17-58
|
|
||||||
116 android:resource="@xml/widget_4x_info" />
|
|
||||||
116-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:99:17-55
|
|
||||||
117 </receiver>
|
|
||||||
118 <receiver android:name="net.micode.notes.ui.AlarmInitReceiver" >
|
|
||||||
118-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:116:9-120:20
|
|
||||||
118-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:116:19-55
|
|
||||||
119 <intent-filter>
|
|
||||||
119-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:117:13-119:29
|
|
||||||
120 <action android:name="android.intent.action.BOOT_COMPLETED" />
|
|
||||||
120-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:118:17-79
|
|
||||||
120-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:118:25-76
|
|
||||||
121 </intent-filter>
|
|
||||||
122 </receiver>
|
|
||||||
123 <receiver
|
|
||||||
123-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:122:9-125:20
|
|
||||||
124 android:name="net.micode.notes.ui.AlarmReceiver"
|
|
||||||
124-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:123:13-61
|
|
||||||
125 android:process=":remote" >
|
|
||||||
125-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:124:13-38
|
|
||||||
126 </receiver>
|
|
||||||
127
|
|
||||||
128 <activity
|
|
||||||
128-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:127:9-132:20
|
|
||||||
129 android:name="net.micode.notes.ui.AlarmAlertActivity"
|
|
||||||
129-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:128:13-50
|
|
||||||
130 android:label="@string/app_name"
|
|
||||||
130-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:129:13-45
|
|
||||||
131 android:launchMode="singleInstance"
|
|
||||||
131-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:130:13-48
|
|
||||||
132 android:theme="@android:style/Theme.Holo.Wallpaper.NoTitleBar" >
|
|
||||||
132-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:131:13-75
|
|
||||||
133 </activity>
|
|
||||||
134 <activity
|
|
||||||
134-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:134:9-139:20
|
|
||||||
135 android:name="net.micode.notes.ui.NotesPreferenceActivity"
|
|
||||||
135-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:135:13-71
|
|
||||||
136 android:label="@string/preferences_title"
|
|
||||||
136-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:136:13-54
|
|
||||||
137 android:launchMode="singleTop"
|
|
||||||
137-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:137:13-43
|
|
||||||
138 android:theme="@android:style/Theme.Holo.Light" >
|
|
||||||
138-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:138:13-60
|
|
||||||
139 </activity>
|
|
||||||
140
|
|
||||||
141 <service
|
|
||||||
141-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:141:9-144:19
|
|
||||||
142 android:name="net.micode.notes.gtask.remote.GTaskSyncService"
|
|
||||||
142-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:142:13-74
|
|
||||||
143 android:exported="false" >
|
|
||||||
143-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:143:13-37
|
|
||||||
144 </service>
|
|
||||||
145
|
|
||||||
146 <meta-data
|
|
||||||
146-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:146:9-148:52
|
|
||||||
147 android:name="android.app.default_searchable"
|
|
||||||
147-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:147:13-58
|
|
||||||
148 android:value=".ui.NoteEditActivity" />
|
|
||||||
148-->D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:148:13-49
|
|
||||||
149 </application>
|
|
||||||
150
|
|
||||||
151</manifest>
|
|
Binary file not shown.
@ -1,100 +0,0 @@
|
|||||||
{
|
|
||||||
"logs": [
|
|
||||||
{
|
|
||||||
"outputFile": "net.micode.notes.app-mergeDebugResources-3:/values/values.xml",
|
|
||||||
"map": [
|
|
||||||
{
|
|
||||||
"source": "D:\\learn\\StudioProjects\\Notes-master\\app\\src\\main\\res\\values\\strings.xml",
|
|
||||||
"from": {
|
|
||||||
"startLines": "128,72,75,74,73,19,20,21,118,119,127,126,26,81,82,80,79,78,94,93,92,84,39,38,64,29,30,85,41,76,120,71,67,42,48,53,43,63,62,61,57,56,54,55,58,59,49,70,60,68,47,52,51,50,66,46,65,44,45,69,28,34,36,33,35,32,31,25,24,101,100,104,116,109,108,110,111,113,112,102,103,107,105,106,99,114,115,125,123,122,124,27,83,91,96,95,97,90,89,88,87,22,23",
|
|
||||||
"startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4",
|
|
||||||
"startOffsets": "8008,3898,4159,4063,3994,827,870,922,7506,7555,7950,7899,1282,4613,4707,4542,4458,4375,5574,5491,5389,4883,2004,1953,3397,1486,1539,4944,2097,4242,7618,3827,3582,2156,2471,2772,2214,3326,3265,3208,2986,2934,2831,2884,3036,3086,2518,3761,3146,3631,2424,2717,2629,2571,3520,2374,3475,2271,2314,3694,1431,1750,1858,1703,1805,1647,1599,1227,1174,6030,5963,6271,7409,6635,6554,6709,6798,7040,6961,6114,6189,6495,6335,6415,5908,7184,7306,7858,7731,7674,7784,1366,4815,5303,5709,5640,5789,5244,5189,5127,5067,974,1084",
|
|
||||||
"endLines": "132,72,75,74,73,19,20,21,118,119,127,126,26,81,82,80,79,78,94,93,92,84,39,38,64,29,30,85,41,76,120,71,67,42,48,53,43,63,62,61,57,56,54,55,58,59,49,70,60,68,47,52,51,50,66,46,65,44,45,69,28,34,36,33,35,32,31,25,24,101,100,104,116,109,108,110,111,113,112,102,103,107,105,106,99,114,115,125,123,122,124,27,83,91,96,95,97,90,89,88,87,22,23",
|
|
||||||
"endColumns": "14,95,82,95,68,42,51,51,48,62,57,50,83,93,107,70,83,82,65,82,101,60,61,50,77,52,59,104,58,101,54,70,48,57,46,58,56,70,60,56,49,51,52,49,49,59,52,65,61,62,46,54,87,57,61,49,44,42,59,66,54,54,52,46,52,55,47,54,52,83,66,63,95,73,80,88,162,143,78,74,81,58,79,79,54,121,102,40,52,56,73,64,67,85,79,68,93,58,54,61,59,109,89",
|
|
||||||
"endOffsets": "8412,3989,4237,4154,4058,865,917,969,7550,7613,8003,7945,1361,4702,4810,4608,4537,4453,5635,5569,5486,4939,2061,1999,3470,1534,1594,5044,2151,4339,7668,3893,3626,2209,2513,2826,2266,3392,3321,3260,3031,2981,2879,2929,3081,3141,2566,3822,3203,3689,2466,2767,2712,2624,3577,2419,3515,2309,2369,3756,1481,1800,1906,1745,1853,1698,1642,1277,1222,6109,6025,6330,7500,6704,6630,6793,6956,7179,7035,6184,6266,6549,6410,6490,5958,7301,7404,7894,7779,7726,7853,1426,4878,5384,5784,5704,5878,5298,5239,5184,5122,1079,1169"
|
|
||||||
},
|
|
||||||
"to": {
|
|
||||||
"startLines": "18,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124",
|
|
||||||
"startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4",
|
|
||||||
"startOffsets": "739,1092,1188,1271,1367,1436,1479,1531,1583,1632,1695,1753,1804,1888,1982,2090,2161,2245,2328,2394,2477,2579,2640,2702,2753,2831,2884,2944,3049,3108,3210,3265,3336,3385,3443,3490,3549,3606,3677,3738,3795,3845,3897,3950,4000,4050,4110,4163,4229,4291,4354,4401,4456,4544,4602,4664,4714,4759,4802,4862,4929,4984,5039,5092,5139,5192,5248,5296,5351,5404,5488,5555,5619,5715,5789,5870,5959,6122,6266,6345,6420,6502,6561,6641,6721,6776,6898,7001,7042,7095,7152,7226,7291,7359,7445,7525,7594,7688,7747,7802,7864,7924,8034",
|
|
||||||
"endLines": "22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124",
|
|
||||||
"endColumns": "14,95,82,95,68,42,51,51,48,62,57,50,83,93,107,70,83,82,65,82,101,60,61,50,77,52,59,104,58,101,54,70,48,57,46,58,56,70,60,56,49,51,52,49,49,59,52,65,61,62,46,54,87,57,61,49,44,42,59,66,54,54,52,46,52,55,47,54,52,83,66,63,95,73,80,88,162,143,78,74,81,58,79,79,54,121,102,40,52,56,73,64,67,85,79,68,93,58,54,61,59,109,89",
|
|
||||||
"endOffsets": "1087,1183,1266,1362,1431,1474,1526,1578,1627,1690,1748,1799,1883,1977,2085,2156,2240,2323,2389,2472,2574,2635,2697,2748,2826,2879,2939,3044,3103,3205,3260,3331,3380,3438,3485,3544,3601,3672,3733,3790,3840,3892,3945,3995,4045,4105,4158,4224,4286,4349,4396,4451,4539,4597,4659,4709,4754,4797,4857,4924,4979,5034,5087,5134,5187,5243,5291,5346,5399,5483,5550,5614,5710,5784,5865,5954,6117,6261,6340,6415,6497,6556,6636,6716,6771,6893,6996,7037,7090,7147,7221,7286,7354,7440,7520,7589,7683,7742,7797,7859,7919,8029,8119"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "D:\\learn\\StudioProjects\\Notes-master\\app\\src\\main\\res\\values\\dimens.xml",
|
|
||||||
"from": {
|
|
||||||
"startLines": "19,20,21,22,18",
|
|
||||||
"startColumns": "4,4,4,4,4",
|
|
||||||
"startOffsets": "764,816,869,922,712",
|
|
||||||
"endColumns": "51,52,52,51,51",
|
|
||||||
"endOffsets": "811,864,917,969,759"
|
|
||||||
},
|
|
||||||
"to": {
|
|
||||||
"startLines": "13,14,15,16,17",
|
|
||||||
"startColumns": "4,4,4,4,4",
|
|
||||||
"startOffsets": "477,529,582,635,687",
|
|
||||||
"endColumns": "51,52,52,51,51",
|
|
||||||
"endOffsets": "524,577,630,682,734"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "D:\\learn\\StudioProjects\\Notes-master\\app\\src\\main\\res\\values\\colors.xml",
|
|
||||||
"from": {
|
|
||||||
"startLines": "18",
|
|
||||||
"startColumns": "4",
|
|
||||||
"startOffsets": "712",
|
|
||||||
"endColumns": "56",
|
|
||||||
"endOffsets": "764"
|
|
||||||
},
|
|
||||||
"to": {
|
|
||||||
"startLines": "12",
|
|
||||||
"startColumns": "4",
|
|
||||||
"startOffsets": "420",
|
|
||||||
"endColumns": "56",
|
|
||||||
"endOffsets": "472"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "D:\\learn\\StudioProjects\\Notes-master\\app\\src\\main\\res\\values\\styles.xml",
|
|
||||||
"from": {
|
|
||||||
"startLines": "50,55,64,60,22,26,30,35,40,18,45",
|
|
||||||
"startColumns": "4,4,4,4,4,4,4,4,4,4,4",
|
|
||||||
"startOffsets": "2062,2267,2640,2479,895,1078,1263,1449,1653,712,1860",
|
|
||||||
"endLines": "53,58,67,62,25,29,33,38,43,21,48",
|
|
||||||
"endColumns": "12,12,12,12,12,12,12,12,12,12,12",
|
|
||||||
"endOffsets": "2261,2473,2843,2634,1073,1258,1443,1647,1854,890,2056"
|
|
||||||
},
|
|
||||||
"to": {
|
|
||||||
"startLines": "125,129,133,137,140,144,148,152,156,160,164",
|
|
||||||
"startColumns": "4,4,4,4,4,4,4,4,4,4,4",
|
|
||||||
"startOffsets": "8124,8328,8539,8746,8906,9089,9274,9459,9662,9868,10051",
|
|
||||||
"endLines": "128,132,136,139,143,147,151,155,159,163,167",
|
|
||||||
"endColumns": "12,12,12,12,12,12,12,12,12,12,12",
|
|
||||||
"endOffsets": "8323,8534,8741,8901,9084,9269,9454,9657,9863,10046,10247"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "D:\\learn\\StudioProjects\\Notes-master\\app\\src\\main\\res\\values\\arrays.xml",
|
|
||||||
"from": {
|
|
||||||
"startLines": "19,26",
|
|
||||||
"startColumns": "4,4",
|
|
||||||
"startOffsets": "739,1047",
|
|
||||||
"endLines": "24,29",
|
|
||||||
"endColumns": "19,19",
|
|
||||||
"endOffsets": "1041,1162"
|
|
||||||
},
|
|
||||||
"to": {
|
|
||||||
"startLines": "2,8",
|
|
||||||
"startColumns": "4,4",
|
|
||||||
"startOffsets": "105,300",
|
|
||||||
"endLines": "7,11",
|
|
||||||
"endColumns": "19,19",
|
|
||||||
"endOffsets": "295,415"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,8 +0,0 @@
|
|||||||
net.micode.notes.app-pngs-0 D:\learn\StudioProjects\Notes-master\app\build\generated\res\pngs\debug
|
|
||||||
net.micode.notes.app-resValues-1 D:\learn\StudioProjects\Notes-master\app\build\generated\res\resValues\debug
|
|
||||||
net.micode.notes.app-rs-2 D:\learn\StudioProjects\Notes-master\app\build\generated\res\rs\debug
|
|
||||||
net.micode.notes.app-mergeDebugResources-3 D:\learn\StudioProjects\Notes-master\app\build\intermediates\incremental\debug\mergeDebugResources\merged.dir
|
|
||||||
net.micode.notes.app-mergeDebugResources-4 D:\learn\StudioProjects\Notes-master\app\build\intermediates\incremental\debug\mergeDebugResources\stripped.dir
|
|
||||||
net.micode.notes.app-merged_res-5 D:\learn\StudioProjects\Notes-master\app\build\intermediates\merged_res\debug
|
|
||||||
net.micode.notes.app-debug-6 D:\learn\StudioProjects\Notes-master\app\src\debug\res
|
|
||||||
net.micode.notes.app-main-7 D:\learn\StudioProjects\Notes-master\app\src\main\res
|
|
@ -1,235 +0,0 @@
|
|||||||
-- Merging decision tree log ---
|
|
||||||
manifest
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:18:1-150:12
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:18:1-150:12
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:18:1-150:12
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:18:1-150:12
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:18:1-150:12
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:18:1-150:12
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:18:1-150:12
|
|
||||||
package
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:19:5-31
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml
|
|
||||||
android:versionName
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:21:5-30
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml
|
|
||||||
xmlns:android
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:18:11-69
|
|
||||||
android:versionCode
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:20:5-28
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml
|
|
||||||
uses-sdk
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:23:5-44
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:23:5-44
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:23:5-44
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:23:5-44
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:23:5-44
|
|
||||||
android:targetSdkVersion
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:23:5-44
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml
|
|
||||||
android:minSdkVersion
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:23:15-41
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml
|
|
||||||
INJECTED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml
|
|
||||||
uses-permission#android.permission.WRITE_EXTERNAL_STORAGE
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:25:5-81
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:25:22-78
|
|
||||||
uses-permission#com.android.launcher.permission.INSTALL_SHORTCUT
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:26:5-88
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:26:22-85
|
|
||||||
uses-permission#android.permission.INTERNET
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:27:5-67
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:27:22-64
|
|
||||||
uses-permission#android.permission.READ_CONTACTS
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:28:5-72
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:28:22-69
|
|
||||||
uses-permission#android.permission.MANAGE_ACCOUNTS
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:29:5-74
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:29:22-71
|
|
||||||
uses-permission#android.permission.AUTHENTICATE_ACCOUNTS
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:30:5-80
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:30:22-77
|
|
||||||
uses-permission#android.permission.GET_ACCOUNTS
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:31:5-71
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:31:22-68
|
|
||||||
uses-permission#android.permission.USE_CREDENTIALS
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:32:5-74
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:32:22-71
|
|
||||||
uses-permission#android.permission.RECEIVE_BOOT_COMPLETED
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:33:5-81
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:33:22-78
|
|
||||||
application
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:35:5-149:19
|
|
||||||
android:label
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:37:9-41
|
|
||||||
android:icon
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:36:9-42
|
|
||||||
activity#net.micode.notes.ui.NotesListActivity
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:38:9-51:20
|
|
||||||
android:label
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:41:13-45
|
|
||||||
android:launchMode
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:42:13-43
|
|
||||||
android:windowSoftInputMode
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:45:13-52
|
|
||||||
android:uiOptions
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:44:13-57
|
|
||||||
android:configChanges
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:40:13-74
|
|
||||||
android:theme
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:43:13-45
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:39:13-49
|
|
||||||
intent-filter#action:name:android.intent.action.MAIN+category:name:android.intent.category.LAUNCHER
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:47:13-50:29
|
|
||||||
action#android.intent.action.MAIN
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:48:17-69
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:48:25-66
|
|
||||||
category#android.intent.category.LAUNCHER
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:49:17-77
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:49:27-74
|
|
||||||
activity#net.micode.notes.ui.NoteEditActivity
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:53:9-81:20
|
|
||||||
android:launchMode
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:56:13-43
|
|
||||||
android:configChanges
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:55:13-74
|
|
||||||
android:theme
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:57:13-45
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:54:13-48
|
|
||||||
intent-filter#action:name:android.intent.action.VIEW+category:name:android.intent.category.DEFAULT+data:mimeType:vnd.android.cursor.item/call_note+data:mimeType:vnd.android.cursor.item/text_note
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:59:13-64:29
|
|
||||||
action#android.intent.action.VIEW
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:60:17-69
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:60:25-66
|
|
||||||
category#android.intent.category.DEFAULT
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:61:17-76
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:61:27-73
|
|
||||||
data
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:62:17-78
|
|
||||||
android:mimeType
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:62:23-75
|
|
||||||
intent-filter#action:name:android.intent.action.INSERT_OR_EDIT+category:name:android.intent.category.DEFAULT+data:mimeType:vnd.android.cursor.item/call_note+data:mimeType:vnd.android.cursor.item/text_note
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:66:13-71:29
|
|
||||||
action#android.intent.action.INSERT_OR_EDIT
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:67:17-79
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:67:25-76
|
|
||||||
intent-filter#action:name:android.intent.action.SEARCH+category:name:android.intent.category.DEFAULT
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:73:13-76:29
|
|
||||||
action#android.intent.action.SEARCH
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:74:17-71
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:74:25-68
|
|
||||||
meta-data#android.app.searchable
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:78:13-80:54
|
|
||||||
android:resource
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:80:17-51
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:79:17-54
|
|
||||||
provider#net.micode.notes.data.NotesProvider
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:83:9-86:43
|
|
||||||
android:authorities
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:85:13-47
|
|
||||||
android:multiprocess
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:86:13-40
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:84:13-63
|
|
||||||
receiver#net.micode.notes.widget.NoteWidgetProvider_2x
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:88:9-100:20
|
|
||||||
android:label
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:90:13-50
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:89:13-57
|
|
||||||
intent-filter#action:name:android.appwidget.action.APPWIDGET_DELETED+action:name:android.appwidget.action.APPWIDGET_UPDATE+action:name:android.intent.action.PRIVACY_MODE_CHANGED
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:91:13-95:29
|
|
||||||
action#android.appwidget.action.APPWIDGET_UPDATE
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:92:17-84
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:92:25-81
|
|
||||||
action#android.appwidget.action.APPWIDGET_DELETED
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:93:17-85
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:93:25-82
|
|
||||||
action#android.intent.action.PRIVACY_MODE_CHANGED
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:94:17-85
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:94:25-82
|
|
||||||
meta-data#android.appwidget.provider
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:97:13-99:58
|
|
||||||
android:resource
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:99:17-55
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:98:17-58
|
|
||||||
receiver#net.micode.notes.widget.NoteWidgetProvider_4x
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:101:9-114:20
|
|
||||||
android:label
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:103:13-50
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:102:13-57
|
|
||||||
receiver#net.micode.notes.ui.AlarmInitReceiver
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:116:9-120:20
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:116:19-55
|
|
||||||
intent-filter#action:name:android.intent.action.BOOT_COMPLETED
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:117:13-119:29
|
|
||||||
action#android.intent.action.BOOT_COMPLETED
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:118:17-79
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:118:25-76
|
|
||||||
receiver#net.micode.notes.ui.AlarmReceiver
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:122:9-125:20
|
|
||||||
android:process
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:124:13-38
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:123:13-61
|
|
||||||
activity#net.micode.notes.ui.AlarmAlertActivity
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:127:9-132:20
|
|
||||||
android:label
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:129:13-45
|
|
||||||
android:launchMode
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:130:13-48
|
|
||||||
android:theme
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:131:13-75
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:128:13-50
|
|
||||||
activity#net.micode.notes.ui.NotesPreferenceActivity
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:134:9-139:20
|
|
||||||
android:label
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:136:13-54
|
|
||||||
android:launchMode
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:137:13-43
|
|
||||||
android:theme
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:138:13-60
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:135:13-71
|
|
||||||
service#net.micode.notes.gtask.remote.GTaskSyncService
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:141:9-144:19
|
|
||||||
android:exported
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:143:13-37
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:142:13-74
|
|
||||||
meta-data#android.app.default_searchable
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:146:9-148:52
|
|
||||||
android:value
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:148:13-49
|
|
||||||
android:name
|
|
||||||
ADDED from D:\learn\StudioProjects\Notes-master\app\src\main\AndroidManifest.xml:147:13-58
|
|
Binary file not shown.
@ -1,362 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package net.micode.notes.data;
|
|
||||||
|
|
||||||
import android.content.ContentValues;
|
|
||||||
import android.content.Context;
|
|
||||||
import android.database.sqlite.SQLiteDatabase;
|
|
||||||
import android.database.sqlite.SQLiteOpenHelper;
|
|
||||||
import android.util.Log;
|
|
||||||
|
|
||||||
import net.micode.notes.data.Notes.DataColumns;
|
|
||||||
import net.micode.notes.data.Notes.DataConstants;
|
|
||||||
import net.micode.notes.data.Notes.NoteColumns;
|
|
||||||
|
|
||||||
|
|
||||||
public class NotesDatabaseHelper extends SQLiteOpenHelper {
|
|
||||||
private static final String DB_NAME = "note.db";
|
|
||||||
|
|
||||||
private static final int DB_VERSION = 4;
|
|
||||||
|
|
||||||
public interface TABLE {
|
|
||||||
public static final String NOTE = "note";
|
|
||||||
|
|
||||||
public static final String DATA = "data";
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final String TAG = "NotesDatabaseHelper";
|
|
||||||
|
|
||||||
private static NotesDatabaseHelper mInstance;
|
|
||||||
|
|
||||||
private static final String CREATE_NOTE_TABLE_SQL =
|
|
||||||
"CREATE TABLE " + TABLE.NOTE + "(" +
|
|
||||||
NoteColumns.ID + " INTEGER PRIMARY KEY," +
|
|
||||||
NoteColumns.PARENT_ID + " INTEGER NOT NULL DEFAULT 0," +
|
|
||||||
NoteColumns.ALERTED_DATE + " INTEGER NOT NULL DEFAULT 0," +
|
|
||||||
NoteColumns.BG_COLOR_ID + " INTEGER NOT NULL DEFAULT 0," +
|
|
||||||
NoteColumns.CREATED_DATE + " INTEGER NOT NULL DEFAULT (strftime('%s','now') * 1000)," +
|
|
||||||
NoteColumns.HAS_ATTACHMENT + " INTEGER NOT NULL DEFAULT 0," +
|
|
||||||
NoteColumns.MODIFIED_DATE + " INTEGER NOT NULL DEFAULT (strftime('%s','now') * 1000)," +
|
|
||||||
NoteColumns.NOTES_COUNT + " INTEGER NOT NULL DEFAULT 0," +
|
|
||||||
NoteColumns.SNIPPET + " TEXT NOT NULL DEFAULT ''," +
|
|
||||||
NoteColumns.TYPE + " INTEGER NOT NULL DEFAULT 0," +
|
|
||||||
NoteColumns.WIDGET_ID + " INTEGER NOT NULL DEFAULT 0," +
|
|
||||||
NoteColumns.WIDGET_TYPE + " INTEGER NOT NULL DEFAULT -1," +
|
|
||||||
NoteColumns.SYNC_ID + " INTEGER NOT NULL DEFAULT 0," +
|
|
||||||
NoteColumns.LOCAL_MODIFIED + " INTEGER NOT NULL DEFAULT 0," +
|
|
||||||
NoteColumns.ORIGIN_PARENT_ID + " INTEGER NOT NULL DEFAULT 0," +
|
|
||||||
NoteColumns.GTASK_ID + " TEXT NOT NULL DEFAULT ''," +
|
|
||||||
NoteColumns.VERSION + " INTEGER NOT NULL DEFAULT 0" +
|
|
||||||
")";
|
|
||||||
|
|
||||||
private static final String CREATE_DATA_TABLE_SQL =
|
|
||||||
"CREATE TABLE " + TABLE.DATA + "(" +
|
|
||||||
DataColumns.ID + " INTEGER PRIMARY KEY," +
|
|
||||||
DataColumns.MIME_TYPE + " TEXT NOT NULL," +
|
|
||||||
DataColumns.NOTE_ID + " INTEGER NOT NULL DEFAULT 0," +
|
|
||||||
NoteColumns.CREATED_DATE + " INTEGER NOT NULL DEFAULT (strftime('%s','now') * 1000)," +
|
|
||||||
NoteColumns.MODIFIED_DATE + " INTEGER NOT NULL DEFAULT (strftime('%s','now') * 1000)," +
|
|
||||||
DataColumns.CONTENT + " TEXT NOT NULL DEFAULT ''," +
|
|
||||||
DataColumns.DATA1 + " INTEGER," +
|
|
||||||
DataColumns.DATA2 + " INTEGER," +
|
|
||||||
DataColumns.DATA3 + " TEXT NOT NULL DEFAULT ''," +
|
|
||||||
DataColumns.DATA4 + " TEXT NOT NULL DEFAULT ''," +
|
|
||||||
DataColumns.DATA5 + " TEXT NOT NULL DEFAULT ''" +
|
|
||||||
")";
|
|
||||||
|
|
||||||
private static final String CREATE_DATA_NOTE_ID_INDEX_SQL =
|
|
||||||
"CREATE INDEX IF NOT EXISTS note_id_index ON " +
|
|
||||||
TABLE.DATA + "(" + DataColumns.NOTE_ID + ");";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Increase folder's note count when move note to the folder
|
|
||||||
*/
|
|
||||||
private static final String NOTE_INCREASE_FOLDER_COUNT_ON_UPDATE_TRIGGER =
|
|
||||||
"CREATE TRIGGER increase_folder_count_on_update "+
|
|
||||||
" AFTER UPDATE OF " + NoteColumns.PARENT_ID + " ON " + TABLE.NOTE +
|
|
||||||
" BEGIN " +
|
|
||||||
" UPDATE " + TABLE.NOTE +
|
|
||||||
" SET " + NoteColumns.NOTES_COUNT + "=" + NoteColumns.NOTES_COUNT + " + 1" +
|
|
||||||
" WHERE " + NoteColumns.ID + "=new." + NoteColumns.PARENT_ID + ";" +
|
|
||||||
" END";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Decrease folder's note count when move note from folder
|
|
||||||
*/
|
|
||||||
private static final String NOTE_DECREASE_FOLDER_COUNT_ON_UPDATE_TRIGGER =
|
|
||||||
"CREATE TRIGGER decrease_folder_count_on_update " +
|
|
||||||
" AFTER UPDATE OF " + NoteColumns.PARENT_ID + " ON " + TABLE.NOTE +
|
|
||||||
" BEGIN " +
|
|
||||||
" UPDATE " + TABLE.NOTE +
|
|
||||||
" SET " + NoteColumns.NOTES_COUNT + "=" + NoteColumns.NOTES_COUNT + "-1" +
|
|
||||||
" WHERE " + NoteColumns.ID + "=old." + NoteColumns.PARENT_ID +
|
|
||||||
" AND " + NoteColumns.NOTES_COUNT + ">0" + ";" +
|
|
||||||
" END";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Increase folder's note count when insert new note to the folder
|
|
||||||
*/
|
|
||||||
private static final String NOTE_INCREASE_FOLDER_COUNT_ON_INSERT_TRIGGER =
|
|
||||||
"CREATE TRIGGER increase_folder_count_on_insert " +
|
|
||||||
" AFTER INSERT ON " + TABLE.NOTE +
|
|
||||||
" BEGIN " +
|
|
||||||
" UPDATE " + TABLE.NOTE +
|
|
||||||
" SET " + NoteColumns.NOTES_COUNT + "=" + NoteColumns.NOTES_COUNT + " + 1" +
|
|
||||||
" WHERE " + NoteColumns.ID + "=new." + NoteColumns.PARENT_ID + ";" +
|
|
||||||
" END";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Decrease folder's note count when delete note from the folder
|
|
||||||
*/
|
|
||||||
private static final String NOTE_DECREASE_FOLDER_COUNT_ON_DELETE_TRIGGER =
|
|
||||||
"CREATE TRIGGER decrease_folder_count_on_delete " +
|
|
||||||
" AFTER DELETE ON " + TABLE.NOTE +
|
|
||||||
" BEGIN " +
|
|
||||||
" UPDATE " + TABLE.NOTE +
|
|
||||||
" SET " + NoteColumns.NOTES_COUNT + "=" + NoteColumns.NOTES_COUNT + "-1" +
|
|
||||||
" WHERE " + NoteColumns.ID + "=old." + NoteColumns.PARENT_ID +
|
|
||||||
" AND " + NoteColumns.NOTES_COUNT + ">0;" +
|
|
||||||
" END";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Update note's content when insert data with type {@link DataConstants#NOTE}
|
|
||||||
*/
|
|
||||||
private static final String DATA_UPDATE_NOTE_CONTENT_ON_INSERT_TRIGGER =
|
|
||||||
"CREATE TRIGGER update_note_content_on_insert " +
|
|
||||||
" AFTER INSERT ON " + TABLE.DATA +
|
|
||||||
" WHEN new." + DataColumns.MIME_TYPE + "='" + DataConstants.NOTE + "'" +
|
|
||||||
" BEGIN" +
|
|
||||||
" UPDATE " + TABLE.NOTE +
|
|
||||||
" SET " + NoteColumns.SNIPPET + "=new." + DataColumns.CONTENT +
|
|
||||||
" WHERE " + NoteColumns.ID + "=new." + DataColumns.NOTE_ID + ";" +
|
|
||||||
" END";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Update note's content when data with {@link DataConstants#NOTE} type has changed
|
|
||||||
*/
|
|
||||||
private static final String DATA_UPDATE_NOTE_CONTENT_ON_UPDATE_TRIGGER =
|
|
||||||
"CREATE TRIGGER update_note_content_on_update " +
|
|
||||||
" AFTER UPDATE ON " + TABLE.DATA +
|
|
||||||
" WHEN old." + DataColumns.MIME_TYPE + "='" + DataConstants.NOTE + "'" +
|
|
||||||
" BEGIN" +
|
|
||||||
" UPDATE " + TABLE.NOTE +
|
|
||||||
" SET " + NoteColumns.SNIPPET + "=new." + DataColumns.CONTENT +
|
|
||||||
" WHERE " + NoteColumns.ID + "=new." + DataColumns.NOTE_ID + ";" +
|
|
||||||
" END";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Update note's content when data with {@link DataConstants#NOTE} type has deleted
|
|
||||||
*/
|
|
||||||
private static final String DATA_UPDATE_NOTE_CONTENT_ON_DELETE_TRIGGER =
|
|
||||||
"CREATE TRIGGER update_note_content_on_delete " +
|
|
||||||
" AFTER delete ON " + TABLE.DATA +
|
|
||||||
" WHEN old." + DataColumns.MIME_TYPE + "='" + DataConstants.NOTE + "'" +
|
|
||||||
" BEGIN" +
|
|
||||||
" UPDATE " + TABLE.NOTE +
|
|
||||||
" SET " + NoteColumns.SNIPPET + "=''" +
|
|
||||||
" WHERE " + NoteColumns.ID + "=old." + DataColumns.NOTE_ID + ";" +
|
|
||||||
" END";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Delete datas belong to note which has been deleted
|
|
||||||
*/
|
|
||||||
private static final String NOTE_DELETE_DATA_ON_DELETE_TRIGGER =
|
|
||||||
"CREATE TRIGGER delete_data_on_delete " +
|
|
||||||
" AFTER DELETE ON " + TABLE.NOTE +
|
|
||||||
" BEGIN" +
|
|
||||||
" DELETE FROM " + TABLE.DATA +
|
|
||||||
" WHERE " + DataColumns.NOTE_ID + "=old." + NoteColumns.ID + ";" +
|
|
||||||
" END";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Delete notes belong to folder which has been deleted
|
|
||||||
*/
|
|
||||||
private static final String FOLDER_DELETE_NOTES_ON_DELETE_TRIGGER =
|
|
||||||
"CREATE TRIGGER folder_delete_notes_on_delete " +
|
|
||||||
" AFTER DELETE ON " + TABLE.NOTE +
|
|
||||||
" BEGIN" +
|
|
||||||
" DELETE FROM " + TABLE.NOTE +
|
|
||||||
" WHERE " + NoteColumns.PARENT_ID + "=old." + NoteColumns.ID + ";" +
|
|
||||||
" END";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Move notes belong to folder which has been moved to trash folder
|
|
||||||
*/
|
|
||||||
private static final String FOLDER_MOVE_NOTES_ON_TRASH_TRIGGER =
|
|
||||||
"CREATE TRIGGER folder_move_notes_on_trash " +
|
|
||||||
" AFTER UPDATE ON " + TABLE.NOTE +
|
|
||||||
" WHEN new." + NoteColumns.PARENT_ID + "=" + Notes.ID_TRASH_FOLER +
|
|
||||||
" BEGIN" +
|
|
||||||
" UPDATE " + TABLE.NOTE +
|
|
||||||
" SET " + NoteColumns.PARENT_ID + "=" + Notes.ID_TRASH_FOLER +
|
|
||||||
" WHERE " + NoteColumns.PARENT_ID + "=old." + NoteColumns.ID + ";" +
|
|
||||||
" END";
|
|
||||||
|
|
||||||
public NotesDatabaseHelper(Context context) {
|
|
||||||
super(context, DB_NAME, null, DB_VERSION);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void createNoteTable(SQLiteDatabase db) {
|
|
||||||
db.execSQL(CREATE_NOTE_TABLE_SQL);
|
|
||||||
reCreateNoteTableTriggers(db);
|
|
||||||
createSystemFolder(db);
|
|
||||||
Log.d(TAG, "note table has been created");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reCreateNoteTableTriggers(SQLiteDatabase db) {
|
|
||||||
db.execSQL("DROP TRIGGER IF EXISTS increase_folder_count_on_update");
|
|
||||||
db.execSQL("DROP TRIGGER IF EXISTS decrease_folder_count_on_update");
|
|
||||||
db.execSQL("DROP TRIGGER IF EXISTS decrease_folder_count_on_delete");
|
|
||||||
db.execSQL("DROP TRIGGER IF EXISTS delete_data_on_delete");
|
|
||||||
db.execSQL("DROP TRIGGER IF EXISTS increase_folder_count_on_insert");
|
|
||||||
db.execSQL("DROP TRIGGER IF EXISTS folder_delete_notes_on_delete");
|
|
||||||
db.execSQL("DROP TRIGGER IF EXISTS folder_move_notes_on_trash");
|
|
||||||
|
|
||||||
db.execSQL(NOTE_INCREASE_FOLDER_COUNT_ON_UPDATE_TRIGGER);
|
|
||||||
db.execSQL(NOTE_DECREASE_FOLDER_COUNT_ON_UPDATE_TRIGGER);
|
|
||||||
db.execSQL(NOTE_DECREASE_FOLDER_COUNT_ON_DELETE_TRIGGER);
|
|
||||||
db.execSQL(NOTE_DELETE_DATA_ON_DELETE_TRIGGER);
|
|
||||||
db.execSQL(NOTE_INCREASE_FOLDER_COUNT_ON_INSERT_TRIGGER);
|
|
||||||
db.execSQL(FOLDER_DELETE_NOTES_ON_DELETE_TRIGGER);
|
|
||||||
db.execSQL(FOLDER_MOVE_NOTES_ON_TRASH_TRIGGER);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void createSystemFolder(SQLiteDatabase db) {
|
|
||||||
ContentValues values = new ContentValues();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* call record foler for call notes
|
|
||||||
*/
|
|
||||||
values.put(NoteColumns.ID, Notes.ID_CALL_RECORD_FOLDER);
|
|
||||||
values.put(NoteColumns.TYPE, Notes.TYPE_SYSTEM);
|
|
||||||
db.insert(TABLE.NOTE, null, values);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* root folder which is default folder
|
|
||||||
*/
|
|
||||||
values.clear();
|
|
||||||
values.put(NoteColumns.ID, Notes.ID_ROOT_FOLDER);
|
|
||||||
values.put(NoteColumns.TYPE, Notes.TYPE_SYSTEM);
|
|
||||||
db.insert(TABLE.NOTE, null, values);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* temporary folder which is used for moving note
|
|
||||||
*/
|
|
||||||
values.clear();
|
|
||||||
values.put(NoteColumns.ID, Notes.ID_TEMPARAY_FOLDER);
|
|
||||||
values.put(NoteColumns.TYPE, Notes.TYPE_SYSTEM);
|
|
||||||
db.insert(TABLE.NOTE, null, values);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* create trash folder
|
|
||||||
*/
|
|
||||||
values.clear();
|
|
||||||
values.put(NoteColumns.ID, Notes.ID_TRASH_FOLER);
|
|
||||||
values.put(NoteColumns.TYPE, Notes.TYPE_SYSTEM);
|
|
||||||
db.insert(TABLE.NOTE, null, values);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void createDataTable(SQLiteDatabase db) {
|
|
||||||
db.execSQL(CREATE_DATA_TABLE_SQL);
|
|
||||||
reCreateDataTableTriggers(db);
|
|
||||||
db.execSQL(CREATE_DATA_NOTE_ID_INDEX_SQL);
|
|
||||||
Log.d(TAG, "data table has been created");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reCreateDataTableTriggers(SQLiteDatabase db) {
|
|
||||||
db.execSQL("DROP TRIGGER IF EXISTS update_note_content_on_insert");
|
|
||||||
db.execSQL("DROP TRIGGER IF EXISTS update_note_content_on_update");
|
|
||||||
db.execSQL("DROP TRIGGER IF EXISTS update_note_content_on_delete");
|
|
||||||
|
|
||||||
db.execSQL(DATA_UPDATE_NOTE_CONTENT_ON_INSERT_TRIGGER);
|
|
||||||
db.execSQL(DATA_UPDATE_NOTE_CONTENT_ON_UPDATE_TRIGGER);
|
|
||||||
db.execSQL(DATA_UPDATE_NOTE_CONTENT_ON_DELETE_TRIGGER);
|
|
||||||
}
|
|
||||||
|
|
||||||
static synchronized NotesDatabaseHelper getInstance(Context context) {
|
|
||||||
if (mInstance == null) {
|
|
||||||
mInstance = new NotesDatabaseHelper(context);
|
|
||||||
}
|
|
||||||
return mInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onCreate(SQLiteDatabase db) {
|
|
||||||
createNoteTable(db);
|
|
||||||
createDataTable(db);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
|
|
||||||
boolean reCreateTriggers = false;
|
|
||||||
boolean skipV2 = false;
|
|
||||||
|
|
||||||
if (oldVersion == 1) {
|
|
||||||
upgradeToV2(db);
|
|
||||||
skipV2 = true; // this upgrade including the upgrade from v2 to v3
|
|
||||||
oldVersion++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (oldVersion == 2 && !skipV2) {
|
|
||||||
upgradeToV3(db);
|
|
||||||
reCreateTriggers = true;
|
|
||||||
oldVersion++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (oldVersion == 3) {
|
|
||||||
upgradeToV4(db);
|
|
||||||
oldVersion++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (reCreateTriggers) {
|
|
||||||
reCreateNoteTableTriggers(db);
|
|
||||||
reCreateDataTableTriggers(db);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (oldVersion != newVersion) {
|
|
||||||
throw new IllegalStateException("Upgrade notes database to version " + newVersion
|
|
||||||
+ "fails");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void upgradeToV2(SQLiteDatabase db) {
|
|
||||||
db.execSQL("DROP TABLE IF EXISTS " + TABLE.NOTE);
|
|
||||||
db.execSQL("DROP TABLE IF EXISTS " + TABLE.DATA);
|
|
||||||
createNoteTable(db);
|
|
||||||
createDataTable(db);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void upgradeToV3(SQLiteDatabase db) {
|
|
||||||
// drop unused triggers
|
|
||||||
db.execSQL("DROP TRIGGER IF EXISTS update_note_modified_date_on_insert");
|
|
||||||
db.execSQL("DROP TRIGGER IF EXISTS update_note_modified_date_on_delete");
|
|
||||||
db.execSQL("DROP TRIGGER IF EXISTS update_note_modified_date_on_update");
|
|
||||||
// add a column for gtask id
|
|
||||||
db.execSQL("ALTER TABLE " + TABLE.NOTE + " ADD COLUMN " + NoteColumns.GTASK_ID
|
|
||||||
+ " TEXT NOT NULL DEFAULT ''");
|
|
||||||
// add a trash system folder
|
|
||||||
ContentValues values = new ContentValues();
|
|
||||||
values.put(NoteColumns.ID, Notes.ID_TRASH_FOLER);
|
|
||||||
values.put(NoteColumns.TYPE, Notes.TYPE_SYSTEM);
|
|
||||||
db.insert(TABLE.NOTE, null, values);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void upgradeToV4(SQLiteDatabase db) {
|
|
||||||
db.execSQL("ALTER TABLE " + TABLE.NOTE + " ADD COLUMN " + NoteColumns.VERSION
|
|
||||||
+ " INTEGER NOT NULL DEFAULT 0");
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 58 KiB |
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,81 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package net.micode.notes.data;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
import android.database.Cursor;
|
||||||
|
import android.provider.ContactsContract.CommonDataKinds.Phone;
|
||||||
|
import android.provider.ContactsContract.Data;
|
||||||
|
import android.telephony.PhoneNumberUtils;
|
||||||
|
import android.util.Log;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
|
||||||
|
public class Contact {//联系人
|
||||||
|
private static HashMap<String, String> sContactCache;
|
||||||
|
private static final String TAG = "Contact";
|
||||||
|
//定义字符串CALLER_ID_SELECTION
|
||||||
|
private static final String CALLER_ID_SELECTION = "PHONE_NUMBERS_EQUAL(" + Phone.NUMBER
|
||||||
|
+ ",?) AND " + Data.MIMETYPE + "='" + Phone.CONTENT_ITEM_TYPE + "'"
|
||||||
|
+ " AND " + Data.RAW_CONTACT_ID + " IN "
|
||||||
|
+ "(SELECT raw_contact_id "
|
||||||
|
+ " FROM phone_lookup"
|
||||||
|
+ " WHERE min_match = '+')";
|
||||||
|
//获取联系人
|
||||||
|
public static String getContact(Context context, String phoneNumber) {
|
||||||
|
if(sContactCache == null) {
|
||||||
|
sContactCache = new HashMap<String, String>();
|
||||||
|
}
|
||||||
|
//查找hashmap中是否有phonenumber信息
|
||||||
|
|
||||||
|
if(sContactCache.containsKey(phoneNumber)) {
|
||||||
|
return sContactCache.get(phoneNumber);
|
||||||
|
}
|
||||||
|
|
||||||
|
String selection = CALLER_ID_SELECTION.replace("+",
|
||||||
|
PhoneNumberUtils.toCallerIDMinMatch(phoneNumber));
|
||||||
|
|
||||||
|
//查找数据库中phoneNumber信息
|
||||||
|
Cursor cursor = context.getContentResolver().query(
|
||||||
|
Data.CONTENT_URI,
|
||||||
|
new String [] { Phone.DISPLAY_NAME },
|
||||||
|
selection,
|
||||||
|
new String[] { phoneNumber },
|
||||||
|
null);
|
||||||
|
|
||||||
|
//判断查询结果
|
||||||
|
//moveToFirst()返回第一条
|
||||||
|
if (cursor != null && cursor.moveToFirst()) {
|
||||||
|
try {
|
||||||
|
//找到相关信息
|
||||||
|
String name = cursor.getString(0);
|
||||||
|
sContactCache.put(phoneNumber, name);
|
||||||
|
return name;
|
||||||
|
//异常
|
||||||
|
} catch (IndexOutOfBoundsException e) {
|
||||||
|
Log.e(TAG, " Cursor get string error " + e.toString());
|
||||||
|
return null;
|
||||||
|
} finally {
|
||||||
|
cursor.close();
|
||||||
|
}
|
||||||
|
//未找到相关信息
|
||||||
|
} else {
|
||||||
|
Log.d(TAG, "No contact matched with number:" + phoneNumber);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,255 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package net.micode.notes.model;
|
||||||
|
|
||||||
|
import android.content.ContentProviderOperation;//批量的更新、插入、删除数据。
|
||||||
|
import android.content.ContentProviderResult;//操作的结果
|
||||||
|
import android.content.ContentUris;//用于添加和获取Uri后面的ID
|
||||||
|
import android.content.ContentValues;//一种用来存储基本数据类型数据的存储机制
|
||||||
|
import android.content.Context;//一种用来存储基本数据类型数据的存储机制
|
||||||
|
import android.content.OperationApplicationException;//操作应用程序容错
|
||||||
|
import android.net.Uri;//表示待操作的数据
|
||||||
|
import android.os.RemoteException;//远程容错
|
||||||
|
import android.util.Log;//输出日志,比如说出错、警告等
|
||||||
|
|
||||||
|
import net.micode.notes.data.Notes;
|
||||||
|
import net.micode.notes.data.Notes.CallNote;
|
||||||
|
import net.micode.notes.data.Notes.DataColumns;
|
||||||
|
import net.micode.notes.data.Notes.NoteColumns;
|
||||||
|
import net.micode.notes.data.Notes.TextNote;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
|
||||||
|
public class Note {
|
||||||
|
private ContentValues mNoteDiffValues;
|
||||||
|
private NoteData mNoteData;
|
||||||
|
private static final String TAG = "Note";
|
||||||
|
/**
|
||||||
|
* Create a new note id for adding a new note to databases
|
||||||
|
*/
|
||||||
|
public static synchronized long getNewNoteId(Context context, long folderId) {
|
||||||
|
// Create a new note in the database
|
||||||
|
ContentValues values = new ContentValues();
|
||||||
|
long createdTime = System.currentTimeMillis();
|
||||||
|
values.put(NoteColumns.CREATED_DATE, createdTime);
|
||||||
|
values.put(NoteColumns.MODIFIED_DATE, createdTime);
|
||||||
|
values.put(NoteColumns.TYPE, Notes.TYPE_NOTE);
|
||||||
|
values.put(NoteColumns.LOCAL_MODIFIED, 1);
|
||||||
|
values.put(NoteColumns.PARENT_ID, folderId);//将数据写入数据库表格
|
||||||
|
Uri uri = context.getContentResolver().insert(Notes.CONTENT_NOTE_URI, values);
|
||||||
|
//ContentResolver()主要是实现外部应用对ContentProvider中的数据
|
||||||
|
//进行添加、删除、修改和查询操作
|
||||||
|
long noteId = 0;
|
||||||
|
try {
|
||||||
|
noteId = Long.valueOf(uri.getPathSegments().get(1));
|
||||||
|
} catch (NumberFormatException e) {
|
||||||
|
Log.e(TAG, "Get note id error :" + e.toString());
|
||||||
|
noteId = 0;
|
||||||
|
}//try-catch异常处理
|
||||||
|
if (noteId == -1) {
|
||||||
|
throw new IllegalStateException("Wrong note id:" + noteId);
|
||||||
|
}
|
||||||
|
return noteId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Note() {
|
||||||
|
mNoteDiffValues = new ContentValues();
|
||||||
|
mNoteData = new NoteData();
|
||||||
|
}//定义两个变量用来存储便签的数据,一个是存储便签属性、一个是存储便签内容
|
||||||
|
|
||||||
|
public void setNoteValue(String key, String value) {
|
||||||
|
mNoteDiffValues.put(key, value);
|
||||||
|
mNoteDiffValues.put(NoteColumns.LOCAL_MODIFIED, 1);
|
||||||
|
mNoteDiffValues.put(NoteColumns.MODIFIED_DATE, System.currentTimeMillis());
|
||||||
|
}//设置数据库表格的标签属性数据
|
||||||
|
|
||||||
|
public void setTextData(String key, String value) {
|
||||||
|
mNoteData.setTextData(key, value);
|
||||||
|
}//设置数据库表格的标签文本内容的数据
|
||||||
|
|
||||||
|
public void setTextDataId(long id) {
|
||||||
|
mNoteData.setTextDataId(id);
|
||||||
|
}//设置文本数据的ID
|
||||||
|
|
||||||
|
public long getTextDataId() {
|
||||||
|
return mNoteData.mTextDataId;
|
||||||
|
}//得到文本数据的ID
|
||||||
|
|
||||||
|
public void setCallDataId(long id) {
|
||||||
|
mNoteData.setCallDataId(id);
|
||||||
|
}//设置电话号码数据的ID
|
||||||
|
|
||||||
|
public void setCallData(String key, String value) {
|
||||||
|
mNoteData.setCallData(key, value);
|
||||||
|
}//得到电话号码数据的ID
|
||||||
|
|
||||||
|
public boolean isLocalModified() {
|
||||||
|
return mNoteDiffValues.size() > 0 || mNoteData.isLocalModified();
|
||||||
|
}//判断是否是本地修改
|
||||||
|
|
||||||
|
public boolean syncNote(Context context, long noteId) {
|
||||||
|
if (noteId <= 0) {
|
||||||
|
throw new IllegalArgumentException("Wrong note id:" + noteId);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isLocalModified()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* In theory, once data changed, the note should be updated on {@link NoteColumns#LOCAL_MODIFIED} and
|
||||||
|
* {@link NoteColumns#MODIFIED_DATE}. For data safety, though update note fails, we also update the
|
||||||
|
* note data info
|
||||||
|
*/
|
||||||
|
if (context.getContentResolver().update(
|
||||||
|
ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, noteId), mNoteDiffValues, null,
|
||||||
|
null) == 0) {
|
||||||
|
Log.e(TAG, "Update note error, should not happen");
|
||||||
|
// Do not return, fall through
|
||||||
|
}
|
||||||
|
mNoteDiffValues.clear();
|
||||||
|
|
||||||
|
if (mNoteData.isLocalModified()
|
||||||
|
&& (mNoteData.pushIntoContentResolver(context, noteId) == null)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}//判断数据是否同步
|
||||||
|
|
||||||
|
private class NoteData {
|
||||||
|
private long mTextDataId;
|
||||||
|
|
||||||
|
private ContentValues mTextDataValues;
|
||||||
|
|
||||||
|
private long mCallDataId;
|
||||||
|
|
||||||
|
private ContentValues mCallDataValues;
|
||||||
|
|
||||||
|
private static final String TAG = "NoteData";
|
||||||
|
|
||||||
|
public NoteData() {
|
||||||
|
mTextDataValues = new ContentValues();
|
||||||
|
mCallDataValues = new ContentValues();
|
||||||
|
mTextDataId = 0;
|
||||||
|
mCallDataId = 0;
|
||||||
|
}
|
||||||
|
//下面是上述几个函数的具体实现
|
||||||
|
boolean isLocalModified() {
|
||||||
|
return mTextDataValues.size() > 0 || mCallDataValues.size() > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setTextDataId(long id) {
|
||||||
|
if(id <= 0) {
|
||||||
|
throw new IllegalArgumentException("Text data id should larger than 0");
|
||||||
|
}
|
||||||
|
mTextDataId = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setCallDataId(long id) {
|
||||||
|
if (id <= 0) {
|
||||||
|
throw new IllegalArgumentException("Call data id should larger than 0");
|
||||||
|
}
|
||||||
|
mCallDataId = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setCallData(String key, String value) {
|
||||||
|
mCallDataValues.put(key, value);
|
||||||
|
mNoteDiffValues.put(NoteColumns.LOCAL_MODIFIED, 1);
|
||||||
|
mNoteDiffValues.put(NoteColumns.MODIFIED_DATE, System.currentTimeMillis());
|
||||||
|
}
|
||||||
|
|
||||||
|
void setTextData(String key, String value) {
|
||||||
|
mTextDataValues.put(key, value);
|
||||||
|
mNoteDiffValues.put(NoteColumns.LOCAL_MODIFIED, 1);
|
||||||
|
mNoteDiffValues.put(NoteColumns.MODIFIED_DATE, System.currentTimeMillis());
|
||||||
|
}
|
||||||
|
//下面函数的作用是将新的数据通过Uri的操作存储到数据库
|
||||||
|
Uri pushIntoContentResolver(Context context, long noteId) {
|
||||||
|
/**
|
||||||
|
* Check for safety
|
||||||
|
*/
|
||||||
|
if (noteId <= 0) {
|
||||||
|
throw new IllegalArgumentException("Wrong note id:" + noteId);
|
||||||
|
}//判断数据是否合法
|
||||||
|
|
||||||
|
ArrayList<ContentProviderOperation> operationList = new ArrayList<ContentProviderOperation>();
|
||||||
|
ContentProviderOperation.Builder builder = null;//数据库的操作列表
|
||||||
|
|
||||||
|
if(mTextDataValues.size() > 0) {
|
||||||
|
mTextDataValues.put(DataColumns.NOTE_ID, noteId);
|
||||||
|
if (mTextDataId == 0) {
|
||||||
|
mTextDataValues.put(DataColumns.MIME_TYPE, TextNote.CONTENT_ITEM_TYPE);
|
||||||
|
Uri uri = context.getContentResolver().insert(Notes.CONTENT_DATA_URI,
|
||||||
|
mTextDataValues);
|
||||||
|
try {
|
||||||
|
setTextDataId(Long.valueOf(uri.getPathSegments().get(1)));
|
||||||
|
} catch (NumberFormatException e) {
|
||||||
|
Log.e(TAG, "Insert new text data fail with noteId" + noteId);
|
||||||
|
mTextDataValues.clear();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
builder = ContentProviderOperation.newUpdate(ContentUris.withAppendedId(
|
||||||
|
Notes.CONTENT_DATA_URI, mTextDataId));
|
||||||
|
builder.withValues(mTextDataValues);
|
||||||
|
operationList.add(builder.build());
|
||||||
|
}
|
||||||
|
mTextDataValues.clear();
|
||||||
|
}//把文本数据存入DataColumns
|
||||||
|
|
||||||
|
if(mCallDataValues.size() > 0) {
|
||||||
|
mCallDataValues.put(DataColumns.NOTE_ID, noteId);
|
||||||
|
if (mCallDataId == 0) {
|
||||||
|
mCallDataValues.put(DataColumns.MIME_TYPE, CallNote.CONTENT_ITEM_TYPE);
|
||||||
|
Uri uri = context.getContentResolver().insert(Notes.CONTENT_DATA_URI,
|
||||||
|
mCallDataValues);
|
||||||
|
try {
|
||||||
|
setCallDataId(Long.valueOf(uri.getPathSegments().get(1)));
|
||||||
|
} catch (NumberFormatException e) {
|
||||||
|
Log.e(TAG, "Insert new call data fail with noteId" + noteId);
|
||||||
|
mCallDataValues.clear();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
builder = ContentProviderOperation.newUpdate(ContentUris.withAppendedId(
|
||||||
|
Notes.CONTENT_DATA_URI, mCallDataId));
|
||||||
|
builder.withValues(mCallDataValues);
|
||||||
|
operationList.add(builder.build());
|
||||||
|
}
|
||||||
|
mCallDataValues.clear();
|
||||||
|
}//把电话号码数据存入DataColumns
|
||||||
|
|
||||||
|
if (operationList.size() > 0) {
|
||||||
|
try {
|
||||||
|
ContentProviderResult[] results = context.getContentResolver().applyBatch(
|
||||||
|
Notes.AUTHORITY, operationList);
|
||||||
|
return (results == null || results.length == 0 || results[0] == null) ? null
|
||||||
|
: ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, noteId);
|
||||||
|
} catch (RemoteException e) {
|
||||||
|
Log.e(TAG, String.format("%s: %s", e.toString(), e.getMessage()));
|
||||||
|
return null;
|
||||||
|
} catch (OperationApplicationException e) {
|
||||||
|
Log.e(TAG, String.format("%s: %s", e.toString(), e.getMessage()));
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}//存储过程中的异常处理
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,49 @@
|
|||||||
|
package net.micode.notes.ui;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
import android.view.Menu;
|
||||||
|
import android.view.MenuItem;
|
||||||
|
import android.view.View;
|
||||||
|
import android.view.View.OnClickListener;
|
||||||
|
import android.widget.Button;
|
||||||
|
import android.widget.PopupMenu;
|
||||||
|
import android.widget.PopupMenu.OnMenuItemClickListener;
|
||||||
|
|
||||||
|
import net.micode.notes.R;
|
||||||
|
|
||||||
|
public class DropdownMenu {
|
||||||
|
private Button mButton;
|
||||||
|
private PopupMenu mPopupMenu;
|
||||||
|
//声明一个下拉菜单
|
||||||
|
private Menu mMenu;
|
||||||
|
|
||||||
|
public DropdownMenu(Context context, Button button, int menuId) {
|
||||||
|
mButton = button;
|
||||||
|
mButton.setBackgroundResource(R.drawable.dropdown_icon);
|
||||||
|
//设置这个view的背景
|
||||||
|
mPopupMenu = new PopupMenu(context, mButton);
|
||||||
|
mMenu = mPopupMenu.getMenu();
|
||||||
|
mPopupMenu.getMenuInflater().inflate(menuId, mMenu);
|
||||||
|
//MenuInflater是用来实例化Menu目录下的Menu布局文件
|
||||||
|
//根据ID来确认menu的内容选项
|
||||||
|
mButton.setOnClickListener(new OnClickListener() {
|
||||||
|
public void onClick(View v) {
|
||||||
|
mPopupMenu.show();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOnDropdownMenuItemClickListener(OnMenuItemClickListener listener) {
|
||||||
|
if (mPopupMenu != null) {
|
||||||
|
mPopupMenu.setOnMenuItemClickListener(listener);
|
||||||
|
}//设置菜单的监听
|
||||||
|
}
|
||||||
|
|
||||||
|
public MenuItem findItem(int id) {
|
||||||
|
return mMenu.findItem(id);
|
||||||
|
}//对于菜单选项的初始化,根据索引搜索菜单需要的选项
|
||||||
|
|
||||||
|
public void setTitle(CharSequence title) {
|
||||||
|
mButton.setText(title);
|
||||||
|
}//布局文件,设置标题
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,34 @@
|
|||||||
|
NoteWidgetProvider_2x:
|
||||||
|
|
||||||
|
package net.micode.notes.widget;
|
||||||
|
|
||||||
|
import android.appwidget.AppWidgetManager;
|
||||||
|
import android.content.Context;
|
||||||
|
|
||||||
|
import net.micode.notes.R;
|
||||||
|
import net.micode.notes.data.Notes;
|
||||||
|
import net.micode.notes.tool.ResourceParser;
|
||||||
|
|
||||||
|
|
||||||
|
public class NoteWidgetProvider_2x extends NoteWidgetProvider {
|
||||||
|
//2倍大小的桌面挂件
|
||||||
|
@Override
|
||||||
|
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
|
||||||
|
super.update(context, appWidgetManager, appWidgetIds);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int getLayoutId() {
|
||||||
|
return R.layout.widget_2x;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int getBgResourceId(int bgId) {
|
||||||
|
return ResourceParser.WidgetBgResources.getWidget2xBgResource(bgId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int getWidgetType() {
|
||||||
|
return Notes.TYPE_WIDGET_2X;
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue