Monthly Archive for: ‘May, 2012’
Rule #1 Connections If you hate to read about people walking their dog, eating pizza or making you rich in 3 weeks: You are connected with, or are following the wrong people. What you read is who you connected with Rule #2 Time Management If you are not sure how much time you should spend [...]
Many developers have been using Android’s share intent to help their users share content with others, directly from their apps. With the recently-launched ShareCompat library, you can now help your users share rich content with their friends (like images and videos) more easily, and the items they share include attribution to your app. All you need to do is add a few lines of code!
I’ll walk through a few examples that use Google+ as the application handler, but of course, these share intent improvements can work for any service. Popular apps like Foodspotting, Pulse News, and Shazam are already using ShareCompat to help users share rich content with their Google+ circles. You can check out this photo album to see how they are all taking advantage of the new library.
Creating the Share Intent
If you’d like users to be able to share text from your app, start by building the following intent:
Intent shareIntent = ShareCompat.IntentBuilder.from(ShareActivity.this) .setText("This site has lots of great information about Android! http://www.android.com") .setType("text/plain") .getIntent() .setPackage("com.google.android.apps.plus"); startActivity(shareIntent);
Here, I passed text and a URL to the setText method, and I used the setType method to identify the content as “text/plain.” The intent builder can then pass this information to the application that’s doing the sharing. Additionally, I used the setPackage method to specify the application that I want to handle it. In this case, the Google+ application is specified.
The Google+ share box with pre-populated text and link snippet.
Sharing Pictures and Video
Modifying an intent to share pictures or video takes just two modifications:
Intent shareIntent = ShareCompat.IntentBuilder.from(ShareActivity.this) .setText("Hello from Google+ Developer Relations!") .setStream(MEDIA_URI) .setType(MEDIA_TYPE) .getIntent() .setPackage("com.google.android.apps.plus");
Here, I changed the type to an appropriate content type for the media being shared (“image/png” for images, “video/mp4” for videos, etc…). Additionally, I told the intent builder that I’m sending the media store URI of the picture that I want to share.
A Rich, Personalized Post
Once users shares text, links, images, or video using share intents, the post on Google+ will include attribution to your application, like shown below.
A Google+ post with text and an image shared from the Google+ Share Intent Demo app.
As you can see in the screenshot, I combined sharing an image with sharing text. You can mix and match setting text with sharing pictures, videos, or links.
If you’d like to add similar functionality to your Android app, just check out the ShareCompat documentation. Happy sharing!
Follow the conversation on Google+.
Posted by Julia Ferraioli, Developer Advocate, Google+
Last week we released an update to the Google+ Hangouts API, which includes several new features and possibilities to build on, like the ability to respond to facial movements in real-time inside an app.
As with any new API, we’re especially interested in what sorts of things our developer friends will dream up, so we’ve commissioned a handful of them to play with it over the next couple of weeks, and to share their thoughts and discoveries along the way. The participants represent a wide range of developers — from agencies like The Barbarian Group to independent developers like Eyebeam alum Aaron Meyers teamed up with OKFocus.
Follow the Hangouts Hackathon with us on the Google+ Developers page, and, if you’re working on an interesting Hangouts API project we’d love to hear about that too. Use hashtag #hangoutshackathon to chat about our work, or your own, with the new API.
Posted by Jonathan Beri, Google+ Developer Advocate
We blogged about this project before and I thought I give an update. For those who don’t know: The European Commission in Brussels initiated a program called “Digital Agenda Europe” and within this initiative 8 focus groups of which one is Social Media. Based on the overarching goal of a program called “Europe 2020″ we created [...]
Hello Favo.rs Members & Friends! In this blog post, we’d like to cover how to get the most out of your Favo.rs experience. And, quite honestly, it’s an easy topic to discuss, because Favo.rs is focused on one thing, and one thing alone: people exchanging valuable help with each other. On Favo.rs, You Get What [...]
This is a great case for a social media strategy on some of the highest levels The EU is committed to invest Billions of Euro specifically into the digital advancement of EU Member countries and their respective businesses. The EU Commission fully comprehended that the digital infrastructure is the next most important investment of a [...]
- Social Media Engagement – How much value?
- When is a XeeMe referral a referral?
- 24 x 7 Social Media Engagement
- Buzz!™ Expansion
- Why B2B Marketing fails more often today
- Social Presence Page
- Are you an amazing employee?
- Global Social Media Engagement
- Webinar Recap – Growing awareness with buzz campaigns
- Growing awareness with buzz campaigns
- Advocacy (20)
- Announcement (11)
- API (2)
- approachability (40)
- AppsWorld (4)
- Assessment (8)
- Best practices (76)
- Blog (116)
- Braino! (2)
- Buzz (7)
- Case Study (4)
- Channel (1)
- Channel Enablement (2)
- Compete! (1)
- culture (24)
- customer care (3)
- Edge! (2)
- Engage! (2)
- Engagement (1)
- Event (1)
- Flights! (10)
- Focus! (6)
- Graph! (5)
- Identity Management (6)
- Jobs (2)
- Leadership (5)
- Partner (5)
- Presence development (31)
- Product News and Updates (17)
- Reputation management (6)
- S3 Academy Blog (14)
- Social Capital (1)
- Social Marketing (16)
- Social Media Monitoring (21)
- Social Media Strategy (17)
- social media trends (7)
- Social presence (17)
- social presence management (16)
- social presence monitoring (6)
- Social Relationship Management (33)
- Social Sales (5)
- Social scoring (9)
- Social Technology (6)
- Society3 (18)
- Society3 Academy (4)
- Syndicated posts (181)
- Technology (22)
- Technology Hub (147)
- Virtual Currency (1)
- XeeCreds (2)
- Xeeme Blog (44)
- XeeScore (4)
- A Social Media Strategy Story – 3 years in the making - 17,545 views
- This morning, Pinterest introduced ‘Secret Boards’, 5 businesses benefits - 16,907 views
- Social Media 2004 – 2040 – At just the tip of the iceberg - 11,070 views
- Marketing Re-engineering and the new CMO - 7,738 views
- Over 70% of Social Media initiatives FAIL - 6,332 views
- Pinterest killing Flickr - 6,330 views
- 20 Strategic Social Business Tools for 2011 - 5,572 views
- Social Media Strategy Infographic - 5,102 views
- 5 Key Lessons Learnt from 2 Years of Content Marketing - 4,398 views
- TrustCloud and Society3 join forces to increase transparency and trust in the social web. - 4,038 views