{"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":"

\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

\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 <\/span><\/span>\u062f\u0631 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0627\u0646\u062f\u0631\u0648\u06cc\u062f \u062e\u0648\u062f.<\/span><\/span><\/p>\n

\u06f1)<\/span>\u0634\u0645\u0627 \u0627\u0628\u062a\u062f\u0627 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0645\u0642\u062f\u0627\u0631 \u062f\u0647\u06cc<\/a> \u0628\u0647 \u0622\u0628\u062c\u06a9\u062a \u06cc\u0627 \u0634\u06cc\u0621 PlusClient <\/code><\/span>\u062f\u0631 \u0627\u06a9\u062a\u06cc\u0648\u06cc\u062a\u06cc \u062e\u0648\u062f \u062f\u0627\u0631\u06cc\u062f.<\/code><\/p>\n

\u06f2) <\/span>\u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0646PlusOneButton <\/span>\u062f\u0631 \u0644\u0627\u06cc \u0627\u0648\u062a \u062e\u0648\u062f:<\/p>\n

    <com.google.android.gms.plus.PlusOneButton<\/code>\r\n        xmlns:plus=\"http:\/\/schemas.android.com\/apk\/lib\/com.google.android.gms.plus\"<\/code>\r\n        android:id=\"@+id\/plus_one_button\"<\/code>\r\n        android:layout_width=\"wrap_content\"<\/code>\r\n        android:layout_height=\"wrap_content\"<\/code>\r\n        plus:size=\"standard\"<\/code>\r\n        plus:annotation=\"inline\" \/><\/code><\/pre>\n

\u06f3) <\/span>\u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0627\u062f\u0646 PlusOneButton <\/span>\u0628\u0647 \u06cc\u06a9 \u0645\u062a\u063a\u06cc\u0631 \u0639\u0636\u0648 \u062f\u0631 \u06a9\u0646\u062a\u0631\u0644 Activity.onCreate: <\/span><\/p>\n

@Override<\/code>\r\nprotected void onCreate(Bundle savedInstanceState) {<\/code>\r\n    super.onCreate(savedInstanceState);<\/code>\r\n    mPlusClient = new PlusClient(this, this, this);<\/code>\r\n    mPlusOneButton = (PlusOneButton) findViewById(R.id.plus_one_button);<\/code>\r\n}<\/code><\/pre>\n

\u06f4) <\/span>\u0628\u0631\u0648\u0632\u0622\u0648\u0631\u06cc \u0648\u0636\u0639\u06cc\u062a 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 Activity.onResume <\/span>\u062e\u0648\u062f:<\/p>\n

protected void onResume() {<\/code>\r\n    super.onResume();<\/code>\r\n    \/\/ Refresh the state of the +1 button each time the activity receives focus.<\/code>\r\n    mPlusOneButton.initialize(mPlusClient, URL);<\/code>\r\n}<\/code><\/pre>\n

\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<\/a> <\/span>\u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f<\/span>.<\/span><\/p>\n

\n

\u0645\u062a\u0646 \u062a\u0631\u062c\u0645\u0647 \u0634\u062f\u0647<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\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":{"fifu_image_url":"","fifu_image_alt":"","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}]}}