小编Mos*_*ady的帖子

将使用地图API V1的Android应用转换为地图Android API V2

我有一个使用旧版Maps API的Android应用程序,现在已弃用!

我需要采取哪些步骤才能使我的应用程序与新API一起使用.

我还使用了Distance Matrix API和Google Directions API.

我的代码会用它吗?!

android google-maps google-maps-android-api-2

4
推荐指数
1
解决办法
6458
查看次数

UWP Light解雇ContentDialog

有没有办法使ContentDialog轻松解雇?所以当用户点击ContentDialog之外的任何东西时,它应该被关闭.

谢谢.

xaml windows-10 uwp uwp-xaml

2
推荐指数
1
解决办法
1297
查看次数

在停用应用时,无法将数据保存到StorageFile

我正在编写一个WP8应用程序,并希望在应用程序停用或关闭时保存一些数据.

我已经尝试了新的WinRT api,但在停用应用程序时无法正常工作:|

代码:

 public async Task CacheData()
        {

            StorageFolder localFolder = ApplicationData.Current.LocalFolder;

                string data = "Hello!";

                ///WinRT not Working !!!

                // Get a reference to the Local Folder 
                // Create the file in the local folder, or if it already exists, just replace it 

                StorageFile storageFileIsolated = await localFolder.CreateFileAsync("Data.data", CreationCollisionOption.ReplaceExisting);
                Stream writeStream = await storageFileIsolated.OpenStreamForWriteAsync();
                using (StreamWriter writer = new StreamWriter(writeStream))
                {
                    await writer.WriteAsync(data);
                }
            }
        }
Run Code Online (Sandbox Code Playgroud)

但与老api一起工作正常

                string data = "Hello!";

                using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication())
                {
                    using …
Run Code Online (Sandbox Code Playgroud)

isolatedstorage windows-phone-8 storagefile winrt-async

1
推荐指数
1
解决办法
2622
查看次数