[英]Cannot call public static method inside a public class
I've been trying to generate thumbnails for images and videos using Android's inbuilt ThumbnailUtils
class. 我一直在尝试使用Android内置的
ThumbnailUtils
类为图像和视频生成缩略图。 Video thumbnail generation succeeds properly via the createVideoThumbnail(..)
method. 视频缩略图生成通过
createVideoThumbnail(..)
方法正确成功。 However, I cannot even call the related method createImageThumbnail
. 但是,我甚至无法调用相关方法
createImageThumbnail
。 Both methods are declared public
and static
. 这两种方法都被声明为
public
和static
。 Here's the github link to the source. 这是源的github链接 。
How is it possible to restrict clients from using a public static
method selectively in Java? 如何限制客户端在Java中有选择地使用
public static
方法?
[Edit]: See this link for more info about using Android's internal/hidden methods: [编辑]:有关使用Android内部/隐藏方法的更多信息,请参阅此链接 :
The documentation for createImageThumbnail contains the @hide
which makes it not callable outside of the Android SDK. createImageThumbnail的文档包含
@hide
,这使得它无法在Android SDK之外调用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.