Ringtone selector in wp7 - c#

I am working on app where I need to create some alarms and reminder. I saw an app in marketplace that can set alarm and reminder. And user can assign ringtones as well. When User press assign ringtone button. A list of ringtones are opened that are local ringtones of that app mean not native windows phone 7 ringtones. And User can select any ringtone and play ringtone. Its same screen as in native wp7 for ringtone selection with list of ringtone and play button to listen the ringtone.Is this any control of toolkit in wp7 like listpicker in which we can bind list of tones and play from there as well.

There's nothing in the default SDK. You'll have to build one yourself.

Related

How to make Video resume playing in Windows Phone 8 App XAML and C#

I have a windows phone app that plays videos from a url on a video details page, I now have another page that users can navigate to from a click event to add comments to the selected video. But I discovered that, when users navigate to the comments page to post comments and click the phone's back button, the video does not continue to play, it just goes blank. I want to make the video playing to pause when users navigate to the comments page and resume, when the phone's back button is clicked. I am using Microsoft Media Player framework, and xaml and c#
You need to store the Media Player's Position property in a variable, then check if it's already stored, and if so, use the page's OnNavigatedTo event to set the MediaPlayer back to the position and call Play();

Windows Phone Textbox - Keyboard does not show

I have a very simple scenario where I can focus an editable text box, the cursor appears inside the field, bt the keyboard will not show.
I have replicated this in a small sample app (Windows Phone 8.1 - Universal App). Very easy to recreate.
Create an 8.1 universal app. In the MainPage for phone add a text box and a button. The code for the button just sets the textbox to NOT read only. The default state of the textbox is ReadOnly.
Run app, select edit and then select the field. Cursor is present and keyboard opens. Close app.
Failure scenario:
Open app, touch read only text field. Note: No cursor is in box as it is read only.
Select Edit button. Tap the text field. Cursor is focused into field, but keyboard does not appear. I have a sample app with this behavior.
Any Resolutions?
This is a known issue in Windows Phone 8.1 which is fixed in current builds of Windows 10 Mobile.
Unfortunately I don't see any good workarounds for this on Windows Phone 8.1 other than "don't do that". Instead of switching a TextBox into and out of IsReadOnly mode try swapping between two TextBoxes (or a TextBox and a TextBlock).

Universal volume control navigation WP8

How do we control the navigation to a page from UVC? I want it to navigate to the "Now playing page" in the app when tapped, both when the app is closed and app is in the background. "BackgroundAudioPlayer" is used for playing the songs.
The only solution I came to is - writing the current song to the Now playing item in Music & video hub as mentioned in this post - Detect application launch from Universal Volume Control
The value given into the MediaHistoryItem.PlayerContext will be obtained as the NavigationContext.QueryString in the OnNavigatedTo event. Using this value, navigate to the required page.

How to access ringtones

My app that I am currently working on, requires me to make a button that makes the user choose the ringtone to use for the push notification. Now I can't for the life of me get documentation on how my app can show the native ringtone list after tapping on that button ?
Will take any advice/ link/ already posted question.
As far as I know, you can not change the ringtone for notifications from inside an app - nor can you query all available ringtones of the phone from within an app. The user need to go to the settings and change the ringtone there.

how to add a button in the snap page of windows 8 app development?

I have done a windows 8 app called bmi calculator which I want to upload in the store but it says that I have to add snap tool to it. I don't know how to add a textbox or a button in a snapped page
Are you referring to SnapView?

Categories