Why are some public methods in the android source code not found on the official website and cannot be used ?, Androidpublic

Source: Internet
Author: User

Why are some public methods in the android source code not found on the official website and cannot be used ?, Androidpublic

Thank you for adding @ ayonggu:All codes with Hide annotations are removed when packaged as Android. jar.

For details, refer to the two types of APIs that cannot be used in the SDK ------ @ hide and internal API Introduction


Bytes ----------------------------------------------------------------------------------------------------------------

Why does the public method in the android source code not be found on the official website and cannot be used?

For example, read this:



We cannot find this method on the android development website, and we cannot call it. Why? This is because we can only call the APIS provided to us at the android Framework layer, and this method Framework layer does not open the call, so we naturally cannot call it. However, we can call this method indirectly through reflection (for details, see my previous blog ).


With online look android source code Web site: http://grepcode.com/project/repository.grepcode.com/java/ext/com.google.android/android/


Why can't I access the android official website or download the source code from the sdk manager?

Recently, google has failed to get in, and mongo.android.com is also the same. Occasionally, google can get in. I don't know why, but I have found a lot of information to solve it.
 
In eclipse, I set the source code. After java is set, the android source code is invisible. After android is set, the java source code is invisible.

I also encountered this problem. There is no good solution. I usually use this idea to solve it:
Create a Java Project and a java class Test.
To view the jdk source code, open the Test class first. Then jump to the corresponding jdk class.
When you want to view the android source code, open the class in any android project and jump to it ..

Related Article

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.