Android 2.1 gallery not backward compatible with Cupcake version, now what?

Posted by Schermvlieger on Stack Overflow See other posts from Stack Overflow or by Schermvlieger
Published on 2010-04-26T12:09:41Z Indexed on 2010/04/26 12:13 UTC
Read the original article Hit count: 192

Filed under:
|
|
|

I don't know why, but in Eclair, the default (non-fancy) gallery app changed its begaviour from the Cupcake version, and it broke one of my commercial applications :-(

Firstly, when long-pressing a gallery and choosing "Diashow", it does not publish an Intent to be picked up by any application that implements the Intent filter anymore. Instead, it will directly call "com.android.gallery/com.android.camera.ViewImage" with extras.

Question: is it still possible to intercept this intent and allow the user to choose my application to do the Diashow?

Secondly, the intent extras for the VIEW intent are messed up (in my build of 2.1 anyway): Instead of providing the BucketId of the picture in the Intent's queryparameter. But in 2.1, the BucketId is moved to the Intent's extras. Except; it is not passing the BUCKET_ID, but the unlocalized BUCKET_DISPLAY_NAME instead :-/

Question: how can I still get the unique BUCKET_ID from the intent, so that I do not have to work with a potentially non-unique BUCKET_DISPLAY_NAME?

Is there anybody out there who has come up with a working solution for these problems?

I thought the whole idea of Android Intents was to be able to integrate your applications with the base Android environment, but my build of 2.1 proves that this idea still lives in the land of Theory :-(

© Stack Overflow or respective owner

Related posts about android

Related posts about eclair