GetVersionName() public static method

Gets the name of the version.
public static GetVersionName ( string packageName ) : string
packageName string Package name.
return string
Ejemplo n.º 1
0
        /// <summary>
        /// Gets the tango service version.
        /// </summary>
        /// <returns>The tango service version.</returns>
        public static string GetTangoServiceVersion()
        {
            if (m_tangoServiceVersion == string.Empty)
            {
                m_tangoServiceVersion = AndroidHelper.GetVersionName("com.projecttango.tango");
            }

            return(m_tangoServiceVersion);
        }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        m_isActive = false;

        m_buttonRect = new Rect((Screen.width * BUTTON_X_POSITION_RIGHT_ALIGNED) - BUTTON_WIDTH,
                                Screen.height * BUTTON_Y_POSITION_RIGHT_ALIGNED,
                                BUTTON_WIDTH,
                                BUTTON_HEIGHT);

        m_aboutScreenRect = new Rect((Screen.width * 0.5f) - (ABOUT_SCREEN_WIDTH * 0.5f),
                                     (Screen.height * 0.5f) - (ABOUT_SCREEN_HEIGHT * 0.5f),
                                     ABOUT_SCREEN_WIDTH,
                                     m_showLinkToChangeList ? ABOUT_SCREEN_HEIGHT * 3.0f : ABOUT_SCREEN_HEIGHT);

        m_applicationName    = AndroidHelper.GetCurrentApplicationLabel();
        m_applicationVersion = AndroidHelper.GetVersionName(AndroidHelper.GetCurrentPackageName());
    }