About classes that are not exposed in Android (classes hidden with @hide)

Source: Internet
Author: User

about classes that are not exposed in Android (classes hidden with @hide)

Excerpt from: http://wangsheng2008love.blog.163.com/blog/static/78201689201142643413482/

If you look at the source code of Android, you will find that there are many classes in the source of the @hide logo, then what does this flag represent?
actually This means that these classes do not appear in the public SDK.

So how can you use these hide classes when you develop your application?
If you use this class, there are two ways to do this,
1. Put your app in the Android source tree and compile it. Can be directly import into.
2. Remove the @hide of this class used in the source tree, recompile the SDK, and compile your application without the need for the source tree in the resulting SDK environment.

Note: applications with this class do not guarantee backward compatibility, as these classes may change or disappear as the Android version is updated.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.