Ejemplo n.º 1
0
        /// <summary>
        /// Check whether HUAWEI AR Engine server (com.huawei.arengine.service) is installed on the current device.
        /// If not, redirect the user to HUAWEI AppGallery for installation.
        /// </summary>
        private bool ArEngineAbilityCheck()
        {
            bool isInstallArEngineApk = AREnginesApk.IsAREngineApkReady(this);

            if (!isInstallArEngineApk && isRemindInstall)
            {
                Toast.MakeText(this, "Please agree to install.", ToastLength.Long).Show();
                Finish();
            }
            Log.Debug(TAG, "Is Install AR Engine Apk: " + isInstallArEngineApk);
            if (!isInstallArEngineApk)
            {
                AREngineAvailability.NavigateToAppMarketPage(this);
                isRemindInstall = true;
            }
            return(AREnginesApk.IsAREngineApkReady(this));
        }
Ejemplo n.º 2
0
 public static bool IsArEngineServiceApkReady(Context context)
 {
     return(AREnginesApk.IsAREngineApkReady(context));
 }