System ringtone list in windows phone - c#

I am trying to do an app, that lets the user select the ringtone from the system ringtone list in windows phone to alert user when the Toast notification coming.
What i confusing is it's possible to show the system ringtone list and let the user choose for the purpose of alert notification? What i searching in the website are showing that Android are able to do it (RingtonePreference) and about Windows Phone i only found that is enable users to save an audio file to the system ringtones list.
Any help and suggestion will be appreciate. Thank you.

It seems what you want is not possible. According to this thread on MSDN it is not possible to get a list of ringtones:
An app cannot access existing ringtone or alert sounds; however, your app can save a media file to be used as a ringtone...

Related

Windows Store 10, Windows Phone 10 check if the application is Preloaded or not

Is there any good way to check to see if the application has been pre-loaded on a device or not?
What I need is to be able to check if the user is using the application which is pre-loaded or if he has downloaded it by himself. Is there a property that I can check? or should I ask the OEM to add a file on the devices or properties that I can check?
Try validating the receipt for the app to tell if it was purchased though the store.
https://msdn.microsoft.com/en-us/library/windows/apps/mt219692.aspx

open app url scheme without option to go to store if not available windows phone 8

On IOS and Android it's easy to detect wether a certain app is installed or not. Microsoft is not as friendly for developers and denies the access to information about other apps.
So when launching an url scheme on WP like:
Windows.System.Launcher.LaunchUriAsync(new system.Uri("myApp:MyParams"));
This would open a dialog you can either cancel or "go to store to download the app".
I would like to get a result where this dialog is never shown when the app is not installed and when it is installed the app just opens.
So can anyone help me with that? (of course more ideally would be an availability check but that's not gonna happen so)
Not possible in 8.1, you have to wait for 10 where there is more functionality provided for Launcher.LaunchUriAsync.
You can also call method Windows.System.Launcher.LaunchUriAsync with LauncherOptions param.
LauncherOptions.preferredApplicationPackageFamilyName Is set to the package family name of the app in the store that you want to recommend.
LauncherOptions.preferredApplicationDisplayName Is set to the name of that app LauncherOptions.
You must set both of these options to recommend an app. Setting one without the other will result in a failure.

Disable default Windows Phone NFC Reader

I'm developing a NFC Application on Windows Phone 8
My question is: How to Disable the default NFC Reader of Windows Phone OS?
Everytime I tap a NFC tag, an MessageBox show up, asking if i want to receive the link/file/text. If I tap OK, it will open the default application to "read" that info.
When I tap Cancel, I will be able to back to my app, and do what ever I want with the data i received in NFC tag.
So how can I disable default reader, or hide the message box. I have try NavigationService.GoBack() on Dispatcher, no luck. It's is an OS's element, so we cannot control from our app
thanks
From http://www.mopius.com/faq/
Q:
How to disable the phone's NFC prompts?
A:
When tapping tags that contain certain standardized / well-known
contents, Windows Phone 8 always shows the dialog for the user to
choose what to do with – e.g., to visit the URL or to launch the app.
This prompt even appears if the tag is a LaunchApp tag and the
respective app is already running – the user will nevertheless be
asked to launch the app (again), causing the phone to re-start the
running app.
Unfortunately, this behavior of the Windows Phone 8 OS can’t be
changed at the moment. We already reported the concern to Microsoft
and hope that future versions of WP improve the behavior, in order to
enable a better user experience for NFC apps.
See the sample app somewhere in the middle of this page and try to write the Windows.MySubType tag: http://developer.nokia.com/community/wiki/Use_NFC_tags_with_Windows_Phone_8
Afterwards the app is able to read the tag without being interupted by a phone prompt.
Starting with Windows Phone 8.1 we've addressed this problem (check the Windows Phone Developer Preview program if your phone isn't running 8.1 yet). To silence the OS from popping up for a URL for example, ensure you have a "WindowsUri" subscription. The same goes for other types that generate pop-ups. If you want to silence all pop-ups for all types, you can add a subscription for the "NDEF" message type. Of course, your app must be in the foreground with the subscription enabled for this to have an effect.
Pretty much when a message comes in the OS will see if the foreground app has an explicit subscription for that type, and if so will assume that the app is handling it and that the OS doesn't need to pop-up.

WP7: Access built in events

I'm want to know how can I create an application that is launched with built in events in windows phone like incoming call or email reception.
There are some things that you can add your app to. Perhaps you create a Photo App or a Music App. You can register your app as that type and it will prompt the user to open a photo or song with your app.
Developing Windows Phone 8 apps with file and URI associations
Outside of that though you cannot access phone events. Functions such as this are locked off to developers by Microsoft to provide added security to users and also provide a consistent experience across the platform.

How to browse the content of File in window phone 7?

I am new to the windows phone 7 development world. I am developing an application in window phone 7. In window mobile application (smart device application) we can browse the content of the mobile device by selecting the tools -> Device Emulator Manager -> slecting the emulator & then after clicking the cradle we can browse the content of the mobile device. I want to know how to do this in windows phone 7 application ? I also want to know how to programatically access the content of the Window Phone 7 ? (for e.g I want to open the screen which we will be opened after clicking the upload button in asp.net. In that screen we can navigate between the folder structure of the computer. In such way I want to open the screen for window phone 7) Because I am developing an application in which I want the images from the existing mobile device. So I want to browse the content of the mobile device so that I can select the particular image from the existing content of the mobile device & after that I will dynamically add these images to the images folder of my application. Can you please provide me any code or link through which I can resolve the above issue? If anyone know anything that will also help me a lot. Please share anything whatever anyone knows.
Due to the security model of Windows Phone 7 and fact that applications are sandboxed means that it is not possible to create a file system browser on the device. You can only see files / the directory structure within IsolatedStorage and you must create these files yourself.
You can, however, use MediaLibrary.Pictures or the PhotoChooserTask to access the images stored on the device. These are the images youu'll see in the Pictures hub and, therefore are outside of the files you specifically put in IsolatedStorage.
You can only access the files/directories that are located in the Isolated Storage that is assigned to your application, and you can get a list of those via GetDirectoryNames (for folders) and GetFileNames (for files). You will have to implement a custom listing mechanism since there is no default storage browser component.

Categories

Resources