how to share via Google+ from mobile app in android? -


how share via google plus in android, kindly send code , details.

intent gplus = sharecompat.intentbuilder.from(mainactivity.this)         .settext("this site has lots of great information  android!http://www.android.com")         .settype("text/plain")         .getintent()         .setpackage("com.google.android.apps.plus");   startactivity(gplus); 

i tried perform share via google plus in android using above code..but application gets crashed when run this...kindly me execute..

try run in mobile device. if run app in emulator, there no google-play services library. run app in real device.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -