I am trying to use
SystemProperties.get();
but not able to import the android.os.SystemProperties package bit of googling tells me its hidden, is there any way around this ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
SystemPropertiesis a hidden class that is only available to platform-level code. You could try to access it via reflection, but this is not recommended.It is easy to confuse Android’s
SystemPropertiesclass with the old-style Java way of doing properties, namelyjava.lang.System.getProperty(). Note that these are two totally separate systems. An important difference is that the Java mechanism works only within a given process, whereas the AndroidSystemPropertiesworks across processes.As an app developer, although you don’t normally get a Java-based API into Android’s Android
SystemProperties, you can inspect theSystemPropertiesat the command-line using