6085 comments
2357 subscribers
6224 on Twitter
Subscribe! Feed reader E-mail

Learning how to tweak my Android devices to fit me

One of the reasons why I like working with the Android operating system is that you can build little tools that interact with the other apps on your system. It’s like the reason why I like Emacs, although Emacs lets you go ahead and redefine routines. Anyway. =)

So here was my motivation: When you share a recipe from the BigOven recipe app, it sends the URL instead of the text. This is inconvenient, so I wanted to make a small tool that extracted the URL and opened it in the browser. That way, I could pass it to Evernote and save the recipe for later searching.

Android stitches different applications together through the idea of an Intent. An application can send an intent to another application in order to get it to do something. It can broadcast an intent to notify other applications that have registered to receive that event. An app can also register to receive various events.

To add something to the Share menu, I needed to write a small application that receives and processes the SEND intent. After trying to figure out if I should use a BroadcastReceiver or a Service or whatever, I settled on using an Activity instead. I might extend this to let me select one of multiple URLs, or recognize phone numbers and things like that too. We’ll see.

Anyway, source. =)

Small steps forward!

Short URL: http://sachachua.com/blog/p/23665
  • http://jeunito.me Jose Asuncion

    Can’t you do the same, somehow on iOS?

    • http://sachachua.com Sacha Chua

      Not to the same extent. :) Different app philosophies, I guess!

On This Day...

  • 2011: Kids’ cartoons and learning piano — One of the reasons I signed up for piano lessons was because I’d flipped through the Alfred Adult All-in-One Piano [...]
  • 2010: Hypercubes, happiness, and serenity — I remember reading an excerpt from Flatland in Childcraft when I was growing up, and wondering: how would a flat [...]
  • 2007: Life shouldn’t be this complicated — ARGH! This is made-for-the-movies madness! Random Emacs symbol: w3m-form-make-button – Function: Make button on the region from START to END.
  • 2006: A mannequin would be useful — When I have more space, I think a mannequin and some white cloth for a backdrop would make these totally small-time [...]
  • 2006: Looking for a malong supplier — I get complimented almost every time I walk out the door wearing one of the beautifully patterned malongs from the Philippines. [...]
  • 2006: Sew what? — When I noticed the rip in Shane D’Costa’s shirt, I insisted that he change into a bathrobe robes so that I [...]
  • 2006: Snakes on a Plane! — Watched Snakes on a Plane with Leigh Honeywell, Quinn Fung, Jedediah Smith, and Seth Hardy last night. Tons of fun, [...]
  • 2005: Way too much exercise — I got out of bed at 8 this morning and walked all the way down to Lake Ontario. Two hours of [...]
  • 2005: Firefox bookmarklet to e-mail a site — J Wynia posted a bookmarklet that lets you e-mail any page to a friend. E-mail to a Friend bookmarklet. Try using [...]
  • 2003: 1. PAASCU reaccreditation: Pretty much finished. — 2. CHED-FAPE survey: Ate Lisa 3. Status of curriculum innovations a. CS curriculum i. Discrete math issues ii. Distribution of core subjects b. MIS curriculum c. 5-year BSMS curriculum d. MSCS e. MCS f. PhD Theoretical computer science Networks g. Changes of course [...]
  • 2003: foo bar — baz

Get the highlights as a PDF!

Stories from my Twenties: Highlights from a Decade of Blogging