IT. Expert System.

Android Reference

SystemProperties


android.os

Class SystemProperties



  • public class SystemProperties
    extends Object
    Gives access to the system properties store. The system properties store contains a list of string key-value pairs.
    • Constructor Detail

      • SystemProperties

        public SystemProperties()
    • Method Detail

      • get

        public static String get(String key)
        Get the value for the given key.
        Returns:
        an empty string if the key isn't found
        Throws:
        IllegalArgumentException - if the key exceeds 32 characters
      • get

        public static String get(String key,
                 String def)
        Get the value for the given key.
        Returns:
        if the key isn't found, return def if it isn't null, or an empty string otherwise
        Throws:
        IllegalArgumentException - if the key exceeds 32 characters
      • getInt

        public static int getInt(String key,
                 int def)
        Get the value for the given key, and return as an integer.
        Parameters:
        key - the key to lookup
        def - a default value to return
        Returns:
        the key parsed as an integer, or def if the key isn't found or cannot be parsed
        Throws:
        IllegalArgumentException - if the key exceeds 32 characters
      • getLong

        public static long getLong(String key,
                   long def)
        Get the value for the given key, and return as a long.
        Parameters:
        key - the key to lookup
        def - a default value to return
        Returns:
        the key parsed as a long, or def if the key isn't found or cannot be parsed
        Throws:
        IllegalArgumentException - if the key exceeds 32 characters
      • getBoolean

        public static boolean getBoolean(String key,
                         boolean def)
        Get the value for the given key, returned as a boolean. Values 'n', 'no', '0', 'false' or 'off' are considered false. Values 'y', 'yes', '1', 'true' or 'on' are considered true. (case sensitive). If the key does not exist, or has any other value, then the default result is returned.
        Parameters:
        key - the key to lookup
        def - a default value to return
        Returns:
        the key parsed as a boolean, or def if the key isn't found or is not able to be parsed as a boolean.
        Throws:
        IllegalArgumentException - if the key exceeds 32 characters
      • addChangeCallback

        public static void addChangeCallback(Runnable callback)


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 136 / 158782886. Delta: 0.40503 с