Android only uses a Linux kernel, it has no "icon theme" for file
types. This means there is no API to get an icon for a given file
type. You can query the PackageManager for Activities that can handle
specific MIME types and get their icons, but this is different.

On Wed, May 5, 2010 at 5:02 AM, ankit <[email protected]> wrote:
> Hi
> I am looking for some API which can fetch the default file icon(s) of
> any file. I know this can be done for the installed apps by
> PackageManager, but I was wondering, since android is linux based, it
> should have a default icon theme (probably hicolor) -
> http://www.freedesktop.org/wiki/Specifications/icon-theme-spec.
>
> Is there any API which take an fd/file path and return the
> corresponding file icon in bitmap format for any file type (or MIME
> type).
>
> --
> 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
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

-- 
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

Reply via email to