• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Need help with android share intent

nick0123

Lurker
Jul 30, 2012
2
0
hey guys i want the share facility in my application... i want to share text on facebook,twitter, google+ and also by email i have used the following code

Code:
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
                sharingIntent.setType("plain/text");
                sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, "My text");
                startActivity(Intent.createChooser(sharingIntent,"Share using"));

now i m using emulator for API8(Google) platform 2.2 i have facebook,google+ installed on my emulator and i have also configured my gmail account.. but when i click on share button on click which above code is written i dont get options for sharing on facebook or google+ it direclty takes me to compose mail of gmail account .. why is it so ??? am i doing something wrong?? please help me ... i will be really greatful to you.. thanks in advance.. any help will be appreciated...
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones