views:

36

answers:

0

I've written an application which adds itself to the image gallery [Share] menu. When the user clicks my app, it uploads the image to a hardcoded web service.

It's all working great, but there's one tweak I can't seem to figure out. When the user selects my app, the Gallery "flashes" away for an instant while the Android Activity is fired up. The activity starts uploading the image in a background thread and creates a notification in the NotificationManager to let the user know when it's done. I never bind to a view in the activity.

The short flash away from the gallery only lasts an instant, and they are returned right back to the gallery to the image they were looking at.

My goal is to eliminate that super-brief "flash" that the user experiences when they select my app from the [Share] menu. I've tried making the Activity background transparent, but that has no effect. I've also tried rewriting the app as a service, but services cannot listen for "android.intent.action.SEND" (via intent-filter) in the AndroidManifest.xml. (I placed it there, but my app (service) did not show up in the list of [Share] apps)

Any ideas? I'm 99% there! :)