3

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:

Kedar Paranjape
  • 1,822
  • 2
  • 22
  • 33

1 Answers1

3

The documentation for createImageThumbnail contains the @hide which makes it not callable outside of the Android SDK.

More information about @hide here.

Community
  • 1
  • 1
Gaëtan
  • 11,912
  • 7
  • 35
  • 45