How to Import a Class From Android Source While Developing an Android Application
I want to use a java class from android/frameworks/base/.... How can I import the class to my pr开发者_如何学Gooject in Eclipse?
(cross-posted from android-developers)
The Settings app is part of the firmware. It has the ability to use classes that are not part of the Android SDK.
If your "application about display settings" is an SDK application, you cannot use HdmiService
.
If your "application about display settings" is part of the firmware, more relevant support lists can be found here:
http://source.android.com/community/index.html
Just use the import statements as you do when you import every other package.
For example if you want to use the AndroidHttpClient, then the following import will do it:
import android.net.http.*;
精彩评论