Hi Mark Sorry if I wasn't clear.
I am indeed registering for the action.VIEW and category.BROWSABLE intents for the application/zip type. And in that situation, zip files open into my app perfectly from file managers, perfectly under the stock Android email app, perfectly on HTC's email app. Just not on 'mail app, and not on the Gmail app. If I use the web browswer and navigate to the Gmail website, I can download them and they open into my app just fine. So it is definitely a mail client specific issue. Other zip viewer apps in the market exhibit exactly the same behaviour as my app when trying to open zip files from mail clients, so I don't think it is an issue at my end. I guess I am just surprised that it was so difficult to do something as simple as sharing an object using an industry standard file format, support for which is (after all) built into the OS. I suppose in the long term, having a custom data type which is only registered for my app is a better UI experience for the user, but it looks like at the moment it is simply not possible to share that sort of thing using standard options like email. Works on bluetooth, mind. ;o) On Feb 9, 8:21 pm, Mark Murphy <[email protected]> wrote: > On Thu, Feb 9, 2012 at 4:05 AM, Dusk Jockeys Android Apps > > <[email protected]> wrote: > > The obvious candidate is to use the application/zip MIME type. The > > problem is that while this works fine on the default android mail app > > it is not supported by Gmail or the default Samsung email app, any zip > > file attachment recieved on those mail clients simply won't open. It > > seems to be a recognized issue with Gmail, has anyone any experience > > to the contrary? > > If you do not have an application on the device with an ACTION_VIEW, > CATEGORY_BROWSABLE activity for application/zip, this is the behavior > that I would expect, regardless of mail client. > > > So is there a better approach? > > Don't use email attachments. Upload/download files from a server, > potentially emailing URLs. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android 4.0 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

