soroush_safarii Member Licensed User Mar 1, 2017 #1 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 Attachments dw.zip dw.zip 39.5 KB · Views: 444
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
Erel B4X founder Staff member Licensed User Longtime User Mar 1, 2017 #2 soroush_safarii said: @Erel Click to expand... Please don't limit your questions to a single member. I will not answer such questions. You should also post the relevant source code in the post itself and add the error message from the logs. Upvote 0
soroush_safarii said: @Erel Click to expand... Please don't limit your questions to a single member. I will not answer such questions. You should also post the relevant source code in the post itself and add the error message from the logs.
soroush_safarii Member Licensed User Mar 1, 2017 #3 Erel said: Please don't limit your questions to a single member. I will not answer such questions. You should also post the relevant source code in the post itself and add the error message from the logs. Click to expand... 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 Upvote 0
Erel said: Please don't limit your questions to a single member. I will not answer such questions. You should also post the relevant source code in the post itself and add the error message from the logs. Click to expand... 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
Erel B4X founder Staff member Licensed User Longtime User Mar 1, 2017 #4 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 will not guess which url to enter in the field. Upvote 0
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 will not guess which url to enter in the field.
soroush_safarii Member Licensed User Mar 1, 2017 #5 Erel said: 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 will not guess which url to enter in the field. Click to expand... i clear my code and fix it , now see when click on save button , application crash and dont show any error and don't save to gallery and url like this : https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_160x56dp.png i so sorry , i am beginner , Attachments dw1.zip dw1.zip 78.8 KB · Views: 430 Last edited: Mar 1, 2017 Upvote 0
Erel said: 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 will not guess which url to enter in the field. Click to expand... i clear my code and fix it , now see when click on save button , application crash and dont show any error and don't save to gallery and url like this : https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_160x56dp.png i so sorry , i am beginner ,
Erel B4X founder Staff member Licensed User Longtime User Mar 1, 2017 #6 1. Always make a new Httpjob for each request. 2. You should set the job name by calling Job.Initialize. This code works: Code: Copy 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 Upvote 0
1. Always make a new Httpjob for each request. 2. You should set the job name by calling Job.Initialize. This code works: Code: Copy 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
soroush_safarii Member Licensed User Mar 1, 2017 #7 Erel said: 1. Always make a new Httpjob for each request. 2. You should set the job name by calling Job.Initialize. This code works: Code: Copy 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 Click to expand... i have problem with save to gallery , this code you post ,for download. for save image to gallery , what i do ? i write code but app crash and dont show any error @Erel Last edited: Mar 2, 2017 Upvote 0
Erel said: 1. Always make a new Httpjob for each request. 2. You should set the job name by calling Job.Initialize. This code works: Code: Copy 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 Click to expand... i have problem with save to gallery , this code you post ,for download. for save image to gallery , what i do ? i write code but app crash and dont show any error @Erel
Erel B4X founder Staff member Licensed User Longtime User Mar 2, 2017 #8 There is a new requirement in iOS 10. You need to add this line: Code: Copy #PlistExtra: <key>NSPhotoLibraryUsageDescription</key><string>This app needs access to photos.</string> Upvote 0
There is a new requirement in iOS 10. You need to add this line: Code: Copy #PlistExtra: <key>NSPhotoLibraryUsageDescription</key><string>This app needs access to photos.</string>
soroush_safarii Member Licensed User Mar 2, 2017 #9 Erel said: There is a new requirement in iOS 10. You need to add this line: Code: Copy #PlistExtra: <key>NSPhotoLibraryUsageDescription</key><string>This app needs access to photos.</string> Click to expand... 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 Upvote 0
Erel said: There is a new requirement in iOS 10. You need to add this line: Code: Copy #PlistExtra: <key>NSPhotoLibraryUsageDescription</key><string>This app needs access to photos.</string> Click to expand... 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
Erel B4X founder Staff member Licensed User Longtime User Mar 2, 2017 #10 Don't be sorry. It is a relatively new requirement and was therefore missing from the documentation. Upvote 0
soroush_safarii Member Licensed User Mar 2, 2017 #11 Erel said: Don't be sorry. It is a relatively new requirement and was therefore missing from the documentation. Click to expand... if i need to save instagram photo or video , what i do ? i will use regex ? Upvote 0
Erel said: Don't be sorry. It is a relatively new requirement and was therefore missing from the documentation. Click to expand... if i need to save instagram photo or video , what i do ? i will use regex ?
Erel B4X founder Staff member Licensed User Longtime User Mar 2, 2017 #12 You should start a new thread for a new question. I don't see how regex is related here. Upvote 0