Android uses Google + share features
1. First import the <android-sdk-folder>/extras/google/google_play_services into Eclipse
If you do not have this project first update to the latest ADT, then open the Android SDK manager to download
2. Add it as a Lib project to our project
3. Main share code:
Google + share public void Dogoogleplusshare (Activity mcontext) {//Determine if Google Serviceif is installed ( Googleplayservicesutil.isgoogleplayservicesavailable (mcontext) = = connectionresult.success) {Intent shareIntent = New Plusshare.builder (Mcontext). SetType ("Text/plain"). SetText ("Test Share"). Setcontenturl (Uri.parse (" Www.baidu.com ")). Getintent (); Mcontext.startactivityforresult (shareintent,0);} Else{toast.maketext (Mcontext, "Please install Google Service", 0). Show ();}}
This article is from the "birds learn C to Dapeng" blog, please be sure to keep this source http://vincenttung.blog.51cto.com/6249439/1587682
Android access to Google + share features