{"id":165,"date":"2017-01-29T21:52:27","date_gmt":"2017-01-29T18:22:27","guid":{"rendered":"http:\/\/bobardo.com\/blog\/?p=165"},"modified":"2017-06-25T21:15:39","modified_gmt":"2017-06-25T17:45:39","slug":"%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a7%d9%86%d8%af%d8%b1%d9%88%db%8c%d8%af-5","status":"publish","type":"post","link":"https:\/\/bobardo.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a7%d9%86%d8%af%d8%b1%d9%88%db%8c%d8%af-5\/","title":{"rendered":"\u0622\u0645\u0648\u0632\u0634 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u0627\u0632 \u0645\u0628\u062a\u062f\u06cc \u062a\u0627 \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u2013 \u0628\u062e\u0634 \u06f5"},"content":{"rendered":"<p>\u0628\u0639\u062f \u0627\u0632 \u0622\u0634\u0646\u0627 \u0634\u062f\u0646 \u0628\u0627 \u0645\u0642\u062f\u0645\u0627\u062a \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062f\u0631 \u0628\u062e\u0634\u200c\u0647\u0627\u06cc \u06cc\u06a9 \u062a\u0627 \u0633\u0647\u060c \u062a\u0648\u06cc \u0628\u062e\u0634 \u0642\u0628\u0644\u06cc \u0634\u0631\u0648\u0639 \u06a9\u0631\u062f\u06cc\u0645 \u0628\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0633\u0627\u062e\u062a\u0627\u0631 \u06cc\u0627\u0641\u062a\u0647 \u0648 \u062d\u0631\u0641\u0647\u200c\u0627\u06cc \u0627\u0632 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f.<\/p>\n<p>\u062a\u0648\u06cc \u0627\u06cc\u0646 \u0628\u062e\u0634 \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647 \u067e\u0631\u0648\u0698\u0647 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u062c\u0627\u0645\u0639 \u0648 \u06a9\u0627\u0645\u0644 \u0631\u0648 \u06af\u0627\u0645 \u0628\u0647 \u06af\u0627\u0645 \u062a\u0648\u0636\u06cc\u062d \u0645\u06cc\u062f\u06cc\u0645 \u062a\u0627 \u0628\u062a\u0648\u0646\u06cc\u062f \u0631\u0627\u062d\u062a \u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f \u0648 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0631\u0648 \u0628\u0647\u062a\u0631 \u06cc\u0627\u062f \u0628\u06af\u06cc\u0631\u06cc\u062f.<\/p>\n<p>\u062a\u0648\u06cc \u0627\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647 \u0646\u0645\u0627\u06cc\u0634 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062f\u0631 \u06cc\u06a9 \u0644\u06cc\u0633\u062a\u200c\u0648\u06cc\u0648 \u0648 \u0647\u0645\u06cc\u0646\u0637\u0648\u0631 \u0639\u0645\u0644\u06cc\u0627\u062a \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u0628\u0647 \u0644\u06cc\u0633\u062a\u060c \u062c\u0633\u062a\u062c\u0648\u060c \u062d\u0630\u0641 \u06a9\u0631\u062f\u0646 \u0648 \u0627\u062f\u06cc\u062a \u06a9\u0631\u062f\u0646 \u0631\u0648 \u06cc\u0627\u062f \u0645\u06cc\u06af\u06cc\u0631\u06cc\u062f.<\/p>\n<p><!--more--><\/p>\n<p>\u0627\u06af\u0631 \u0628\u0627 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0648 \u0645\u0628\u0627\u062d\u062b \u0627\u0648\u0644\u06cc\u0647 \u0622\u0634\u0646\u0627\u06cc\u06cc \u0646\u062f\u0627\u0631\u06cc\u062f \u0644\u0627\u0632\u0645\u0647 \u0627\u0628\u062a\u062f\u0627 \u0628\u062e\u0634 \u0627\u0648\u0644 \u0631\u0648 \u0627\u0632 <strong><a href=\"http:\/\/bobardo.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a7%d9%86%d8%af%d8%b1%d9%88%db%8c%d8%af-1\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u0627\u06cc\u0640\u0646\u0640\u0640\u062c\u0640\u0640\u0640\u0640\u0627<\/a><\/strong> \u0645\u0637\u0627\u0644\u0639\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0628\u0631\u0627\u06cc \u06a9\u0633\u0627\u0646\u06cc \u0645\u0646\u0627\u0633\u0628\u0647 \u06a9\u0647 \u0622\u0634\u0646\u0627\u06cc\u06cc \u062d\u062f\u0627\u0642\u0644\u06cc \u0628\u0627 \u06a9\u0627\u0633\u062a\u0648\u0645 \u06a9\u0631\u062f\u0646 \u0644\u06cc\u0633\u062a \u0648\u06cc\u0648 \u062f\u0627\u0631\u0646.<\/p>\n<h4>\u062e\u0644\u0627\u0635\u0647 \u067e\u0631\u0648\u0698\u0647<\/h4>\n<p>\u062a\u0648\u06cc \u0627\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647 \u0642\u0631\u0627\u0631\u0647 \u062a\u0645\u0627\u0645 \u0639\u0645\u0644\u06cc\u0627\u062a \u0645\u0645\u06a9\u0646 \u0631\u0648\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0631\u0648 \u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc \u06a9\u0646\u06cc\u0645. \u0645\u0627 \u0642\u0631\u0627\u0631\u0647 \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0627\u06cc \u0628\u0633\u0627\u0632\u06cc\u0645 \u06a9\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06a9\u0627\u0631\u0645\u0646\u062f\u0627\u0646 \u06cc\u06a9 \u0634\u0631\u06a9\u062a \u0631\u0648 \u0646\u0645\u0627\u06cc\u0634 \u0628\u062f\u06cc\u0645. \u0627\u06cc\u0646 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0634\u0627\u0645\u0644 \u0627\u0633\u0645\u060c \u062a\u0644\u0641\u0646 \u062a\u0645\u0627\u0633 \u0648 \u0622\u062f\u0631\u0633 \u0645\u06cc\u0634\u0647. \u0627\u0645\u06a9\u0627\u0646 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u06cc\u06a9 \u06a9\u0627\u0631\u0645\u0646\u062f \u062c\u062f\u06cc\u062f\u060c \u062d\u0630\u0641 \u06a9\u0627\u0631\u0645\u0646\u062f\u060c \u062a\u063a\u06cc\u06cc\u0631 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06cc\u06a9 \u06a9\u0627\u0631\u0645\u0646\u062f \u0648 \u062c\u0633\u062a\u062c\u0648 \u0631\u0648 \u062f\u0627\u0631\u06cc\u0645.<\/p>\n<p>\u0635\u0641\u062d\u0647 \u0627\u0635\u0644\u06cc \u0645\u0627 \u0634\u0627\u0645\u0644 \u062f\u0648 \u062a\u0627 \u062f\u06a9\u0645\u0647 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u0648 \u062c\u0633\u062a\u062c\u0648 \u0647\u0633\u062a \u06a9\u0647 \u0628\u0627 \u0632\u062f\u0646 \u0627\u0648\u0646\u0647\u0627 \u0642\u0633\u0645\u062a\u200c\u0647\u0627\u06cc \u0645\u062e\u0635\u0648\u0635 \u0628\u0647 \u062e\u0648\u062f\u0634\u0648\u0646 \u0638\u0627\u0647\u0631 \u0645\u06cc\u0634\u0646 \u0648 \u062f\u0631 \u0632\u06cc\u0631 \u0627\u0648\u0646\u0647\u0627 \u06cc\u06a9 ListView \u0642\u0631\u0627\u0631 \u062f\u0627\u0631\u0647. \u062a\u0648\u06cc \u0644\u06cc\u0633\u062a \u062f\u0631 \u06a9\u0646\u0627\u0631 \u0646\u0645\u0627\u06cc\u0634 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u060c \u0628\u0631\u0627\u06cc \u0647\u0631 \u0622\u06cc\u062a\u0645 \u0627\u0645\u06a9\u0627\u0646 \u067e\u0627\u06a9 \u06a9\u0631\u062f\u0646 \u06cc\u0627 \u062d\u0630\u0641 \u06a9\u0631\u062f\u0646 \u0627\u0648\u0646 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u0647.<\/p>\n<p>\u0645\u06cc\u062a\u0648\u0646\u06cc\u062f \u0627\u0632 \u0627\u0646\u062a\u0647\u0627\u06cc \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628\u060c \u0646\u0645\u0648\u0646\u0647 \u067e\u0631\u0648\u0698\u0647 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u0631\u0648 \u0628\u0647 \u0635\u0648\u0631\u062a \u06a9\u0627\u0645\u0644 \u062f\u0627\u0646\u0644\u0648\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u067e\u0631\u0648\u0698\u0647 \u0646\u0647\u0627\u06cc\u06cc \u0628\u0647 \u0634\u06a9\u0644 \u0632\u06cc\u0631 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f.<\/p>\n<p><img loading=\"lazy\" class=\"transparent aligncenter\" src=\"http:\/\/s5.picofile.com\/file\/8284293026\/database_05_demo.gif\" alt=\"http:\/\/s5.picofile.com\/file\/8284293026\/database_05_demo.gif\" width=\"280\" height=\"414\" \/><\/p>\n<p>&nbsp;<\/p>\n<h4>\u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc<\/h4>\n<p>\u06cc\u06a9 \u067e\u0631\u0648\u0698\u0647 \u062c\u062f\u06cc\u062f \u0628\u0633\u0627\u0632\u06cc\u062f \u06a9\u0647 \u0635\u0648\u0631\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 \u06cc\u06a9 \u0627\u06a9\u062a\u06cc\u0648\u06cc\u062a\u06cc \u0628\u0647 \u0627\u0633\u0645 MainActivity \u0648 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u0638\u0627\u0647\u0631 \u0628\u0647 \u0627\u0633\u0645 activity_main \u062e\u0648\u0627\u0647\u062f \u062f\u0627\u0634\u062a.<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0645\u0631\u062d\u0644\u0647 \u0628\u0647 \u0645\u0631\u062d\u0644\u0647 \u062c\u0644\u0648 \u0645\u06cc\u0631\u06cc\u0645. \u0627\u0628\u062a\u062f\u0627 \u0628\u0627 \u0637\u0631\u0627\u062d\u06cc \u0638\u0627\u0647\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0634\u0631\u0648\u0639 \u0645\u06cc\u06a9\u0646\u06cc\u0645.<\/p>\n<p>\u062a\u0648\u06cc \u067e\u0648\u0634\u0647 layout \u06cc\u06a9 \u0641\u0627\u06cc\u0644 xml \u062c\u062f\u06cc\u062f \u0628\u0647 \u0627\u0633\u0645 search_bar \u0628\u0633\u0627\u0632\u06cc\u062f \u0648 \u06a9\u062f\u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0648 \u062f\u0627\u062e\u0644\u0634 \u06a9\u067e\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<h4 dir=\"ltr\">search_bar.xml<\/h4>\n<pre dir=\"ltr\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;LinearLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"wrap_content\"\r\n    android:gravity=\"center_vertical\"\r\n    android:orientation=\"horizontal\"&gt;\r\n\r\n    &lt;Button\r\n        android:id=\"@+id\/btn_do_search\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:text=\"\u062c\u0633\u062a\u062c\u0648\"\r\n        android:textSize=\"18dp\" \/&gt;\r\n\r\n    &lt;EditText\r\n        android:id=\"@+id\/edt_search\"\r\n        android:layout_width=\"0dp\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:layout_weight=\"1\"\r\n        android:gravity=\"right\"\r\n        android:imeOptions=\"actionSearch\"\r\n        android:hint=\"\u0646\u0627\u0645 \u06a9\u0627\u0631\u0645\u0646\u062f\"\r\n        android:textSize=\"18dp\" \/&gt;\r\n\r\n    &lt;Button\r\n        android:id=\"@+id\/btn_close_search\"\r\n        android:layout_width=\"42dp\"\r\n        android:layout_height=\"48dp\"\r\n        android:text=\"\u00d7\"\r\n        android:textSize=\"24dp\" \/&gt;\r\n\r\n&lt;\/LinearLayout&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>\u06cc\u06a9 \u0641\u0627\u06cc\u0644 xml \u062c\u062f\u06cc\u062f \u062f\u0631 \u067e\u0648\u0634\u0647 layout \u0628\u0647 \u0627\u0633\u0645 add_edit_employee \u0628\u0633\u0627\u0632\u06cc\u062f \u0648 \u06a9\u062f\u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0648 \u062f\u0627\u062e\u0644 \u0642\u0631\u0627\u0631 \u0628\u062f\u06cc\u062f.<\/p>\n<h4 dir=\"ltr\">add_edit_employee.xml<\/h4>\n<pre dir=\"ltr\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;LinearLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"wrap_content\"\r\n    android:orientation=\"vertical\"&gt;\r\n\r\n    &lt;LinearLayout\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:orientation=\"horizontal\"&gt;\r\n\r\n        &lt;EditText\r\n            android:id=\"@+id\/edt_employee_name\"\r\n            android:layout_width=\"0dp\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_weight=\"1\"\r\n            android:imeOptions=\"actionNext\" \/&gt;\r\n\r\n        &lt;TextView\r\n            android:layout_width=\"90dp\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:text=\"\u0646\u0627\u0645 \u06a9\u0627\u0631\u0645\u0646\u062f:\"\r\n            android:textSize=\"18dp\" \/&gt;\r\n\r\n    &lt;\/LinearLayout&gt;\r\n    &lt;LinearLayout\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:orientation=\"horizontal\"&gt;\r\n\r\n        &lt;EditText\r\n            android:id=\"@+id\/edt_employee_phone\"\r\n            android:layout_width=\"0dp\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_weight=\"1\"\r\n            android:imeOptions=\"actionNext\" \/&gt;\r\n\r\n        &lt;TextView\r\n            android:layout_width=\"90dp\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:text=\"\u0634\u0645\u0627\u0631\u0647 \u062a\u0645\u0627\u0633:\"\r\n            android:textSize=\"18dp\" \/&gt;\r\n\r\n    &lt;\/LinearLayout&gt;\r\n    &lt;LinearLayout\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:orientation=\"horizontal\"&gt;\r\n\r\n        &lt;EditText\r\n            android:id=\"@+id\/edt_employee_address\"\r\n            android:layout_width=\"0dp\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_weight=\"1\"\r\n            android:imeOptions=\"actionNext\" \/&gt;\r\n\r\n        &lt;TextView\r\n            android:layout_width=\"90dp\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:text=\"\u0622\u062f\u0631\u0633:\"\r\n            android:textSize=\"18dp\" \/&gt;\r\n\r\n    &lt;\/LinearLayout&gt;\r\n\r\n    &lt;LinearLayout\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:orientation=\"horizontal\"&gt;\r\n\r\n        &lt;Button\r\n            android:id=\"@+id\/btn_cancel\"\r\n            android:layout_width=\"0dp\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_weight=\"1\"\r\n            android:text=\"\u0627\u0646\u0635\u0631\u0627\u0641\"\r\n            android:textColor=\"#333333\"\r\n            android:textSize=\"18dp\" \/&gt;\r\n\r\n        &lt;Button\r\n            android:id=\"@+id\/btn_submit\"\r\n            android:layout_width=\"0dp\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_weight=\"1\"\r\n            android:text=\"\u062a\u0627\u06cc\u06cc\u062f\"\r\n            android:textColor=\"#333333\"\r\n            android:textSize=\"18dp\" \/&gt;\r\n\r\n    &lt;\/LinearLayout&gt;\r\n\r\n&lt;\/LinearLayout&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0645\u06cc\u0631\u06cc\u0645 \u0633\u0631\u0627\u063a \u0641\u0627\u06cc\u0644 \u0638\u0627\u0647\u0631 \u0635\u0641\u062d\u0647 \u0627\u0635\u0644\u06cc\u200c\u0645\u0648\u0646 \u06cc\u0639\u0646\u06cc main_activity.xml<\/p>\n<p>\u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0631\u0648 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f \u0648 \u06a9\u062f\u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0648 \u062f\u0627\u062e\u0644 \u0642\u0631\u0627\u0631 \u0628\u062f\u06cc\u062f. \u062a\u0648\u06cc \u0627\u06cc\u0646 \u0635\u0641\u062d\u0647 \u0627\u0632 \u062f\u0648 \u062a\u0627 \u0641\u0627\u06cc\u0644 \u0642\u0628\u0644\u06cc \u0628\u0647 \u0635\u0648\u0631\u062a include \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u062f\u0647 \u06a9\u0647 \u0628\u0647 \u0635\u0648\u0631\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 \u062f\u06cc\u062f\u0647 \u0646\u0645\u06cc\u0634\u0646 \u0648 \u062e\u0635\u0648\u0635\u06cc\u062a visibility \u0627\u0648\u0646\u0647\u0627 \u0628\u0631\u0627\u0628\u0631 Gone \u0647\u0633\u062a.<\/p>\n<h4 dir=\"ltr\">main_activity.xml<\/h4>\n<pre dir=\"ltr\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;LinearLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\r\n    android:id=\"@+id\/activity_main\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    android:orientation=\"vertical\"&gt;\r\n\r\n    &lt;LinearLayout\r\n        android:id=\"@+id\/lin_add_search\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:visibility=\"visible\"\r\n        android:orientation=\"horizontal\"&gt;\r\n\r\n        &lt;Button\r\n            android:id=\"@+id\/btn_add\"\r\n            android:layout_width=\"0dp\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_weight=\"1\"\r\n            android:text=\"\u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646\"\r\n            android:textColor=\"#333333\"\r\n            android:textSize=\"18dp\" \/&gt;\r\n\r\n        &lt;Button\r\n            android:id=\"@+id\/btn_search\"\r\n            android:layout_width=\"0dp\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_weight=\"1\"\r\n            android:text=\"\u062c\u0633\u062a\u062c\u0648\"\r\n            android:textColor=\"#333333\"\r\n            android:textSize=\"18dp\" \/&gt;\r\n\r\n    &lt;\/LinearLayout&gt;\r\n\r\n    &lt;include\r\n        android:id=\"@+id\/search_bar\"\r\n        android:visibility=\"gone\"\r\n        layout=\"@layout\/search_bar\"\/&gt;\r\n\r\n    &lt;include\r\n        android:id=\"@+id\/add_edit_employee\"\r\n        android:visibility=\"gone\"\r\n        layout=\"@layout\/add_edit_employee\"\/&gt;\r\n\r\n    &lt;ListView\r\n        android:id=\"@+id\/listView\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"match_parent\"\/&gt;\r\n\r\n&lt;\/LinearLayout&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0622\u06cc\u062a\u0645\u200c\u0647\u0627\u06cc \u0644\u06cc\u0633\u062a\u0645\u0648\u0646 \u0631\u0648 \u0637\u0631\u0627\u062d\u06cc \u0645\u06cc\u06a9\u0646\u06cc\u0645. \u06cc\u06a9 \u0641\u0627\u06cc\u0644 xml \u062c\u062f\u06cc\u062f \u062a\u0648\u06cc \u067e\u0648\u0634\u0647 layout \u0628\u0647 \u0627\u0633\u0645 list_item \u0628\u0633\u0627\u0632\u06cc\u062f \u0648 \u06a9\u062f\u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0648 \u062f\u0627\u062e\u0644\u0634 \u0642\u0631\u0627\u0631 \u0628\u062f\u06cc\u062f.<\/p>\n<h4 dir=\"ltr\">list_item.xml<\/h4>\n<pre dir=\"ltr\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;LinearLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"wrap_content\"\r\n    android:orientation=\"horizontal\"\r\n    android:paddingBottom=\"5dp\"\r\n    android:paddingRight=\"8dp\"\r\n    android:paddingTop=\"5dp\"&gt;\r\n\r\n    &lt;LinearLayout\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:orientation=\"vertical\"&gt;\r\n\r\n        &lt;Button\r\n            android:id=\"@+id\/btn_edit\"\r\n            android:layout_width=\"90dp\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:text=\"\u0648\u06cc\u0631\u0627\u06cc\u0634\"\r\n            android:textSize=\"16dp\" \/&gt;\r\n\r\n        &lt;Button\r\n            android:id=\"@+id\/btn_delete\"\r\n            android:layout_width=\"90dp\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:text=\"\u062d\u0630\u0641\"\r\n            android:textSize=\"16dp\" \/&gt;\r\n\r\n    &lt;\/LinearLayout&gt;\r\n\r\n    &lt;LinearLayout\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:orientation=\"vertical\"&gt;\r\n\r\n        &lt;TextView\r\n            android:id=\"@+id\/txt_employee_name\"\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_marginBottom=\"8dp\"\r\n            android:gravity=\"right\"\r\n            android:text=\"\u0646\u0627\u0645 \u06a9\u0627\u0631\u0645\u0646\u062f\"\r\n            android:textColor=\"#333333\"\r\n            android:textSize=\"18dp\" \/&gt;\r\n\r\n        &lt;TextView\r\n            android:id=\"@+id\/txt_employee_phone\"\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_marginBottom=\"8dp\"\r\n            android:gravity=\"right\"\r\n            android:text=\"\u0634\u0645\u0627\u0631\u0647 \u062a\u0645\u0627\u0633\"\r\n            android:textColor=\"#333333\"\r\n            android:textSize=\"18dp\" \/&gt;\r\n\r\n        &lt;TextView\r\n            android:id=\"@+id\/txt_employee_address\"\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:gravity=\"right\"\r\n            android:text=\"\u0622\u062f\u0631\u0633\"\r\n            android:textColor=\"#333333\"\r\n            android:textSize=\"18dp\" \/&gt;\r\n\r\n    &lt;\/LinearLayout&gt;\r\n\r\n&lt;\/LinearLayout&gt;<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u06a9\u062f\u0647\u0627\u06cc \u062c\u0627\u0648\u0627<\/h3>\n<p>\u0627\u0628\u062a\u062f\u0627 \u06a9\u062f\u0647\u0627\u06cc \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0631\u0648 \u0645\u06cc\u0646\u0648\u06cc\u0633\u06cc\u0645 \u0648 \u0628\u0639\u062f \u0633\u0631\u0627\u063a \u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc \u0622\u062f\u0627\u067e\u062a\u0631 \u0644\u06cc\u0633\u062a \u0648\u06cc\u0648 \u0648 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u062f\u0647\u0627\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0645\u06cc\u0631\u06cc\u0645.<\/p>\n<p>\u06cc\u06a9 \u06a9\u0644\u0627\u0633 \u062c\u0627\u0648\u0627 \u062c\u062f\u06cc\u062f \u0628\u0633\u0627\u0632\u06cc\u062f \u0648 \u0627\u0633\u0645 \u0627\u0648\u0646 \u0631\u0648 MyDatabase \u0628\u0630\u0627\u0631\u06cc\u062f. \u062a\u0648\u06cc \u0627\u06cc\u0646 \u06a9\u0644\u0627\u0633 \u0639\u0645\u0644\u06cc\u0627\u062a \u0633\u0627\u062e\u062a \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0648 \u062c\u062f\u0648\u0644 \u0631\u0648 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u062f\u06cc\u0645. \u06a9\u062f\u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0648 \u062f\u0627\u062e\u0644 \u06a9\u0644\u0627\u0633 \u06a9\u067e\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<h4 dir=\"ltr\">MyDatabase.java<\/h4>\n<pre dir=\"ltr\">package your.package.name;\r\n\r\nimport android.content.Context;\r\nimport android.database.sqlite.SQLiteDatabase;\r\nimport android.database.sqlite.SQLiteOpenHelper;\r\n\r\npublic class MyDatabase extends SQLiteOpenHelper {\r\n\r\n    private final static String DB_NAME = \"database\";\r\n    private final static int DB_VERSION = 1;\r\n\r\n    public static final String tableEmployees = \"employees\";\r\n    public static final String ID = \"id\";\r\n    public static final String NAME = \"name\";\r\n    public static final String PHONE = \"phone\";\r\n    public static final String ADDRESS = \"address\";\r\n\r\n    public MyDatabase(Context context) {\r\n        super(context, DB_NAME, null, DB_VERSION);\r\n    }\r\n\r\n    @Override\r\n    public void onCreate(SQLiteDatabase mydb) {\r\n\r\n        mydb.execSQL(\"CREATE TABLE IF NOT EXISTS \"+ tableEmployees + \" (\" +\r\n                ID + \" INTEGER PRIMARY KEY, \" +\r\n                NAME + \" TEXT, \" +\r\n                PHONE + \" TEXT, \" +\r\n                ADDRESS + \" TEXT);\");\r\n    }\r\n\r\n    @Override\r\n    public void onUpgrade(SQLiteDatabase mydb,\r\n                          int oldVersion, int newVersion) {\r\n\r\n    }\r\n}<\/pre>\n<p>\u0627\u0633\u0645 \u067e\u06a9\u06cc\u062c \u062e\u0648\u062f\u062a\u0648\u0646 \u0631\u0648 \u0627\u0628\u062a\u062f\u0627\u06cc \u06a9\u0644\u0627\u0633 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u0627\u0646\u062a\u0642\u0627\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0627\u0632 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0628\u0647 \u0633\u0627\u06cc\u0631 \u06a9\u0644\u0627\u0633\u200c\u0647\u0627 \u0631\u0627\u062d\u062a \u062a\u0631 \u0627\u0646\u062c\u0627\u0645 \u0628\u0634\u0647 \u0648 \u0628\u062a\u0648\u0646\u06cc\u0645 \u0627\u0632\u0634\u0648\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u0645\u060c \u06cc\u06a9 \u06a9\u0644\u0627\u0633 \u0628\u0631\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06a9\u0627\u0631\u0645\u0646\u062f\u0627\u0646 \u0628\u0647 \u0627\u0633\u0645 Employee \u0628\u0633\u0627\u0632\u06cc\u062f \u0648 \u06a9\u062f\u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0648 \u062f\u0627\u062e\u0644\u0634 \u0642\u0631\u0627\u0631 \u0628\u062f\u06cc\u062f.<\/p>\n<h4 dir=\"ltr\">Employee.java<\/h4>\n<pre dir=\"ltr\">package your.package.name;\r\n\r\npublic class Employee {\r\n \r\n private int id;\r\n private String name;\r\n private String phone;\r\n private String address;\r\n\r\n public String getPhone() {\r\n return phone;\r\n }\r\n\r\n public void setPhone(String phone) {\r\n this.phone = phone;\r\n }\r\n\r\n public int getId() {\r\n return id;\r\n }\r\n\r\n public void setId(int id) {\r\n this.id = id;\r\n }\r\n\r\n public String getName() {\r\n return name;\r\n }\r\n\r\n public void setName(String name) {\r\n this.name = name;\r\n }\r\n\r\n public String getAddress() {\r\n return address;\r\n }\r\n\r\n public void setAddress(String address) {\r\n this.address = address;\r\n }\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0646\u0648\u0628\u062a \u0645\u06cc\u0631\u0633\u0647 \u0628\u0647 \u06a9\u0644\u0627\u0633\u06cc \u06a9\u0647 \u0642\u0631\u0627\u0631\u0647 \u0639\u0645\u0644\u06cc\u0627\u062a \u0645\u062e\u062a\u0644\u0641 \u0631\u0648 \u0631\u0648\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0627\u0646\u062c\u0627\u0645 \u0628\u062f\u0647. \u06cc\u06a9 \u06a9\u0644\u0627\u0633 \u062c\u062f\u06cc\u062f \u0628\u0647 \u0627\u0633\u0645 DatabaseHelper \u0628\u0633\u0627\u0632\u06cc\u062f \u0648 \u06a9\u062f\u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0648 \u062f\u0627\u062e\u0644\u0634 \u0642\u0631\u0627\u0631 \u0628\u062f\u06cc\u062f.<\/p>\n<p>\u0627\u06cc\u0646 \u06a9\u0644\u0627\u0633 \u062f\u0627\u0631\u0627\u06cc \u06f5 \u062a\u0627\u0628\u0639 \u0628\u0647 \u062a\u0631\u062a\u06cc\u0628 \u0628\u0631\u0627\u06cc \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u06a9\u0627\u0631\u0645\u0646\u062f \u062c\u062f\u06cc\u062f\u060c \u06af\u0631\u0641\u062a\u0646 \u0644\u06cc\u0633\u062a \u06a9\u0627\u0631\u0645\u0646\u062f\u0627\u0646\u060c \u062a\u063a\u06cc\u06cc\u0631 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06cc\u06a9 \u06a9\u0627\u0631\u0645\u0646\u062f\u060c \u062d\u0630\u0641 \u06cc\u06a9 \u06a9\u0627\u0631\u0645\u0646\u062f \u0648 \u062c\u0633\u062a\u062c\u0648 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0646\u0627\u0645 \u0647\u0633\u062a.<\/p>\n<h4 dir=\"ltr\">DatabaseHelpe.java<\/h4>\n<pre dir=\"ltr\">package your.package.name;\r\n\r\nimport android.content.ContentValues;\r\nimport android.content.Context;\r\nimport android.database.Cursor;\r\nimport android.database.sqlite.SQLiteDatabase;\r\nimport java.util.ArrayList;\r\nimport java.util.List;\r\n\r\npublic class DatabaseHelper {\r\n    \r\n    private SQLiteDatabase mydb;\r\n    \r\n    public DatabaseHelper(Context context){\r\n        mydb = new MyDatabase(context).getWritableDatabase();\r\n    }\r\n    \r\n    public void addNewEmployee(Employee employee){\r\n        ContentValues values = new ContentValues();\r\n        values.put(\"name\", employee.getName());\r\n        values.put(\"phone\", employee.getPhone());\r\n        values.put(\"address\", employee.getAddress());\r\n        \r\n        mydb.insert(MyDatabase.tableEmployees, null, values);\r\n        mydb.close();\r\n    }\r\n    \r\n    public List&lt;Employee&gt; getListOfEmployees(){\r\n        \r\n        Cursor c = mydb.rawQuery(\"select * from \" + MyDatabase.tableEmployees, null);\r\n        List&lt;Employee&gt; employees = new ArrayList&lt;&gt;();\r\n        \r\n        while (c.moveToNext()){\r\n            \r\n            Employee em = new Employee();\r\n            em.setId(c.getInt(c.getColumnIndex(MyDatabase.ID)));\r\n            em.setName(c.getString(c.getColumnIndex(MyDatabase.NAME)));\r\n            em.setPhone(c.getString(c.getColumnIndex(MyDatabase.PHONE)));\r\n            em.setAddress(c.getString(c.getColumnIndex(MyDatabase.ADDRESS)));\r\n            \r\n            employees.add(em);\r\n        }\r\n        \r\n        c.close();\r\n        mydb.close();\r\n        return employees;\r\n    }\r\n    \r\n    public void editEmployee(Employee employee){\r\n        ContentValues values = new ContentValues();\r\n        values.put(\"name\", employee.getName());\r\n        values.put(\"phone\", employee.getPhone());\r\n        values.put(\"address\", employee.getAddress());\r\n        \r\n        mydb.update(MyDatabase.tableEmployees, values, \"id = \" + employee.getId(), null);\r\n        mydb.close();\r\n    }\r\n    \r\n    public void deleteEmployee(Employee employee){\r\n        mydb.delete(MyDatabase.tableEmployees, \"id = \" + employee.getId(), null);\r\n        mydb.close();\r\n    }\r\n\r\n    public List&lt;Employee&gt; searchByName(String name){\r\n\r\n        Cursor c = mydb.rawQuery(\"select * from \" + MyDatabase.tableEmployees + \" where name like '%\" + name + \"%'\", null);\r\n        List&lt;Employee&gt; employees = new ArrayList&lt;&gt;();\r\n\r\n        while (c.moveToNext()){\r\n\r\n            Employee em = new Employee();\r\n            em.setId(c.getInt(c.getColumnIndex(MyDatabase.ID)));\r\n            em.setName(c.getString(c.getColumnIndex(MyDatabase.NAME)));\r\n            em.setPhone(c.getString(c.getColumnIndex(MyDatabase.PHONE)));\r\n            em.setAddress(c.getString(c.getColumnIndex(MyDatabase.ADDRESS)));\r\n\r\n            employees.add(em);\r\n        }\r\n\r\n        c.close();\r\n        mydb.close();\r\n        return employees;\r\n    }\r\n    \r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0646\u0648\u0628\u062a \u0645\u06cc\u0631\u0633\u0647 \u0628\u0647 \u06a9\u0644\u0627\u0633 \u0622\u062f\u0627\u067e\u062a\u0631 \u0644\u06cc\u0633\u062a\u200c\u0648\u06cc\u0648. \u0627\u06cc\u0646 \u06a9\u0644\u0627\u0633 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0631\u0648 \u0628\u0647 \u0635\u0648\u0631\u062a\u06cc \u0644\u06cc\u0633\u062a\u06cc \u0627\u0632 Employee \u0645\u06cc\u06af\u06cc\u0631\u0647 \u0648 \u0627\u0648\u0646\u0647\u0627 \u0631\u0648 \u062a\u0648\u06cc \u0644\u06cc\u0633\u062a \u0648\u06cc\u0648 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc\u062f\u0647. \u062a\u0648\u06cc \u062a\u0627\u0628\u0639 getView \u0645\u0627 \u0639\u0645\u0644\u06cc\u0627\u062a \u0645\u0642\u062f\u0627\u0631\u062f\u0647\u06cc \u0647\u0631 \u0622\u06cc\u062a\u0645 \u0644\u06cc\u0633\u062a\u200c\u0648\u06cc\u0648 \u0631\u0648 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 position \u0627\u0648\u0646 \u0622\u06cc\u062a\u0645 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u062f\u06cc\u0645. \u0647\u0645\u06cc\u0646\u0637\u0648\u0631 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc\u06a9\u0646\u06cc\u0645 \u062f\u0631 \u0635\u0648\u0631\u062a \u06a9\u0644\u06cc\u06a9 \u0634\u062f\u0646 \u062f\u06a9\u0645\u0647 \u062d\u0630\u0641 \u0648 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0686\u0647 \u0627\u062a\u0641\u0627\u0642\u06cc \u0628\u06cc\u0641\u062a\u0647.<\/p>\n<p>\u06cc\u06a9 \u06a9\u0644\u0627\u0633 \u0628\u0647 \u0627\u0633\u0645 MyListAdapter \u0628\u0633\u0627\u0632\u06cc\u062f \u0648 \u06a9\u062f\u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0648 \u062f\u0627\u062e\u0644\u0634 \u06a9\u067e\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<h4 dir=\"ltr\">MyListAdapter.java<\/h4>\n<pre dir=\"ltr\">package your.package.name;\r\n\r\nimport android.content.Context;\r\nimport android.view.LayoutInflater;\r\nimport android.view.View;\r\nimport android.view.ViewGroup;\r\nimport android.widget.BaseAdapter;\r\nimport android.widget.Button;\r\nimport android.widget.TextView;\r\nimport java.util.List;\r\n\r\nclass MyListAdapter extends BaseAdapter {\r\n\r\n    private Context context;\r\n    private List&lt;Employee&gt; employees;\r\n\r\n    MyListAdapter(Context context, List&lt;Employee&gt; employees){\r\n        this.context = context;\r\n        this.employees = employees;\r\n    }\r\n\r\n    @Override\r\n    public int getCount() {\r\n        return employees.size();\r\n    }\r\n\r\n    @Override\r\n    public Object getItem(int i) {\r\n        return employees.get(i);\r\n    }\r\n\r\n    @Override\r\n    public long getItemId(int i) {\r\n        return employees.get(i).getId();\r\n    }\r\n\r\n    @Override\r\n    public View getView(final int position, View view, ViewGroup viewGroup) {\r\n\r\n        View rowView = LayoutInflater.from(context).inflate(R.layout.list_item, viewGroup, false);\r\n        TextView txtName = (TextView) rowView.findViewById(R.id.txt_employee_name);\r\n        TextView txtPhone = (TextView) rowView.findViewById(R.id.txt_employee_phone);\r\n        TextView txtAddress = (TextView) rowView.findViewById(R.id.txt_employee_address);\r\n        Button btnEdit = (Button) rowView.findViewById(R.id.btn_edit);\r\n        Button btnDelete = (Button) rowView.findViewById(R.id.btn_delete);\r\n\r\n        txtName.setText(employees.get(position).getName());\r\n        txtPhone.setText(employees.get(position).getPhone());\r\n        txtAddress.setText(employees.get(position).getAddress());\r\n\r\n        btnEdit.setOnClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View view) {\r\n                ((MainActivity) context).editEmployee(employees.get(position));\r\n            }\r\n        });\r\n\r\n        btnDelete.setOnClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View view) {\r\n                new DatabaseHelper(context).deleteEmployee(employees.get(position));\r\n                employees.remove(position);\r\n                notifyDataSetChanged();\r\n            }\r\n        });\r\n\r\n        return rowView;\r\n    }\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0648 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0627\u06cc\u0646 \u06a9\u062f\u0647\u0627 \u0631\u0648 \u062a\u0648\u06cc \u06a9\u0644\u0627\u0633 MainActivity \u0642\u0631\u0627\u0631 \u0628\u062f\u06cc\u062f.<\/p>\n<h4 dir=\"ltr\">MainActivity.java<\/h4>\n<pre dir=\"ltr\">package your.package.name;\r\n\r\nimport android.os.Bundle;\r\nimport android.support.v7.app.AppCompatActivity;\r\nimport android.view.View;\r\nimport android.widget.Button;\r\nimport android.widget.EditText;\r\nimport android.widget.ListView;\r\nimport android.widget.Toast;\r\nimport java.util.List;\r\n\r\npublic class MainActivity extends AppCompatActivity {\r\n\r\n    private Button btnSubmit;\r\n    private Button btnCancel;\r\n    private ListView listView;\r\n    private MyListAdapter adapter;\r\n    private EditText edtSearch, edtName, edtPhone, edtAddress;\r\n    private int seletcedEmployeeId;\r\n\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.activity_main);\r\n\r\n        Button btnAdd = (Button) findViewById(R.id.btn_add);\r\n        Button btnShowSearch = (Button) findViewById(R.id.btn_search);\r\n        Button btnCloseSearch = (Button) findViewById(R.id.btn_close_search);\r\n        Button btnDoSearch = (Button) findViewById(R.id.btn_do_search);\r\n        btnCancel = (Button) findViewById(R.id.btn_cancel);\r\n        btnSubmit = (Button) findViewById(R.id.btn_submit);\r\n\r\n        edtSearch = (EditText) findViewById(R.id.edt_search);\r\n        edtName = (EditText) findViewById(R.id.edt_employee_name);\r\n        edtPhone = (EditText) findViewById(R.id.edt_employee_phone);\r\n        edtAddress = (EditText) findViewById(R.id.edt_employee_address);\r\n\r\n        btnAdd.setOnClickListener(onAddClicked);\r\n        btnShowSearch.setOnClickListener(onShowSearchClicked);\r\n        btnCloseSearch.setOnClickListener(onCloseSearchClicked);\r\n        btnDoSearch.setOnClickListener(onDoSearchClicked);\r\n        btnCancel.setOnClickListener(onCancelbuttonClicked);\r\n\r\n        listView = (ListView) findViewById(R.id.listView);\r\n        refreshList();\r\n    }\r\n\r\n    private void refreshList() {\r\n        List&lt;Employee&gt; employees = new DatabaseHelper(this).getListOfEmployees();\r\n        adapter = new MyListAdapter(this, employees);\r\n        listView.setAdapter(adapter);\r\n    }\r\n\r\n    public void editEmployee(Employee employee) {\r\n        findViewById(R.id.lin_add_search).setVisibility(View.GONE);\r\n        findViewById(R.id.add_edit_employee).setVisibility(View.VISIBLE);\r\n        btnSubmit.setOnClickListener(onEditEmployeeSubmit);\r\n        edtName.setText(employee.getName());\r\n        edtPhone.setText(employee.getPhone());\r\n        edtAddress.setText(employee.getAddress());\r\n        seletcedEmployeeId = employee.getId();\r\n    }\r\n\r\n    private View.OnClickListener onAddClicked = new View.OnClickListener() {\r\n        @Override\r\n        public void onClick(View view) {\r\n            findViewById(R.id.lin_add_search).setVisibility(View.GONE);\r\n            findViewById(R.id.add_edit_employee).setVisibility(View.VISIBLE);\r\n            btnSubmit.setOnClickListener(onNewEmployeeSubmit);\r\n        }\r\n    };\r\n\r\n    private View.OnClickListener onShowSearchClicked = new View.OnClickListener() {\r\n        @Override\r\n        public void onClick(View view) {\r\n            findViewById(R.id.lin_add_search).setVisibility(View.GONE);\r\n            findViewById(R.id.search_bar).setVisibility(View.VISIBLE);\r\n        }\r\n    };\r\n\r\n    private View.OnClickListener onCloseSearchClicked = new View.OnClickListener() {\r\n        @Override\r\n        public void onClick(View view) {\r\n            findViewById(R.id.lin_add_search).setVisibility(View.VISIBLE);\r\n            findViewById(R.id.search_bar).setVisibility(View.GONE);\r\n            edtSearch.setText(\"\");\r\n            refreshList();\r\n        }\r\n    };\r\n\r\n    private View.OnClickListener onDoSearchClicked = new View.OnClickListener() {\r\n        @Override\r\n        public void onClick(View view) {\r\n\r\n            String input = edtSearch.getText().toString();\r\n            if (input.length() == 0) {\r\n                Toast.makeText(MainActivity.this, \"\u0644\u0637\u0641\u0627 \u0642\u0633\u0645\u062a\u06cc \u0627\u0632 \u0646\u0627\u0645 \u06a9\u0627\u0631\u0645\u0646\u062f \u0631\u0627 \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f\", Toast.LENGTH_SHORT).show();\r\n                return;\r\n            }\r\n\r\n            List&lt;Employee&gt; employees = new DatabaseHelper(MainActivity.this).searchByName(input);\r\n            adapter = new MyListAdapter(MainActivity.this, employees);\r\n            listView.setAdapter(adapter);\r\n            Toast.makeText(MainActivity.this, employees.size() + \" \u06a9\u0627\u0631\u0645\u0646\u062f \u067e\u06cc\u062f\u0627 \u0634\u062f\", Toast.LENGTH_SHORT).show();\r\n        }\r\n    };\r\n\r\n    private View.OnClickListener onCancelbuttonClicked = new View.OnClickListener() {\r\n        @Override\r\n        public void onClick(View view) {\r\n            edtName.setText(\"\");\r\n            edtPhone.setText(\"\");\r\n            edtAddress.setText(\"\");\r\n            findViewById(R.id.lin_add_search).setVisibility(View.VISIBLE);\r\n            findViewById(R.id.add_edit_employee).setVisibility(View.GONE);\r\n        }\r\n    };\r\n\r\n    private View.OnClickListener onNewEmployeeSubmit = new View.OnClickListener() {\r\n        @Override\r\n        public void onClick(View view) {\r\n            if (edtName.getText().length() == 0 || edtPhone.getText().length() == 0 || edtAddress.getText().length() == 0) {\r\n                Toast.makeText(MainActivity.this, \"\u0644\u0637\u0641\u0627 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f\", Toast.LENGTH_SHORT).show();\r\n                return;\r\n            }\r\n            Employee employee = new Employee();\r\n            employee.setName(edtName.getText().toString());\r\n            employee.setPhone(edtPhone.getText().toString());\r\n            employee.setAddress(edtAddress.getText().toString());\r\n            new DatabaseHelper(MainActivity.this).addNewEmployee(employee);\r\n            refreshList();\r\n            btnCancel.performClick();\r\n        }\r\n    };\r\n\r\n    private View.OnClickListener onEditEmployeeSubmit = new View.OnClickListener() {\r\n        @Override\r\n        public void onClick(View view) {\r\n            if (edtName.getText().length() == 0 || edtPhone.getText().length() == 0 || edtAddress.getText().length() == 0) {\r\n                Toast.makeText(MainActivity.this, \"\u0644\u0637\u0641\u0627 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f\", Toast.LENGTH_SHORT).show();\r\n                return;\r\n            }\r\n            Employee employee = new Employee();\r\n            employee.setId(seletcedEmployeeId);\r\n            employee.setName(edtName.getText().toString());\r\n            employee.setPhone(edtPhone.getText().toString());\r\n            employee.setAddress(edtAddress.getText().toString());\r\n            new DatabaseHelper(MainActivity.this).editEmployee(employee);\r\n            refreshList();\r\n            btnCancel.performClick();\r\n        }\r\n    };\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<h4>\u067e\u0627\u06cc\u0627\u0646 \u06a9\u0627\u0631<\/h4>\n<p>\u062e\u0628 \u062d\u0627\u0644\u0627 \u067e\u0631\u0648\u0698\u0647 \u0631\u0648 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u062e\u0637\u0627\u06cc\u06cc \u0646\u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u067e\u0631\u0648\u0698\u0647 \u0628\u0627\u06cc\u062f \u0628\u0647 \u062e\u0648\u0628\u06cc \u06a9\u0627\u0631 \u06a9\u0646\u0647.<\/p>\n<p>\u0645\u06cc\u062a\u0648\u0646\u06cc\u062f \u0627\u0632 \u06a9\u062f\u0647\u0627\u06cc \u0627\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u06af\u0633\u062a\u0631\u0634 \u0628\u062f\u06cc\u062f \u0627\u0648\u0646\u0647\u0627 \u0631\u0648. \u06cc\u0627 \u0645\u06cc\u062a\u0648\u0646\u06cc\u062f \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0642\u0627\u0644\u0628 \u06a9\u0644\u06cc \u062c\u0627\u06cc \u062f\u06cc\u06af\u0647 \u0627\u0632\u0634\u0648\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0647\u0631 \u0633\u0648\u0627\u0644 \u06cc\u0627 \u0627\u0628\u0647\u0627\u0645\u06cc \u062f\u0627\u0634\u062a\u06cc\u062f \u0644\u0637\u0641\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u06a9\u0627\u0645\u0646\u062a \u0645\u0637\u0631\u062d \u06a9\u0646\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p>\u0627\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647 \u0628\u0627 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u0627\u0633\u062a\u0648\u062f\u06cc\u0648 \u0648 \u0645\u0634\u062e\u0635\u0627\u062a \u0632\u06cc\u0631 \u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647:<\/p>\n<p>gradle: 2.2.3<\/p>\n<p>compileSdkVersion 25<\/p>\n<p>buildToolsVersion 25.0.1<\/p>\n<p>\u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u062a\u0648\u06cc \u0627\u062c\u0631\u0627 \u0645\u0634\u06a9\u0644 \u062f\u0627\u0634\u062a\u06cc\u062f \u0628\u0627\u06cc\u062f \u062a\u0648\u06cc \u0641\u0627\u06cc\u0644 gradle \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u0627\u0633\u062a\u0648\u062f\u06cc\u0648 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0648\u0631\u0698\u0646\u200c\u0647\u0627\u06cc \u062e\u0648\u062f\u062a\u0648\u0646 \u0631\u0648 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n<p><a href=\"http:\/\/s4.picofile.com\/file\/8284294476\/bobardo_database_sample.rar.html\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>\u062f\u0627\u0646\u0644\u0648\u062f \u0646\u0645\u0648\u0646\u0647 \u067e\u0631\u0648\u0698\u0647 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f<\/strong><\/a> (\u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f)<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u062f\u0631 \u0627\u062f\u0627\u0645\u0647 &#8230;<\/strong><\/p>\n<p>\u062f\u0631 \u0622\u06cc\u0646\u062f\u0647 \u06a9\u0627\u0631 \u0628\u0627 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0622\u0645\u0627\u062f\u0647 \u062a\u0648\u06cc \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u0648 \u06cc\u06a9 \u0633\u0631\u06cc \u0645\u0633\u0627\u0626\u0644 \u062f\u06cc\u06af\u0647 \u0631\u0648 \u06cc\u0627\u062f \u0645\u06cc\u06af\u06cc\u0631\u06cc\u0645.<\/p>\n<p><a href=\"http:\/\/bobardo.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a2%d9%85%d8%a7%d8%af%d9%87-%d8%a7%d9%86%d8%af%d8%b1%d9%88%db%8c%d8%af\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>\u0622\u0645\u0648\u0632\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0622\u0645\u0627\u062f\u0647<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0628\u0639\u062f \u0627\u0632 \u0622\u0634\u0646\u0627 \u0634\u062f\u0646 \u0628\u0627 \u0645\u0642\u062f\u0645\u0627\u062a \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062f\u0631 \u0628\u062e\u0634\u200c\u0647\u0627\u06cc \u06cc\u06a9 \u062a\u0627 \u0633\u0647\u060c \u062a\u0648\u06cc \u0628\u062e\u0634 \u0642\u0628\u0644\u06cc \u0634\u0631\u0648\u0639 \u06a9\u0631\u062f\u06cc\u0645 \u0628\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0633\u0627\u062e\u062a\u0627\u0631 \u06cc\u0627\u0641\u062a\u0647 \u0648 \u062d\u0631\u0641\u0647\u200c\u0627\u06cc \u0627\u0632 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f. \u062a\u0648\u06cc \u0627\u06cc\u0646 \u0628\u062e\u0634 \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647 \u067e\u0631\u0648\u0698\u0647 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u062c\u0627\u0645\u0639 \u0648 \u06a9\u0627\u0645\u0644 \u0631\u0648 \u06af\u0627\u0645 \u0628\u0647 \u06af\u0627\u0645 \u062a\u0648\u0636\u06cc\u062d \u0645\u06cc\u062f\u06cc\u0645 \u062a\u0627 \u0628\u062a\u0648\u0646\u06cc\u062f \u0631\u0627\u062d\u062a \u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f \u0648 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0631\u0648 \u0628\u0647\u062a\u0631 \u06cc\u0627\u062f \u0628\u06af\u06cc\u0631\u06cc\u062f. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":68,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[47,48,49,45,43,73,44,42,71,70,91,69,75,51,74,52,46,90,92,50],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0622\u0645\u0648\u0632\u0634 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u0627\u0632 \u0645\u0628\u062a\u062f\u06cc \u062a\u0627 \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u2013 \u0628\u062e\u0634 \u06f5 - \u0628\u0627\u0628\u0627\u0631\u062f\u0648 \u0628\u0644\u0627\u06af<\/title>\n<meta name=\"description\" content=\"\u062a\u0648\u06cc \u0627\u06cc\u0646 \u0628\u062e\u0634 \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647 \u067e\u0631\u0648\u0698\u0647 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u0631\u0648 \u06af\u0627\u0645 \u0628\u0647 \u06af\u0627\u0645 \u0628\u0647 \u0635\u0648\u0631\u062a \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc \u0645\u06cc\u06a9\u0646\u06cc\u0645. \u062a\u0645\u0627\u0645 \u0639\u0645\u0644\u06cc\u0627\u062a \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0631\u0648 \u062a\u0648\u06cc \u0627\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u062f\u06cc\u0645.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/bobardo.com\/blog\/\u0622\u0645\u0648\u0632\u0634-\u062f\u06cc\u062a\u0627\u0628\u06cc\u0633-\u0627\u0646\u062f\u0631\u0648\u06cc\u062f-5\/\" \/>\n<meta property=\"og:locale\" content=\"fa_IR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0622\u0645\u0648\u0632\u0634 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u0627\u0632 \u0645\u0628\u062a\u062f\u06cc \u062a\u0627 \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u2013 \u0628\u062e\u0634 \u06f5 - \u0628\u0627\u0628\u0627\u0631\u062f\u0648 \u0628\u0644\u0627\u06af\" \/>\n<meta property=\"og:description\" content=\"\u062a\u0648\u06cc \u0627\u06cc\u0646 \u0628\u062e\u0634 \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647 \u067e\u0631\u0648\u0698\u0647 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u0631\u0648 \u06af\u0627\u0645 \u0628\u0647 \u06af\u0627\u0645 \u0628\u0647 \u0635\u0648\u0631\u062a \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc \u0645\u06cc\u06a9\u0646\u06cc\u0645. \u062a\u0645\u0627\u0645 \u0639\u0645\u0644\u06cc\u0627\u062a \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0631\u0648 \u062a\u0648\u06cc \u0627\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u062f\u06cc\u0645.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bobardo.com\/blog\/\u0622\u0645\u0648\u0632\u0634-\u062f\u06cc\u062a\u0627\u0628\u06cc\u0633-\u0627\u0646\u062f\u0631\u0648\u06cc\u062f-5\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0628\u0627\u0628\u0627\u0631\u062f\u0648 \u0628\u0644\u0627\u06af\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-29T18:22:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-06-25T17:45:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/bobardo.com\/blog\/wp-content\/uploads\/android_database_learning.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:label1\" content=\"\u0632\u0645\u0627\u0646 \u062a\u0642\u0631\u06cc\u0628\u06cc \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646\">\n\t<meta name=\"twitter:data1\" content=\"\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/bobardo.com\/blog\/#organization\",\"name\":\"\\u0628\\u0627\\u0628\\u0627\\u0631\\u062f\\u0648\",\"url\":\"https:\/\/bobardo.com\/blog\/\",\"sameAs\":[\"http:\/\/bobardo.studio\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/bobardo.com\/blog\/#logo\",\"inLanguage\":\"fa-IR\",\"url\":\"https:\/\/bobardo.com\/blog\/wp-content\/uploads\/icon.png\",\"contentUrl\":\"https:\/\/bobardo.com\/blog\/wp-content\/uploads\/icon.png\",\"width\":216,\"height\":216,\"caption\":\"\\u0628\\u0627\\u0628\\u0627\\u0631\\u062f\\u0648\"},\"image\":{\"@id\":\"https:\/\/bobardo.com\/blog\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/bobardo.com\/blog\/#website\",\"url\":\"https:\/\/bobardo.com\/blog\/\",\"name\":\"\\u0628\\u0627\\u0628\\u0627\\u0631\\u062f\\u0648 \\u0628\\u0644\\u0627\\u06af\",\"description\":\"\\u0622\\u0645\\u0648\\u0632\\u0634\\u060c \\u0627\\u062e\\u0628\\u0627\\u0631 \\u0648 \\u0645\\u062d\\u0635\\u0648\\u0644\\u0627\\u062a\",\"publisher\":{\"@id\":\"https:\/\/bobardo.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/bobardo.com\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fa-IR\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/bobardo.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a7%d9%86%d8%af%d8%b1%d9%88%db%8c%d8%af-5\/#primaryimage\",\"inLanguage\":\"fa-IR\",\"url\":\"https:\/\/bobardo.com\/blog\/wp-content\/uploads\/android_database_learning.jpg\",\"contentUrl\":\"https:\/\/bobardo.com\/blog\/wp-content\/uploads\/android_database_learning.jpg\",\"width\":750,\"height\":300,\"caption\":\"\\u0622\\u0645\\u0648\\u0632\\u0634 \\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/bobardo.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a7%d9%86%d8%af%d8%b1%d9%88%db%8c%d8%af-5\/#webpage\",\"url\":\"https:\/\/bobardo.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a7%d9%86%d8%af%d8%b1%d9%88%db%8c%d8%af-5\/\",\"name\":\"\\u0622\\u0645\\u0648\\u0632\\u0634 \\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f \\u0627\\u0632 \\u0645\\u0628\\u062a\\u062f\\u06cc \\u062a\\u0627 \\u067e\\u06cc\\u0634\\u0631\\u0641\\u062a\\u0647 \\u2013 \\u0628\\u062e\\u0634 \\u06f5 - \\u0628\\u0627\\u0628\\u0627\\u0631\\u062f\\u0648 \\u0628\\u0644\\u0627\\u06af\",\"isPartOf\":{\"@id\":\"https:\/\/bobardo.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/bobardo.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a7%d9%86%d8%af%d8%b1%d9%88%db%8c%d8%af-5\/#primaryimage\"},\"datePublished\":\"2017-01-29T18:22:27+00:00\",\"dateModified\":\"2017-06-25T17:45:39+00:00\",\"description\":\"\\u062a\\u0648\\u06cc \\u0627\\u06cc\\u0646 \\u0628\\u062e\\u0634 \\u06cc\\u06a9 \\u0646\\u0645\\u0648\\u0646\\u0647 \\u067e\\u0631\\u0648\\u0698\\u0647 \\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f \\u0631\\u0648 \\u06af\\u0627\\u0645 \\u0628\\u0647 \\u06af\\u0627\\u0645 \\u0628\\u0647 \\u0635\\u0648\\u0631\\u062a \\u067e\\u06cc\\u0634\\u0631\\u0641\\u062a\\u0647 \\u067e\\u06cc\\u0627\\u062f\\u0647 \\u0633\\u0627\\u0632\\u06cc \\u0645\\u06cc\\u06a9\\u0646\\u06cc\\u0645. \\u062a\\u0645\\u0627\\u0645 \\u0639\\u0645\\u0644\\u06cc\\u0627\\u062a \\u0645\\u0631\\u0628\\u0648\\u0637 \\u0628\\u0647 \\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 \\u0631\\u0648 \\u062a\\u0648\\u06cc \\u0627\\u06cc\\u0646 \\u067e\\u0631\\u0648\\u0698\\u0647 \\u0627\\u0646\\u062c\\u0627\\u0645 \\u0645\\u06cc\\u062f\\u06cc\\u0645.\",\"breadcrumb\":{\"@id\":\"https:\/\/bobardo.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a7%d9%86%d8%af%d8%b1%d9%88%db%8c%d8%af-5\/#breadcrumb\"},\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/bobardo.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a7%d9%86%d8%af%d8%b1%d9%88%db%8c%d8%af-5\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/bobardo.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a7%d9%86%d8%af%d8%b1%d9%88%db%8c%d8%af-5\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/bobardo.com\/blog\/\",\"url\":\"https:\/\/bobardo.com\/blog\/\",\"name\":\"\\u062e\\u0627\\u0646\\u0647\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@id\":\"https:\/\/bobardo.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a7%d9%86%d8%af%d8%b1%d9%88%db%8c%d8%af-5\/#webpage\"}}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/bobardo.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a7%d9%86%d8%af%d8%b1%d9%88%db%8c%d8%af-5\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/bobardo.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a7%d9%86%d8%af%d8%b1%d9%88%db%8c%d8%af-5\/#webpage\"},\"author\":{\"@id\":\"https:\/\/bobardo.com\/blog\/#\/schema\/person\/c78d23a2e80b5855ec1aa26624da41b4\"},\"headline\":\"\\u0622\\u0645\\u0648\\u0632\\u0634 \\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f \\u0627\\u0632 \\u0645\\u0628\\u062a\\u062f\\u06cc \\u062a\\u0627 \\u067e\\u06cc\\u0634\\u0631\\u0641\\u062a\\u0647 \\u2013 \\u0628\\u062e\\u0634 \\u06f5\",\"datePublished\":\"2017-01-29T18:22:27+00:00\",\"dateModified\":\"2017-06-25T17:45:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/bobardo.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a7%d9%86%d8%af%d8%b1%d9%88%db%8c%d8%af-5\/#webpage\"},\"commentCount\":48,\"publisher\":{\"@id\":\"https:\/\/bobardo.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/bobardo.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a7%d9%86%d8%af%d8%b1%d9%88%db%8c%d8%af-5\/#primaryimage\"},\"keywords\":[\"android database\",\"android sqlite\",\"sqlite\",\"\\u0622\\u0645\\u0648\\u0632\\u0634 sqlite \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f\",\"\\u0622\\u0645\\u0648\\u0632\\u0634 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f\",\"\\u0622\\u0645\\u0648\\u0632\\u0634 \\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 android studio\",\"\\u0622\\u0645\\u0648\\u0632\\u0634 \\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 sqlite\",\"\\u0622\\u0645\\u0648\\u0632\\u0634 \\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f\",\"\\u0622\\u0645\\u0648\\u0632\\u0634 \\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f \\u0627\\u0633\\u062a\\u0648\\u062f\\u06cc\\u0648\",\"\\u0622\\u0645\\u0648\\u0632\\u0634 \\u0645\\u0642\\u062f\\u0645\\u0627\\u062a\\u06cc \\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f\",\"\\u0622\\u0645\\u0648\\u0632\\u0634 \\u067e\\u06cc\\u0634\\u0631\\u0641\\u062a\\u0647 \\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f\",\"\\u0622\\u0645\\u0648\\u0632\\u0634 \\u06a9\\u0627\\u0631 \\u0628\\u0627 \\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 \\u062f\\u0631 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f\",\"\\u0622\\u067e\\u062f\\u06cc\\u062a \\u0627\\u0637\\u0644\\u0627\\u0639\\u0627\\u062a \\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f\",\"\\u062b\\u0628\\u062a \\u0627\\u0637\\u0644\\u0627\\u0639\\u0627\\u062a \\u062f\\u0631 \\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f\",\"\\u062d\\u0630\\u0641 \\u0627\\u0637\\u0644\\u0627\\u0639\\u0627\\u062a \\u0627\\u0632 \\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f\",\"\\u062e\\u0648\\u0627\\u0646\\u062f\\u0646 \\u0627\\u0632 \\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f\",\"\\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f\",\"\\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 \\u067e\\u06cc\\u0634\\u0631\\u0641\\u062a\\u0647 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f\",\"\\u0646\\u0645\\u0648\\u0646\\u0647 \\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f\",\"\\u06a9\\u0627\\u0631 \\u0628\\u0627 \\u062f\\u06cc\\u062a\\u0627\\u0628\\u06cc\\u0633 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f\"],\"articleSection\":[\"\\u0622\\u0645\\u0648\\u0632\\u0634 \\u0627\\u0646\\u062f\\u0631\\u0648\\u06cc\\u062f\"],\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/bobardo.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a7%d9%86%d8%af%d8%b1%d9%88%db%8c%d8%af-5\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/bobardo.com\/blog\/#\/schema\/person\/c78d23a2e80b5855ec1aa26624da41b4\",\"name\":\"\\u062d\\u062c\\u062a \\u0631\\u06cc\\u062d\\u0627\\u0646\\u0647\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/bobardo.com\/blog\/#personlogo\",\"inLanguage\":\"fa-IR\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cbc86ff7b3c7e4b18cab7237aa4a5152?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cbc86ff7b3c7e4b18cab7237aa4a5152?s=96&d=mm&r=g\",\"caption\":\"\\u062d\\u062c\\u062a \\u0631\\u06cc\\u062d\\u0627\\u0646\\u0647\"},\"description\":\"\\u0645\\u0646 \\u0639\\u0627\\u0634\\u0642 \\u0628\\u0631\\u0646\\u0627\\u0645\\u0647\\u200c\\u0646\\u0648\\u06cc\\u0633\\u06cc\\u060c \\u06cc\\u0627\\u062f \\u06af\\u0631\\u0641\\u062a\\u0646 \\u0648 \\u0622\\u0645\\u0648\\u0632\\u0634 \\u062f\\u0627\\u062f\\u0646 \\u0647\\u0633\\u062a\\u0645. \\u0627\\u0646\\u062c\\u0627\\u0645 \\u06a9\\u0627\\u0631\\u0627\\u06cc \\u062c\\u062f\\u06cc\\u062f \\u062a\\u0648\\u06cc \\u0628\\u0631\\u0646\\u0627\\u0645\\u0647\\u200c\\u0646\\u0648\\u06cc\\u0633\\u06cc \\u0631\\u0648 \\u0628\\u06cc\\u0634\\u062a\\u0631 \\u0628\\u0647 \\u0686\\u0634\\u0645 \\u0633\\u0631\\u06af\\u0631\\u0645\\u06cc \\u0645\\u06cc\\u0628\\u06cc\\u0646\\u0645 \\u062a\\u0627 \\u06a9\\u0627\\u0631.\",\"sameAs\":[\"http:\/\/bobardo.com\",\"http:\/\/instagram.com\/_u\/hojjat.reyhane\",\"https:\/\/ir.linkedin.com\/in\/hojjat-reyhane-65857787\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/bobardo.com\/blog\/wp-json\/wp\/v2\/posts\/165"}],"collection":[{"href":"https:\/\/bobardo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bobardo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bobardo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bobardo.com\/blog\/wp-json\/wp\/v2\/comments?post=165"}],"version-history":[{"count":7,"href":"https:\/\/bobardo.com\/blog\/wp-json\/wp\/v2\/posts\/165\/revisions"}],"predecessor-version":[{"id":239,"href":"https:\/\/bobardo.com\/blog\/wp-json\/wp\/v2\/posts\/165\/revisions\/239"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bobardo.com\/blog\/wp-json\/wp\/v2\/media\/68"}],"wp:attachment":[{"href":"https:\/\/bobardo.com\/blog\/wp-json\/wp\/v2\/media?parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bobardo.com\/blog\/wp-json\/wp\/v2\/categories?post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bobardo.com\/blog\/wp-json\/wp\/v2\/tags?post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}