Android Question an error in set ringtone code

Discussion in 'Android Questions' started by Ramezanpour2, May 31, 2015.

  1. Ramezanpour2

    Ramezanpour2 Member Licensed User

    im using this in my application but error happend

    Code:
    If File.Exists(File.DirInternalCache,cursor1.GetString("tanzemahang")&"zohari.txt")=False Then

            
    File.WriteString(File.DirInternalCache,cursor1.GetString("tanzemahang")&"zohari.txt","z")



            s = r.AddToMediaStore(
    File.DirRootExternal,cursor1.GetString("tanzemahang"),cursor1.GetString("id"),False,False,True,False)
            
    File.Copy(File.DirAssets,cursor1.GetString("tanzemahang"), File.DirRootExternal,cursor1.GetString("tanzemahang"))

            
    File.WriteString(File.DirInternalCache,cursor1.GetString("id")&".txt",s)
            r.SetDefault(r.TYPE_RINGTONE,s)






            
    Else





            
    Dim gt As String
            gt = 
    File.GetText(File.DirInternalCache,cursor1.GetString("id")&".txt")
            r.SetDefault(r.TYPE_RINGTONE,gt)



            
    End If
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Please remove the empty lines from the code you posted.

    What is the error message (from the logs)?
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice