Class GeneralCtrl


  • public class GeneralCtrl
    extends java.lang.Object
    The type General ctrl.
    • Constructor Detail

      • GeneralCtrl

        public GeneralCtrl​(android.content.Context context)
        Instantiates a new General ctrl.
        Parameters:
        context - the context
    • Method Detail

      • setLanguage

        public android.os.Bundle setLanguage​(java.lang.String language)
        Sets language.
        Parameters:
        language - ex: zh-TW, en-us (String)
        Returns:
        A bundle contains the error code and message
        int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");
      • setImeCurrentKeyboard

        public android.os.Bundle setImeCurrentKeyboard​(java.lang.String data)
        Sets ime current keyboard. query ime data command ex: adb shell ime list -a ,
        Parameters:
        data - keyboard data. (String) Input PackageName or PackageName/ClassName ex: com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME or com.google.android.inputmethod.pinyin/.PinyinIME
        Returns:
        A bundle contains the error code and message
        int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");
      • getDeviceSerialNumber

        public android.os.Bundle getDeviceSerialNumber()
        Gets the hardware serial number
        Returns:
        A bundle contains the error code and message
        int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");
      • getDeviceBuildNumber

        public android.os.Bundle getDeviceBuildNumber()
        Gets a string that uniquely identifies this build
        Returns:
        A bundle contains the error code and message
        int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");