Hi, i need to create a file csv and attach in new email (gmail).
i have this code...but i have an error:
The file is empty...
where i wrong?
Dim su As StringUtils
Dim Rows As List
Rows.Initialize
Rows.Add (Array As String("A"))
Rows.Add (Array As String("AA"))
su.SaveCSV(File.DirRootExternal, "1.csv", ",", Rows)
Dim i As Intent
i.Initialize(i.ACTION_SEND, "")
i.SetType("text/plain")
i.PutExtra("android.intent.extra.SUBJECT", "The Subject")
i.PutExtra("android.intent.extra.TEXT", "The Body")
i.SetType("text/plain")
i.PutExtra("android.intent.extra.STREAM", CreateUri("file://" & File.Combine(File.DirDefaultExternal, "1.csv")))
StartActivity(i)
i have this code...but i have an error:
The file is empty...
where i wrong?
Dim su As StringUtils
Dim Rows As List
Rows.Initialize
Rows.Add (Array As String("A"))
Rows.Add (Array As String("AA"))
su.SaveCSV(File.DirRootExternal, "1.csv", ",", Rows)
Dim i As Intent
i.Initialize(i.ACTION_SEND, "")
i.SetType("text/plain")
i.PutExtra("android.intent.extra.SUBJECT", "The Subject")
i.PutExtra("android.intent.extra.TEXT", "The Body")
i.SetType("text/plain")
i.PutExtra("android.intent.extra.STREAM", CreateUri("file://" & File.Combine(File.DirDefaultExternal, "1.csv")))
StartActivity(i)