I have certainly been quiet on here between trying to learn iOS and Swift Development, as well as developing a new app. Also work’s been quite hectic.

A lot of the work I have done recently has involved getting information and then generating views/interactions from the data retrieved. I have to say, whilst I was initially skeptical (and completely unware) of the Graph API, the fact that you can query a single end-point for different queries and data-sets is awesome. Why? Because it makes the HTTP client’s implementation spectacularly simplistic. Also, API calls are certainly less wasteful as you only really query for a dataset you require. An excellent introduction is the one to Facebook’s GraphAPI.

Moving on - an excellent library I have come across lately has been Blurry. As the name suggests, it simply provides a way to create a blur effect in Android. Why would someone need this? Well blurriness can be used in the background to focus on certain things in the foreground so it can stand out.

To use the library, one can simply pass in the calling Activity’s context:

  //Of course this doesn't always need to be called from an Activity, as long as
  //the context Object or even the Activity Object can be passed around.
  //In this instance the Activity object is used.

  //A handy way of getting the contextView is by calling:
  View backgroundView = this.findViewById(android.R.id.content);
  //Now, just call Blurry like so.
  Blurry.with(this).radius(25).sampling(2).onto(backgroundView);

  //To remove Blurry:
  Blurry.delete(backgroundView);

I assume this library (and I haven’t looked at the code) - all it does is take a screenshot of the content view and then adds it as an View in the layout’s hierarchy.