hello
i wrote code to receive url then show and save to gallery
but when i start and paste url to text field , app show image but don't save to gallery and crash
what is worng ? @Erel
i'm sorry for this
but in log section , b4i don't show any error
in other to , i don't receive any error in log menu , only app crash and don't save image in gallery
I ran your project and it is not clear how to reproduce it. You should make it easier for us to help you. Configure the project in such way that we only need to run it to get to the problematic point.
I ran your project and it is not clear how to reproduce it. You should make it easier for us to help you. Configure the project in such way that we only need to run it to get to the problematic point.
1. Always make a new Httpjob for each request.
2. You should set the job name by calling Job.Initialize.
This code works:
B4X:
Sub btn_Click
Dim h1 As HttpJob 'no need to make it a global variable
h1.Initialize("dnimg", Me)
h1.Download("https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_160x56dp.png")
End Sub
1. Always make a new Httpjob for each request.
2. You should set the job name by calling Job.Initialize.
This code works:
B4X:
Sub btn_Click
Dim h1 As HttpJob 'no need to make it a global variable
h1.Initialize("dnimg", Me)
h1.Download("https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_160x56dp.png")
End Sub
thank you erel , you are the best
i sorry sometime i do wrong , such as i start conversation to you or limit my question to you and etc ,
best regard for you
its solved