Android: bindService always returning false (Expansion APK api)
===

I'm trying to use the APK Expansion extension from Google to download expansion files I have hosted with them.  I'm also using the code from the SampleDownloadActivity to do this, albeit slightly modified to fit in my app.

My problem is that the download is never initiated.  In my class that implements IDownloadClient, onStart() is called, but onServiceConnected() is not.

I have traced this down to this line in DownloaderClientMarshaller:

    if( c.bindService(bindIntent, mConnection, Context.BIND_DEBUG_UNBIND) ) {

This always returns false, and therefore the service is not bound.

I'm using the calling activity within a TabHost, which has caused problems for other people.  They were saying that you must not pass the TabHost context, rather that the Application context to the connect function.  I've changed this by doing:

    mDownloaderClientStub.connect(getApplicationContext());

instead of:

    mDownloaderClientStub.connect(this);

but it doesn't help, I still get false.  I'm doing all my testing on the Emulator if that makes a difference.

I'm really pulling my hair out on this one.  If anyone has any ideas, I'd be extremely grateful!