Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Saving and Retrieving Uri of selected Ringtone in Preferences

$
0
0

Hi

I have a ringtone selector that returns the Android.Net.Uri for the selected RingTone. I save it as a string in my Preferences but when i try to retrieve it

            string ringpicked = MyUtils.GetSetting("ring",3).ToString();
            Android.Net.Uri uri = (Android.Net.Uri)ringpicked;

I get parse error..

Any help and suggestions appreciated

Regards

M.R.


Viewing all articles
Browse latest Browse all 204402

Trending Articles