哪里是android.os.SystemPropertiesandroid、os、SystemProperties

由网友(懂得爱学会爱)分享简介:我期待在Android相机code,当我尝试导入android.os.SystemProperties它不能被发现。I'm looking at the Android Camera code and when I try importing android.os.SystemProperties It cannot...

我期待在Android相机code,当我尝试导入android.os.SystemProperties它不能被发现。

I'm looking at the Android Camera code and when I try importing android.os.SystemProperties It cannot be found.

下面是我在看文件。 http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=blob;f=src/com/android/camera/VideoCamera.java;h=8effd3c7e2841eb1ccf0cfce52ca71085642d113;hb=refs/heads/eclair

我创建了一个新的2.1的项目,并试图再次导入这个命名空间,但它仍然无法找到。我检查developer.android.com和SystemProperties未列入

I created a new 2.1 project and tried importing this namespace again, but It still cannot be found. I checked developer.android.com and SystemProperties was not listed

我错过了什么?

推荐答案

这是类在Android源$ C ​​$ C

This is the class in the Android source code

http://google.com/$c$csearch/p?hl=en#uX1GffpyOZk/core/java/android/os/SystemProperties.java&sa=N&cd=1&ct=rc

请参阅 {@隐藏} 在类的Javadoc?这意味着这个类将不会被导出为公共SDK的一部分。

See {@hide} in the class JavaDoc? That means this class won't be exported as part of the public SDK.

该相机应用程序使用它,因为它是内部的,他们不会用公共SDK来构建它。

The camera app uses it as it's internal and they won't use the public SDK to build it.

您可能仍然能够得到这个类

You may still be able to get at this class

通过反射或

by reflection or

通过获取源,消除@hide和制作自己的 定制的SDK。

by getting the source, removing @hide and making your own customized SDK.

不过pretty的多少根据定义,现在你要'关闭SDK ,因此你的应用程序很可能被打破或得到操作系统版本为Android的不同的行为人会很少努力不改变版本之间的类。

However pretty much by definition you are now going 'off SDK' and therefore your app may well be broken or get different behavior on OS versions as the Android folks will make little effort not to change this class between versions.

阅读全文

相关推荐

最新文章