Android Beginner------Use Android to hide API

Source: Internet
Author: User


By compiling the Android source to get Class.jar contains a lot of Android's various API encapsulation classes.


Then you can get to a jar file that contains:

There are some classes you can't use, but let's make him a class we can use.

That's what you need to do.

The first step: Export the class file you want to extract



I extracted some of the class files from the OS,


Because there are some classes that I need .....

And then what......

Change class to Jar file

How does that change?

Reference: http://blog.sina.com.cn/s/blog_4d6854860100yypn.html

Because I was included in the folder together, so I used the

Two. Put all the class files under a folder into a jar package
Jar CVF Ibstool.jar * Enter

It's best to go into your directory and execute the command to generate the jar file in the directory.


Now see if the jar file is useful



Okay, so you can use it.



Note that the resulting jar is best in line with the path of the same class in Android ... Like Android.os. Class 1


You don't become Com.os. Class 1


Well, after the record is over, don't forget to continue working overtime MLGB ...







Android Beginner------Use Android to hide API

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.