簡體   English   中英

激活 Windows 手機

[英]make activation for windows phone

我只是搜索了一下,但我什么也沒找到。
我想激活我的應用程序。 我想在系統中創建一個文件,當人們刪除我的應用程序時,文件不會刪除,因為我想在人們再次安裝它后檢查激活情況。
有什么辦法可以做到這一點,因為我這樣做了,但是當我重新安裝應用程序時,文件被刪除了。
這是我的方法,但如果你能說更好的方法,請幫助我。
我為我的英語感到抱歉。
謝謝。

AS 現在文件保存在應用程序存儲中,當應用程序被卸載時會被刪除。如果可用,您可以將文本文件保存到外部存儲中。

     StorageFolder externalDevices = Windows.Storage.KnownFolders.RemovableDevices;

            // Get the first child folder, which represents the SD card.
            StorageFolder sdCard = (await externalDevices.GetFoldersAsync()).FirstOrDefault();

            if (sdCard != null)
            {
                // An SD card is present and the sdCard variable now contains a reference to it.
                var output1 = await sdCard.CreateFileAsync("Test.txt", CreationCollisionOption.OpenIfExists);
            }
            else
            {
                // No SD card is present.
            }

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM