{"id":544,"date":"2015-09-16T03:56:06","date_gmt":"2015-09-15T23:26:06","guid":{"rendered":"http:\/\/skhanzadeh.ir\/fa\/?p=544"},"modified":"2015-09-13T04:30:42","modified_gmt":"2015-09-13T00:00:42","slug":"544","status":"publish","type":"post","link":"https:\/\/skhanzadeh.ir\/fa\/1394\/06\/25\/544\/","title":{"rendered":"\u0627\u0641\u0632\u0648\u062f\u0646 \u062f\u06a9\u0645\u0647 +\u06f1 \u06af\u0648\u06af\u0644 \u067e\u0644\u0627\u0633 \u062f\u0631 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646"},"content":{"rendered":"<p style=\"text-align: justify;\" align=\"RIGHT\">\u0633\u0644\u0627\u0645 \u062f\u0631 \u0627\u06cc\u0646 \u0633\u0627\u0639\u062a \u0646\u0648\u0634\u062a\u0627\u0631\u06cc (\u06cc\u0627 \u0645\u0642\u0627\u0644\u0647 \u0627\u06cc) \u062f\u0631\u0628\u0627\u0631\u0647 \u0627\u06cc\u0646\u06a9\u0647 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 (\u06cc\u0627 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646) \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u0634\u0645\u0627 (\u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u0647 \u0648 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633) \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0634\u0628\u06a9\u0647 \u0627\u062c\u062a\u0645\u0627\u0639\u06cc \u06af\u0648\u06af\u0644 \u067e\u0644\u0627\u0633 \u0628\u0647 \u0627\u0634\u062a\u0631\u0627\u06a9 \u0628\u06af\u0630\u0627\u0631\u0646\u062f \u0631\u0627 \u0642\u0631\u0627\u0631 \u0645\u06cc \u062f\u0647\u0645\u060c \u0627\u0645\u06cc\u062f\u0648\u0627\u0631\u0645 \u0645\u0641\u06cc\u062f \u0648\u0627\u0642\u0639 \u06af\u0631\u062f\u062f.<\/p>\n<p style=\"text-align: justify;\" align=\"RIGHT\">\u0628\u0627 \u067e\u0644\u062a\u0641\u0631\u0645 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u06af\u0648\u06af\u0644 \u067e\u0644\u0627\u0633\u060c \u0634\u0645\u0627 \u0642\u0627\u062f\u0631\u06cc\u062f \u0628\u0647 \u0627\u0641\u0632\u0648\u062f\u0646 \u062f\u06a9\u0645\u0647 <span style=\"font-family: Times New Roman,serif;\"><span lang=\"tg-TJ\">+\u06f1 <\/span><\/span>\u062f\u0631 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u062e\u0648\u062f<span style=\"font-family: Times New Roman,serif;\"><span lang=\"tg-TJ\">.<\/span><\/span><!--more--><\/p>\n<p style=\"text-align: justify;\" align=\"RIGHT\"><span style=\"font-family: Times New Roman,serif;\">\u06f1)<\/span>\u0634\u0645\u0627 \u0627\u0628\u062a\u062f\u0627 \u0646\u06cc\u0627\u0632 \u0628\u0647 <a href=\"http:\/\/\u0628\u0627 \u067e\u0644\u062a\u0641\u0631\u0645 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u06af\u0648\u06af\u0644 \u067e\u0644\u0627\u0633\u060c \u0634\u0645\u0627 \u0642\u0627\u062f\u0631\u06cc\u062f \u0628\u0647 \u0627\u0641\u0632\u0648\u062f\u0646 \u062f\u06a9\u0645\u0647 +1 \u062f\u0631 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u062e\u0648\u062f. 1)\u0634\u0645\u0627 \u0627\u0628\u062a\u062f\u0627 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0645\u0642\u062f\u0627\u0631 \u062f\u0647\u06cc \u0628\u0647 \u0622\u0628\u062c\u06a9\u062a \u06cc\u0627 \u0634\u06cc\u0621 PlusClient \u062f\u0631 \u0627\u06a9\u062a\u06cc\u0648\u06cc\u062a\u06cc \u062e\u0648\u062f \u062f\u0627\u0631\u06cc\u062f 2) \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0646PlusOneButton \u062f\u0631 \u0644\u0627\u06cc \u0627\u0648\u062a \u062e\u0648\u062f &lt;com.google.android.gms.plus.PlusOneButton xmlns:plus=&quot;http:\/\/schemas.android.com\/apk\/lib\/com.google.android.gms.plus&quot; android:id=&quot;@+id\/plus_one_button&quot; android:layout_width=&quot;wrap_content&quot; android:layout_height=&quot;wrap_content&quot; plus:size=&quot;standard&quot; plus:annotation=&quot;inline&quot; \/&gt; 3) \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0627\u062f\u0646 PlusOneButton \u0628\u0647 \u06cc\u06a9 \u0645\u062a\u063a\u06cc\u0631 \u0639\u0636\u0648 \u062f\u0631 \u06a9\u0646\u062a\u0631\u0644Activity.onCreate @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mPlusClient = new PlusClient(this, this, this); mPlusOneButton = (PlusOneButton) findViewById(R.id.plus_one_button); } 4) \u0628\u0631\u0648\u0632\u0622\u0648\u0631\u06cc \u0648\u0636\u0639\u06cc\u062a PlusOneButton \u0645\u062a\u0645\u0631\u06a9\u0632 \u06a9\u0631\u062f\u0646 \u0627\u06a9\u062a\u06cc\u0648\u06cc\u062a\u06cc \u0647\u0631 \u0644\u062d\u0638\u0647 \u062f\u0631 \u06a9\u0646\u062a\u0631\u0644 Activity.onResume \u062e\u0648\u062f protected void onResume() { super.onResume(); \/\/ Refresh the state of the +1 button each time the activity receives focus. mPlusOneButton.initialize(mPlusClient, URL); } \u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u06cc\u0634\u062a\u0631 https:\/\/developers.google.com\/+\/mobile\/android\/#recommend_content_with_the_1_button \u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f.\" target=\"_blank\">\u0645\u0642\u062f\u0627\u0631 \u062f\u0647\u06cc<\/a> \u0628\u0647 \u0622\u0628\u062c\u06a9\u062a \u06cc\u0627 \u0634\u06cc\u0621 <span style=\"font-family: Times New Roman,serif;\"><code>PlusClient <\/code><\/span><code>\u062f\u0631 \u0627\u06a9\u062a\u06cc\u0648\u06cc\u062a\u06cc \u062e\u0648\u062f \u062f\u0627\u0631\u06cc\u062f.<\/code><\/p>\n<p style=\"text-align: justify;\" align=\"RIGHT\"><span style=\"font-family: Times New Roman,serif;\">\u06f2) <\/span>\u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0646<span style=\"font-family: Times New Roman,serif;\">PlusOneButton <\/span>\u062f\u0631 \u0644\u0627\u06cc \u0627\u0648\u062a \u062e\u0648\u062f:<\/p>\n<pre dir=\"LTR\"><code>    &lt;com.google.android.gms.plus.PlusOneButton<\/code>\r\n<code>        xmlns:plus=\"http:\/\/schemas.android.com\/apk\/lib\/com.google.android.gms.plus\"<\/code>\r\n<code>        android:id=\"@+id\/plus_one_button\"<\/code>\r\n<code>        android:layout_width=\"wrap_content\"<\/code>\r\n<code>        android:layout_height=\"wrap_content\"<\/code>\r\n<code>        plus:size=\"standard\"<\/code>\r\n<code>        plus:annotation=\"inline\" \/&gt;<\/code><\/pre>\n<p style=\"text-align: justify;\" align=\"RIGHT\"><span style=\"font-family: Times New Roman,serif;\">\u06f3) <\/span>\u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0627\u062f\u0646 <span style=\"font-family: Times New Roman,serif;\">PlusOneButton <\/span>\u0628\u0647 \u06cc\u06a9 \u0645\u062a\u063a\u06cc\u0631 \u0639\u0636\u0648 \u062f\u0631 \u06a9\u0646\u062a\u0631\u0644 <span style=\"font-family: Times New Roman,serif;\">Activity.onCreate: <\/span><\/p>\n<pre dir=\"LTR\"><code>@Override<\/code>\r\n<code>protected void onCreate(Bundle savedInstanceState) {<\/code>\r\n<code>    super.onCreate(savedInstanceState);<\/code>\r\n<code>    mPlusClient = new PlusClient(this, this, this);<\/code>\r\n<code>    mPlusOneButton = (PlusOneButton) findViewById(R.id.plus_one_button);<\/code>\r\n<code>}<\/code><\/pre>\n<p style=\"text-align: justify;\" align=\"RIGHT\"><span style=\"font-family: Times New Roman,serif;\">\u06f4) <\/span>\u0628\u0631\u0648\u0632\u0622\u0648\u0631\u06cc \u0648\u0636\u0639\u06cc\u062a <span style=\"font-family: Times New Roman,serif;\">PlusOneButton <\/span>\u0645\u062a\u0645\u0631\u06a9\u0632 \u06a9\u0631\u062f\u0646 \u0627\u06a9\u062a\u06cc\u0648\u06cc\u062a\u06cc \u0647\u0631 \u0644\u062d\u0638\u0647 \u062f\u0631 \u06a9\u0646\u062a\u0631\u0644 <span style=\"font-family: Times New Roman,serif;\">Activity.onResume <\/span>\u062e\u0648\u062f:<\/p>\n<pre dir=\"LTR\"><code>protected void onResume() {<\/code>\r\n<code>    super.onResume();<\/code>\r\n<code>    \/\/ Refresh the state of the +1 button each time the activity receives focus.<\/code>\r\n<code>    mPlusOneButton.initialize(mPlusClient, URL);<\/code>\r\n<code>}<\/code><\/pre>\n<p style=\"text-align: justify;\" align=\"RIGHT\">\u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u06cc\u0634\u062a\u0631 <span style=\"font-family: Times New Roman,serif;\"><a href=\"https:\/\/developers.google.com\/+\/mobile\/android\/#recommend_content_with_the_1_button\">https:\/\/developers.google.com\/+\/mobile\/android\/#recommend_content_with_the_1_button<\/a> <\/span><span lang=\"fa-IR\">\u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f<\/span><span style=\"font-family: Times New Roman,serif;\">.<\/span><\/p>\n<blockquote>\n<p style=\"text-align: justify;\" align=\"RIGHT\">\u0645\u062a\u0646 \u062a\u0631\u062c\u0645\u0647 \u0634\u062f\u0647<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u0633\u0644\u0627\u0645 \u062f\u0631 \u0627\u06cc\u0646 \u0633\u0627\u0639\u062a \u0646\u0648\u0634\u062a\u0627\u0631\u06cc (\u06cc\u0627 \u0645\u0642\u0627\u0644\u0647 \u0627\u06cc) \u062f\u0631\u0628\u0627\u0631\u0647 \u0627\u06cc\u0646\u06a9\u0647 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 (\u06cc\u0627 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646) \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u0634\u0645\u0627 (\u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u0647 \u0648 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633) \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0634\u0628\u06a9\u0647 \u0627\u062c\u062a\u0645\u0627\u0639\u06cc \u06af\u0648\u06af\u0644 \u067e\u0644\u0627\u0633 \u0628\u0647 \u0627\u0634\u062a\u0631\u0627\u06a9 \u0628\u06af\u0630\u0627\u0631\u0646\u062f \u0631\u0627 \u0642\u0631\u0627\u0631 \u0645\u06cc \u062f\u0647\u0645\u060c \u0627\u0645\u06cc\u062f\u0648\u0627\u0631\u0645 \u0645\u0641\u06cc\u062f \u0648\u0627\u0642\u0639 \u06af\u0631\u062f\u062f. \u0628\u0627 \u067e\u0644\u062a\u0641\u0631\u0645 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u06af\u0648\u06af\u0644 \u067e\u0644\u0627\u0633\u060c \u0634\u0645\u0627 \u0642\u0627\u062f\u0631\u06cc\u062f \u0628\u0647 \u0627\u0641\u0632\u0648\u062f\u0646 \u062f\u06a9\u0645\u0647 +\u06f1 \u062f\u0631 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u062e\u0648\u062f.<\/p>\n","protected":false},"author":1,"featured_media":546,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,570,18,21],"tags":[572,600,82,133,598,173,205,577,250,251,588,366,372,599],"class_list":["post-544","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-2","category-android","category-18","category-21","tag-android","tag-developer","tag-google","tag-saeb-khanzadeh","tag-598","tag-173","tag-205","tag-577","tag-250","tag-251","tag-588","tag-366","tag-372","tag-599"],"_links":{"self":[{"href":"https:\/\/skhanzadeh.ir\/fa\/wp-json\/wp\/v2\/posts\/544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skhanzadeh.ir\/fa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skhanzadeh.ir\/fa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skhanzadeh.ir\/fa\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skhanzadeh.ir\/fa\/wp-json\/wp\/v2\/comments?post=544"}],"version-history":[{"count":0,"href":"https:\/\/skhanzadeh.ir\/fa\/wp-json\/wp\/v2\/posts\/544\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/skhanzadeh.ir\/fa\/wp-json\/wp\/v2\/media\/546"}],"wp:attachment":[{"href":"https:\/\/skhanzadeh.ir\/fa\/wp-json\/wp\/v2\/media?parent=544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skhanzadeh.ir\/fa\/wp-json\/wp\/v2\/categories?post=544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skhanzadeh.ir\/fa\/wp-json\/wp\/v2\/tags?post=544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}