I have seen many questions about this topic. All answers are saying it is not possible and all questions are answered like that only.
Here is one Programmatically create a photo album in Windows Phone 8
But after installing the latest WhatsApp update it is creating a folder in my phone photo album. After searching the internet I got this URL: http://thegeekybeng.com/2013/12/18/whatsapp-for-windows-phone-get-a-much-needed-update/
.. What's more! Now it's easier to search for the videos and photos you
Saved from whatsapp as a new folder simply named “Whatsapp” will be
Created in the photo album for you to store all the videos and photos
Saved from Whatsapp!...
How is this possible?
"How is this possible." This is only possible if you have access to API's/other means that are not publicly available, look at this news report from Nokia for example, it states
The developers were working with Nokia to produce a version that is
properly optimised for the latest Windows Phone platform experience.
This means that the WhatsApp developers had access to some of the internal goodies that we "unworthy" developers do not.
This is the only explanation I can think of. So, is it possible? Yes, but only for the elite.
EDIT:
In WP8.1 you could do this:
IReadOnlyList<StorageFolder> storageFolderList = await KnownFolders.PicturesLibrary.GetFoldersAsync();
if (storageFolderList.Where(x => x.Name == "FolderName").Count() == 0)
{
StorageFolder folderCreationResult = await KnownFolders.PicturesLibrary.CreateFolderAsync("FolderName", CreationCollisionOption.ReplaceExisting);
var messageDialog = new MessageDialog("FolderName has been created", "Folder Created");
await messageDialog.ShowAsync();
}
else
{
var messageDialog = new MessageDialog("FolderName already exists.", "Folder Exists");
await messageDialog.ShowAsync();
}
This has been now provided to all developers finally through Windows 8.1 update and Visual Studio 2013 Update 2.
KnownFolders.PicturesLibrary.CreateFolderAsync("My Album Name", CreationCollisionOption.ReplaceExisting);
Related
Using the speech-to-text WinRT API:
private async Task SynthesizeSpeech(string text)
{
var synthesizer = new SpeechSynthesizer();
var media = new MediaElement();
var stream = await m_Synthesizer.SynthesizeTextToStreamAsync(text);
m_Media.SetSource(stream, stream.ContentType);
m_Media.Play();
}
You can set the synthesizer's voice by choosing from the available ones on the device:
var voice = SpeechSynthesizer.AllVoices
.FirstOrDefault(voice => voice.Language.StartsWith("es"));
My Windows Phone (8.1) includes a voices: an English, Japanese, and Chinese, male and female.
My question is: is there any way to install new voices onto the device (or better yet, include them with my app)?
Settings -> Speech lets you install new speech voices onto the phone. (I still don't know how to install it from a resource in my app, or at least provide a link to the user of my app to install it.)
Please help me how to store user data in window phone 8 application?
I have a plan to develop an application on windows phone 8 which allow user create xml file to store their private data. The question is how to store user data on window 8.1 phone. After search solution, i know that
+ Isolated Storage can store data but it just small data for application
+ Store data on SD card is read only.
So, is there any other way to store data?
Thank and sorry about my english skill!
ApplicationData (LocalFolder on WP8 or LocalFolder and RoamingFolder on WP8.1) is designed for what you are trying to do. The ApplicationSettings themselves are better for small pieces of data, but apps can save files of any size which the phone has room for in the LocalFolder.
See Accessing app data with the Windows Runtime on MSDN for details. While the docs target Windows Runtime apps, the ApplicationData and StorageFile API are available to Silverlight apps on Windows Phone 8 and later.
Additional Usings:
using System.Xml.Serialization;
using Windows.Storage;
using System.IO;
Code:
StorageFolder localFolder = ApplicationData.Current.LocalFolder;
StorageFile saveFile = await localFolder.CreateFileAsync("data.xml", CreationCollisionOption.ReplaceExisting);
using (var ras = await saveFile.OpenAsync(FileAccessMode.ReadWrite))
{
Stream stream = ras.GetOutputStreamAt(0).AsStreamForWrite();
XmlSerializer serializer = new XmlSerializer(typeof(List<Book>));
serializer.Serialize(stream, data);
}
If you need more structured data than XML then you can store a SQLite database in the local folder. If you need more space than is reasonable for an app to store on the device then you'll need to move it to a web service. Azure Mobile Services is a good place to do that. You can call such a service from a Windows Phone Silverlight app, but the wizards will generate Universal apps.
I'm trying to update the album art for a background playing track in Windows 8.1 Store app (C#/Xaml) but although I get no exceptions, the image doesn't update in the little transport popup...
this is the code I'm executing to update it:
var track = App.MediaPlayer.Tag as Track;
await App.Api.Cache.DownloadFile("currentalbumart.png", new Uri(track.medium_image_url));
// Get the updater.
SystemMediaTransportControlsDisplayUpdater updater = App.SystemControls.DisplayUpdater;
updater.Type = MediaPlaybackType.Music;
updater.MusicProperties.AlbumArtist = track.artist;
updater.MusicProperties.Title = track.name;
updater.Thumbnail = RandomAccessStreamReference.CreateFromUri(new Uri("ms-appdata:///local/currentalbumart.png"));
updater.Update();
The DownloadFile method executes without any issue, and if I navigate to the local folder, indeed the image does get downloaded. I thought perhaps I'm using the wrong URI to it, but I don't get any exceptions when I assign it to the thumbnail...
what might be wrong here? many thanks
I actually had this problem for ages but finally fixed it today, after about 20+hours on previous apps to get it working. If you use the following code to update your thumbnail, you can use a html link:
updater.thumbnail = Windows.Storage.Streams.RandomAccessStreamReference.createFromUri(new Windows.Foundation.Uri("http://www.example.com/logo.jpg"));
This leaves the full code for the function to be:
//Used to update the media controls etc
function UpdateSongInfoManually(artist,songName,AlbumArtist, SongArt) {
// Get the updater.
var updater = systemMediaControls.displayUpdater;
updater.type = 1; //1=Music
// Music metadata.
updater.musicProperties.AlbumArtist = artist;
updater.musicProperties.AlbumArtist = mixName;
updater.musicProperties.Title = songTitle;
updater.thumbnail = Windows.Storage.Streams.RandomAccessStreamReference.createFromUri(new Windows.Foundation.Uri(MixArt));
// Set the album art thumbnail.
// RandomAccessStreamReference is defined in Windows.Storage.Streams
//updater.Thumbnail =
// RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Music/music1_AlbumArt.jpg"));
// Update the system media transport controls.
updater.update();
}
I have a similar problem in a Windows 8.1 Phone (Store) app. First I tried to copy MP3 files (with ID3 tags) and a folder.jpg file as album art using Windows Explorer to the Phones Music library (Music//). Using standard Music app everything works fine.
Than I tried to do the same inside the app I am developing. I download mp3 and jpg file from a server and stored them into the music library. I verified the result with the phones standard Music App. The ID3 tags are detected correctly but the album art jpg file is not shown. And now the thing becomes completely magic. Using Explorer I copied the jpg file to the PC and checked it. Jpg looks fine. Than I copied it back to the phone. And now standard music app shows correct album art !!
Maybe it has something to do with file security.
I created an App for windows phone. I want to include the feature of Native share option in Windows Phone 8 (while press and holding an app. it shows 1.Pin to Start 2. Rate&review 3. Uninstall and i want to include Share option.)
Is that anyone tell me how to do this?
As far as I know, it is Not possible to add new item in system context menu.
var marketplaceDetailTask = new MarketplaceDetailTask
{
ContentIdentifier = "App ID",
ContentType = MarketplaceContentType.Applications
};
marketplaceDetailTask.Show();
Try this Link.
Not Possible. There is no Such Exposed API/Method That Can Do For You.
Anybody knows what is the URL to send the user to the list of my developer apps on:
Windows 8 store ?
WP8 store ?
Thanks !
For Windows 8 apps, you can use below Uri to launch your apps:
ms-windows-store:Publisher?name=[your publisher display name]
Any spaces in your publisher name should be rendered as %20.
On WP8:
http://msdn.microsoft.com/en-us/library/hh394001(v=VS.92).aspx
Use your publisher name as search term.
MarketplaceSearchTask marketplaceSearchTask = new MarketplaceSearchTask();
marketplaceSearchTask.ContentType = MarketplaceContentType.Apps;
marketplaceSearchTask.SearchTerms = "*publisher name*";
marketplaceSearchTask.Show();
For the Windows 8 store there does not appear to be an equivalent to MarketplaceSearchTask. Check out this SO Question for more info.