Sharing Rich Content From Your Android Apps, to Google+ and Beyond

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.


Introducing the SketchUp Showcase

 

It’s our sincere pleasure to unveil The SketchUp Showcase, a home for the most impressive, interesting, and inspiring project stories that have been shared with us.

Why a new showcase? Often, when you find an amazing model in the 3D Warehouse, it doesn’t tell the full story behind a project. You can download it and see how it was built. But you probably wouldn’t get a sense of why it was built. Where did the inspiration come from? What were the design challenges the modeler faced? What happened after the model was finished? The story just isn’t complete.

The Showcase is a space where the stories, images, renders, animations, and 3D models of passionate SketchUppers can shine a bit brighter.

 

 

What was the inspiration behind this 3D model? | Image courtesy of Roberto Bergamo 

 

But that’s not all – the Showcase is also a first look at a new element of SketchUp technology: an online 3D model viewer. This 3D viewer lets you orbit, zoom, and pan 3D models right in your browser! To see it in action, find a project marked with a red flag or simply click here. Please note: you’ll need to use the latest version of Google Chrome to take advantage of the WebGL goodness that makes this viewer possible.

Go ahead and start exploring now; content is organized by category filters, so you can easily find projects based on your interests.

A project page featuring the new online 3D viewer | The Catalyst Playground in VietnamFinally, our team would like to dedicate the SketchUp Showcase to all the passionate SketchUppers who’ve supported us for over a decade. As we enter a new chapter with Trimble, we hope the Showcase and the online viewer are proof that SketchUp is only getting better. It’s clichéd to say we wouldn’t be much of anywhere without you, but that doesn’t make it any less true. Thank you for all of the love (sometimes tough) you’ve sent our way. Your passion for SketchUp is still what gets us out of bed in the morning.

Spreadsheet Mapper now with more advanced customization

Do you have a spreadsheet of locations that you’d like to see on a map? Here on the Google Earth Outreach team we talk to many nonprofits who use Google Earth and Maps to tell their stories and visualize their data. Often the data is in spreadsheets, or other tabular formats. Converting these rows and columns into a map brings the spreadsheet to life by providing geographic context and a new way to visualize the information.

Spreadsheet Mapper is a tool that enables anyone to easily create a well-designed KML file to show off their data in Google Earth and Maps. Since Spreadsheet Mapper is a Google Docs template, you fill in your data using the familiar interface of a spreadsheet, and create a great KML without any coding. It gives you all the cloud-based benefits of Google Docs, including collaborative editing and the ability to publish directly to the web.

When we released Spreadsheet Mapper 2 a few years ago, it had a number of limitations, especially with regard to the number of placemarks it could create and the available balloon templates. In response to user feedback, and taking advantage of new features in Google spreadsheets and Google Apps Scripts, we have upgraded Spreadsheet Mapper with a variety of new and improved features:

  • More placemarks: Support for 1,000 placemarks and ability to add more as needed
  • Flexible balloon design: Take advantage of even more balloon design templates and simplified starter templates
  • Simplified publication: Just click “Publish to the web” to share your map (no more fussing with URLs)
  • New customization options: Advanced users can change the default view and network link details

Ready to try it? The Spreadsheet Mapper v3 tutorial will get you started.