Can't call a public static method inside a public class

I am trying to create thumbnails for images and videos using the ThumbnailUtils

Android built-in class . Generation of video thumbnails is successfully performed using the method createVideoThumbnail(..)

. However, I can't even name the associated method createImageThumbnail

. Both methods are declared public

and static

. Here's a github link to the source.

How can you prevent clients from selectively using a method public static

in Java?

[Edit]: See this link for more information on using Android internal / hidden methods .

+3


source to share


1 answer


The documentation for createImageThumbnail contains @hide

one that makes it not callable outside of the Android SDK.



Read more about @hide

here .

+3


source







All Articles