D drachmad Member Licensed User Longtime User May 21, 2013 #1 Dim rm As RingtoneManager Dim mp As MediaPlayer If File.Exists(rm.GetContentDir, Uri) - always false mp.Load(rm.GetContentDir, Uri) - success Thanks for any help.
Dim rm As RingtoneManager Dim mp As MediaPlayer If File.Exists(rm.GetContentDir, Uri) - always false mp.Load(rm.GetContentDir, Uri) - success Thanks for any help.
Erel B4X founder Staff member Licensed User Longtime User May 21, 2013 #2 You can use Try / Catch to catch the error if the Uri is not found. You cannot use File.Exists as this is not a real file. Upvote 0
You can use Try / Catch to catch the error if the Uri is not found. You cannot use File.Exists as this is not a real file.
D drachmad Member Licensed User Longtime User May 22, 2013 #3 Hi Erel, Thanks for the reply. Now I use Try Catch End try but I thought there is a better way Upvote 0