哪里是android.os.SystemProperties [英] Where is android.os.SystemProperties

查看:169
本文介绍了哪里是android.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 be found.

下面是我在看文件。 <一href="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">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

<一个href="http://google.com/$c$csearch/p?hl=en#uX1GffpyOZk/core/java/android/os/SystemProperties.java&sa=N&cd=1&ct=rc">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

  1. 通过反射或

  1. 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.

这篇关于哪里是android.os.SystemProperties的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆