public void InstallApkFromSDCard()
        {
            // NOTE: In order to test this method apk file must exist on file system.
            // To test this method you put 'test.apk' file into your downloads folder
            const string apkFileName = "/test.apk";
            var          filePath    = Path.Combine(AGEnvironment.ExternalStorageDirectoryPath, AGEnvironment.DirectoryDownloads) +
                                       apkFileName;

            Debug.Log("Unstalling APK: " + filePath + ", file exists?: " + File.Exists(filePath));

            AGApps.InstallApkFileFromSDCard(filePath);
        }
        public void UninstallOtherApp()
        {
            var package = input.text;

            AGApps.UninstallApp(package);
        }
        public void OpenFacebookProfile()
        {
            const string profileId = "4"; // Mark Zuckerberg

            AGApps.OpenFacebookProfile(profileId);
        }
        public void OpenOtherApp()
        {
            var package = input.text;

            AGApps.OpenOtherAppOnDevice(package, () => AGUIMisc.ShowToast("Could not launch " + package));
        }
        public void OpenTwitterProfile()
        {
            const string profileId = "Taras_Leskiv";

            AGApps.OpenTwitterProfile(profileId);
        }
        public void OpenInstagramProfile()
        {
            const string profileId = "tarasleskivlviv";

            AGApps.OpenInstagramProfile(profileId);
        }
        public void WatchYoutubeVideo()
        {
            const string videoId = "mZqjmyyJkQc";

            AGApps.WatchYoutubeVideo(videoId);
        }
Пример #8
0
        public void OpenPdfFromFile()
        {
            var filePath = Path.Combine(Application.persistentDataPath, "esimple-flyer-eng.pdf");

            AGApps.OpenPdf(filePath);
        }
Пример #9
0
        public void WatchYoutubeVideo()
        {
            var videoId = "mZqjmyyJkQc";

            AGApps.WatchYoutubeVideo(videoId);
        }