Do you mean download the songs ?
have you tried this ? http://www.b4x.com/android/forum/threads/download-huge-files-with-httputils2.30220/#content
Dim OutStream As OutputStream
Log("DownloadReady: "&job.Tag)
OutStream = File.OpenOutput(File.DirRootExternal, job.Tag, False) ' Job.Tag is read to set the Original Filename we specify earlier in the creation of the Job
File.Copy2(job.GetInputStream,OutStream) ' save the file
OutStream.Close
Log(job.Tag&" written to "&File.DirRootExternal) ' Write the Originalname to the log to see what happens ;-)
Please note that usually for the size of an mp3 you do not need the service solution
You can simply use a httputils-job for such small files
But from principle it works like
B4X:Dim OutStream As OutputStream Log("DownloadReady: "&job.Tag) OutStream = File.OpenOutput(File.DirRootExternal, job.Tag, False) ' Job.Tag is read to set the Original Filename we specify earlier in the creation of the Job File.Copy2(job.GetInputStream,OutStream) ' save the file OutStream.Close Log(job.Tag&" written to "&File.DirRootExternal) ' Write the Originalname to the log to see what happens ;-)
Please note that this is an code from an app written by me using httputils-lib. And i´m storing the filename in the Tag of the job...
You need to fit this code to your needs!!
Please note that usually for the size of an mp3 you do not need the service solution
You can simply use a httputils-job for such small files
But from principle it works like
B4X:Dim OutStream As OutputStream Log("DownloadReady: "&job.Tag) OutStream = File.OpenOutput(File.DirRootExternal, job.Tag, False) ' Job.Tag is read to set the Original Filename we specify earlier in the creation of the Job File.Copy2(job.GetInputStream,OutStream) ' save the file OutStream.Close Log(job.Tag&" written to "&File.DirRootExternal) ' Write the Originalname to the log to see what happens ;-)
Please note that this is an code from an app written by me using httputils-lib. And i´m storing the filename in the Tag of the job...
You need to fit this code to your needs!!
sorry Erel but this require the mp3 player program reqirmentPlease don't post duplicate questions.
sorry Erel but this require the mp3 player program reqirment
Then you should start writing your own code instead hoping OTHERS will do the job for you!!
When i look at your problemcode i see my code and erels code from an other thread pasted unchanged in cour code.
As i said in my post #7 the code i posted is NOT a solution for you. It shows you the principle and i told you need to fit the code to your needs too.
I´m out here