Saturday, February 19, 2011

J. Ralph, Wretches & Jabberers, and Autism

I was checking the web for any updates on a composer/musician I really like.  His goes by the name J. Ralph (site).  During that search, I found out he did the soundtrack for an Autism documentary called Wretches & Jabberers (site).  I haven't seen the movie yet, but I plan to.  On the movie site, there are bios of several of the autistic folks who appeared in the film, with writings by each.  I read all their words, never realizing before that autistic people had the capacity for such thinking, writing, and communicating.  The movie is targeted exactly for the uninformed like me, I suppose.  Well, this one guy, Naoki Higashida (bio), an author and poet with with  severe autism, wrote the most memorable passage on how an autistic person perceives rain.  It makes me feel like I treat so many things in life cheaply, trivial, or with utter disregard.  Things as simple as the rain.

I call this Raindrops,
Written by Naoki Higashida (excerpted from his full bio, which you must read as well):

I think that “the world of autism narrated by people with autism” is something to be revealed more and more in future. For instance, an example of how I experience the world may be different from how most people experience the world is my experience with rain. My first reaction to rain is to be surprised at its sounds. Though everyone seems to know it rain instantly from hearing its sounds, I first become anxious, unable to tell what sound it is and where it comes from until someone tells me it’s rain. That is why I stare at rain so I can connect the sounds to the rain. But then I become so absorbed in watching raindrops that I forget where I am now. The feeling of continuous raindrops coming down from the sky and falling through my body on the ground causes me to forget myself. Like this, in the world of autism, there are sensory perceptions and ways of thinking that only people with autism can explain.

by Naoki Higashida
Naoki, I'll probably never meet you.  But, thanks for writing that and helping me come a bit closer to capturing the real essence of life.

Android Intents: Should I Rely on Them?

I am developing an Android application that requires an image be taken by the phone's camera.  There should be tight integration between the application and the picture taking process.  To achieve this, without having to write my own camera application component, I plan to use an Intent to leverage the phone's existing camera application.

The Android application framework features the concept of "Intents", or messages, that (in short), let one application use the services  of another application.  So, for example, my application can raise an Intent to use the already-existent Camera application which ships with most Android phones.

I tried out using the existing camera application via an Intent on a Nexus One, and it works pretty well.  The user clicks a "Take Picture" button in my app, and then the Google-developed Camera app comes up.  When the picture is taken, the camera goes away and my app re-appears.  Pretty cool and rather seamless.

The major issue with Intents


Most Android OS'es are not pure and clean like that on a Nexus One.  The Nexus One is like a clean room implementation of Android.  In other words, the Android OS on most phones have likely been heavily modified by the hardware vendor (HTC, Motorola, for example), or the cell provider (Verizon, T-Mobile).  If the camera app has been modified in some way, or outright replaced, and it does not conform to the Intent parameters (whether when calling or returning) that I developed against, then my app is hosed.  This seems to be the case with the Camera application Intent with HTC and Motorola phones (see this bug and NOTE at end of this blog post).  So, this Intent system is in place, but it only works if there is compliant receiver app of your Intent message.

The Intent I want to use:
android.provider.MediaStore.ACTION_IMAGE_CAPTURE
and a parameter (aka Extra) that the Intent takes:
android.provider.MediaStore.EXTRA_OUTPUT

However, it seems that the Camera application on the HTC and Motorola phones where those companies have modified the OS in a large way, the Intent really doesn't work as expected.  So, what were left with is an "service" or API framework that isn't very reliable.

In the end, for me, it requires that I write my own Camera application component since I can't rely on the   ACTION_IMAGE_CAPTURE Intent to behave the same on every Android phone that has a Camera application.  Looking at it further, then, the openness of Android becomes a big pain in the ass that's not present on iPhones, because phone resellers and service providers are trashing the clean and pure OS that Google ships.

Note at end of this blog post


The bug I reference has to do with the Intent not returning the full-size image as taken by the camera, or even a reference to it.  That itself is a big issue with this Intent, but it's not the core reason for this blog post.  If you read throughout the bug text, several posters (like this one, shown below) state that the Intent doesn't even work as expected on certain HTC and Motorola phones.  That's what I'm really writing about.  The Intent system is nice, but there is no reliable contract that it will exist.  If the Camera app was forever in the core OS and very unlikely to change, that Camera Intent would be reliable.  Basically, you can't rely on Intents for apps not written by yourself or those which are not a permanent fixture, non-changing fixture in the OS.

A Key Post From the Bug

Comment 78 by russelljryan, Sep 15, 2010
johnyma22:
... snip ...
The bug was fixed in plain vanilla Android 2.0 (e.g. on an N1).

Part of the confusion is that the HTC Sense UI and the Samsung and Motorola custom UIs re-introduce this bug because they provide their own custom Camera application, which often times does not even accept the EXTRA_OUTPUT intent, and if it does, returns a tiny image as in Android 1.5. 

As in Comment #64, barking at Google about this is pointless. The person you need to be hounding is the creator of the impaired UI that came with your phone.

As an Android developer, this is easily the worst part of Android.

Wednesday, December 29, 2010

Pandora App Needs an Amazon Buy-now Button (Google TV)

Pictured here is the Pandora app on Google TV (Sony Blu-ray Internet TV Box model NSZ-GT1).  Click to see larger version.  I use the Pandora app about 80% of the time that my Goog TV is  on, usually about 4 hours per session.  I love all aspects of the app (navigation, ease of use, reliability, sound quality, etc.), except one major missing piece: I want a Buy-Now button for Amazon MP3s.  I get so tired of bookmarking songs and artisits, then having to go to Amazon, search for it, then buy it.  When I hear a song I love, I want it at that time in my music library.  Pandora would get a cut of all the sale.  Like a musical crack addiction.  A total no-brainer!  But, in any case, Pandora, thanks for deploying a kick-ass app so early on in Google TV.  As I've said in the past, I subscribe to Pandora One.  I deem it as one of the best ways I spend money (at only $36/year).

Firmware version: 2.1-update1
Build number: ogm_2.1_2010120903ON.164108

Saturday, November 20, 2010

Awesome Radio Weekend on KFI AM 640

Friday, Nov 19, 2010
Coast to Coast AM.  I still refer to this as the "Art Bell Show", even though it's mostly hosted now by George Noory and Ian Punnett.  Back in the days of Art Bell, the show tended to focus on conspiracy theory and urban legends, which I love.  Since Art left, the show is often more about metaphysical things (spirits, ghosts, etc.), which I don't much care for.  Anyway, last night was AWESOME.  Ian Punnet interviewed a guy named Al Dobbs, who spoke about the mysterious disappearance of a musician from the 1970s named Jim Sullivan.  The story was cool and kept my attention.  I will agree with one caller that felt the show was a bit of a promo to boost the sales of the recent re-release of the re-mastered album by Jim Sullivan.  Oh well, gotta make money somehow.  Then, Ian opened the lines up to callers for a few hours and almost every caller had a story about mysterious disappearances.  This is exactly the kind of mystery and intrigue I used to love listening to "The Art Bell Show" for.  Not a mention of angels, and only one of ghosts.

Saturday, Nov 20, 2010
Phil Hendrie Show ... Gone from KFI AM 640 ... Back on KFI AM 640 ... AWESOME!!!
I really hope this isn't a one-time gig only to fill an empty night.  I used to listen every night to the Phil Hendrie Show on radio station KFI AM 640.  Then, as so often happens in radio, he moved on.  Most likely due to contract and money reasons.  Anyway, this Saturday night, after a few years away from KFI, Phil Hendrie is back to do a special show.  If you don't know about The Phil Hendry show, you just have to listen (and maybe several times to really get it).  Without giving away how the show works, I will at least say that it tends to satire current news events.  With the release and quick re-imprisonment of child molester dirtbag Lawrence Joseph Brown this week, he classically satired that whole judicial and correctional system debacle.

I did read this on Phil Hendrie's Twitter feed: "Minutes away from hitting the air at KFI Am 640, Los Angeles our newest affiliate... Every Saturday night on KFI 7-10pm"

What I'm listening to on Pandora these days

My usual choice is jungle and drum and bass, but lately I've been listening to some aurally-pleasing trance.  Am I mellowing out?  I don't think so.  I suppose I just go through phases.

Chicane: Love all his music.  Saltwater is epic, and the video is set to surfing!  It simply doesn't get better than that (besides actually going surfing).

Paul Van Dyk: I am a long-time fan of PVD.  Got lots of his CDs.  I find all his music truly aurally pleasing.


Armin Van Buuren: Recently bought Image album after hearing on Pandora.  Excellent.  He's a great song composer/arranger.  Songs I'm liking, among so many: From The Heart, Going Wrong


DJ Tiesto: No need to say anything more.


George Acosta: Bought History of Trance, mainly for the track Calling Your Name, by Anomaly.  Yeah, good old stuff!  Some have said this album is cliche, trendy crap.  WTF, it's all a matter of personal taste.  Sorry if my taste isn't eclectic enough.


Ferry Corsten: Among most of his music/mixes, I especially love the song Beautiful.


LTJ Bukem: song: Rhodes to Freedom


ATB: song: I Will Not Forget


Gouryella: The song is...Gouryella.  Awesome!  On a Tiesto mix album called Magik Three: Far from the Earth.

On a side note: I subscribe to Pandora One.  $36/year.  Higher bit rate, no ads, and no nagging (as often) wondering if I'm listening or not.  At $3/month, that beats the hell out of a $3.85 drink at Starbucks, and supports an online service that simply kicks ass in all respects.  I hope Pandora exists forever.  I've found so many artists I was previously not aware of.  And, I buy their music.

Object Museum #1: Polaroid 600 Business Edition 2

I found this in a Salvation Army store.  Some people just a bit younger than me have no idea what a Polaroid camera is, or was.  Polaroid Corporation made a camera called a Polaroid Instant camera.  It was called instant  because it would spit out a physical picture just after you took the picture.  Instant!  Presto!  No having to take out your roll of undeveloped film, deliver to a photo lab, and later pick up the developed images.  Cool!  I think it's heyday was around the 1970s.  Below is a slideshow of more images.


The Object Museum Debuts

I love industrial design.  I love how tangible objects take shape and character, whether they are visually pleasing, or not.  I also love electronic gadgets, non-electronic gadgets, buildings, and furniture.  I'm not an industrial designer, electrical engineer, product designer, architect, or (full time) furniture maker.  I also have, and come across, cool stuff.  I want to capture them in time.  Too many interesting things, and the memory of them, get thrown out, demolished, or paved over.  I want to save those memories.  So, I bring to me, and to you, the Object Museum.  I pick what I place in the museum.  Some stuff I own, some is lent by donors, some is found.  The first entry in the museum is the Polaroid 600 Business Edition 2, circa mid-2000.  Since each museum object takes a while to prepare, I won't post them too often.  Have fun.