Ejemplo n.º 1
0
    // MelMessaging related:
    public string GetManufacturer()
    {
        AndroidJavaClass BuildCls     = PlatformIntegrationUtil.GetAndroidJavaClass("android.os.Build");
        string           manufacturer = PlatformIntegrationUtil.GetStatic <string>(BuildCls, "MANUFACTURER");

        return(manufacturer);
    }
Ejemplo n.º 2
0
    AndroidJavaObject getActivity()
    {
        AndroidJavaClass unityPlayer = PlatformIntegrationUtil.GetAndroidJavaClass("com.unity3d.player.UnityPlayer");

        if (unityPlayer == null)
        {
            return(null);
        }
        AndroidJavaObject activity = PlatformIntegrationUtil.GetStatic <AndroidJavaObject>(unityPlayer, "currentActivity");

        if (activity == null)
        {
            return(null);
        }
        return(activity);
    }