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.


Pro Case Study

In the second installment of our three-part series profiling Turner Construction Company, we turn our attention to the plugins Turner is developing to increase efficiencies across the global organization. Jim Barrett, Director of Integrated Building Solutions, explains:

The National Turner Virtual Design and Construction (VDC) team has developed several SketchUp plugins in Ruby to bring existing and evolving VDC processes into the simple, efficient and visual environment of SketchUp Pro.

A proprietary plugin for steel modeling and tracking was created to accelerate the use of Building Information Modeling (BIM) at the World Trade Center Transportation Hub. The tool was written to batch convert single line framing plans into 3D steel sizes, using a standard library of parts. This tool was expanded to report steel takeoffs and is now used throughout Turner to support estimating and pre-construction services.

The Place Steel for Modeling module in Turner’s proprietary SketchUp plugin

By developing our own tools on top of the intuitive interface of SketchUp Pro, we continue to increase operational efficiencies. The place steel plugin is a great example of how streamlining the modeling process by reviewing the process of modeling steel, standardizing the modeling of stock pieces, and integrating that database information into SketchUp Pro reduces redundancy as well as dimensional errors in steel sizing.

Working with several Turner offices including, New York City and Seattle, a takeoff plugin was developed to support Turner’s current approach to “Control Quantity Models” and “Gross Square Foot” takeoffs. This tool allows SketchUp models to be built for different purposes. For example, using client or business unit standards, we still achieve consistent and accurate takeoffs of square footage, count, length and volumes (using SketchUp Pro’s Solid Tools).

The Count Steel for Estimating module of the Turner plugin

Design information is still in its infancy and rapidly changing. Supporting Turner’s evolving estimating expertise, a plugin was developed to accelerate the takeoff process for conceptual estimates. This plugin allows for rapid creation of space and room plans, as well as the detailed takeoff information that is required for estimates.

The Mass Generator for Estimating module

These two takeoff plugins work together to seamlessly streamline the quantity takeoff process developed by estimators in SketchUp Pro. At Turner, we look at opportunities to develop existing processes & workflows using new tools.

A detail view of the Mass Generator for Estimating module

In this way, we aren’t teaching new workflows based on new tools as they come along (a very disruptive process for any business). Rather, we’re able to leverage the skill sets and broad knowledge bases of our VDC team to build streamlined versions of existing workflows into new tools.

Maxwell Render for SketchUp

In November, our friends at Next Limit Technologies announced the release of the Maxwell for Google SketchUp plugin, a dedicated photo-renderer that operates entirely inside of SketchUp. Soon after, they issued a challenge to see who could make the juiciest render using either the free or licensed version of the plugin. The winners of this first Maxwell for SketchUp render competition were announced this week, and they are, in a word, delicious. See for yourself.

Licensed Category:

1st place: Brodie Geers

2nd place: Karlis Musts

3rd place: Francois Verhoeven

4th place: Michael Loper

5th place: Gui Talarico

Voted #1 on social networks: Paulo Avelar

Free Category:

1st place: Arcen Dockx

2nd place: Iwan Widjaja

3rd place: Satrio Hadi

4th place: Saul Giron

5th place: Pandu Pebruanto

Voted #1 on social networks: Daniel Currea