我有一个使用旧版Maps API的Android应用程序,现在已弃用!
我需要采取哪些步骤才能使我的应用程序与新API一起使用.
我还使用了Distance Matrix API和Google Directions API.
我的代码会用它吗?!
有没有办法使ContentDialog轻松解雇?所以当用户点击ContentDialog之外的任何东西时,它应该被关闭.
谢谢.
我正在编写一个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) android ×1
google-maps ×1
storagefile ×1
uwp ×1
uwp-xaml ×1
windows-10 ×1
winrt-async ×1
xaml ×1