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.


3D Map of London

An interesting visualisation of London’s Urban form:

London Urban Form 3D Map from Duncan Smith on Vimeo.

The visualisation of the density and function of the built-environment shows the dominance of the intensifying city-centre, corridors of commercial development and the smaller scale centres in Outer London.

The data comes from the Valuation Office and the Greater London Authority. For more info and a write up of the background to the viz, take a look at http://www.geographics.blogs.casa.ucl.ac.uk

Introduction to ArcMap 10

This tutorial will familiarize ArcMap beginners how to use ArcMap 10. Topics include opening projects, the organization of the data view, adding data to the project, using tools and toolbars, and saving projects in different ArcMap version formats.

http://www.youtube.com/v/hqHCJUudPvs?version=3&f=videos&app=youtube_gdata