Reputation: 1842
I've been trying to generate thumbnails for images and videos using Android's inbuilt ThumbnailUtils
class. Video thumbnail generation succeeds properly via the createVideoThumbnail(..)
method. However, I cannot even call the related method createImageThumbnail
. Both methods are declared public
and static
. Here's the github link to the source.
How is it possible to restrict clients from using a public static
method selectively in Java?
[Edit]: See this link for more info about using Android's internal/hidden methods:
Upvotes: 3
Views: 315
Reputation: 12552
The documentation for createImageThumbnail contains the @hide
which makes it not callable outside of the Android SDK.
More information about @hide
here.
Upvotes: 3