I too have a similar requirement. Any luck with a good solution ?

We are developing a Business Management application for 
Accounting/Inventory/Invoicing etc. which is capable of being integrated 
with a reasonably wide variety of 3rd Party document formats – like 
spreadsheets, and PDF, and ALSO capable of being customized by the end-user 
to support additional formats.  While the ‘out-of-the-box’ 
integrations(extensions) can be listed in the manifest file for people to 
opt to open a particular document type using our application, if they wish 
to – what do we need to do to allow them to associate their own customized 
integrations.

On Monday, 9 September 2013 at 20:00:03 UTC+5:30 [email protected] wrote:

> I don't see this getting fixed unless Google opens up the system mime 
>> registry.  (I haven't found any documented API to extend what's returned 
>> from e.g.
>>
>>        MimeTypeMap mapper = MimeTypeMap.getSingleton();
>>        String kmlmime = mapper.getMimeTypeFromExtension("gpx");
>>
>
> Have a look at libcore.net.MimeUtils, theres System env 
> content.types.user.table (.properties file) or (java.home = 
> /system)/lib/content-types.properties.
> However, in Android 4.3, the class is already loaded when 
> Application#onCreate() is called, so you cannot use 
> "content.types.user.table" for your own app.
> So if you have root, you can add mappings for apps that use MimeTypeMap by 
> creating/editing /system/lib/content-types.properties and rebooting.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/760072d2-e96a-47af-9c4a-5e780a2fdfbbn%40googlegroups.com.

Reply via email to