Y ykucuk Well-Known Member Licensed User Longtime User Feb 24, 2018 #1 Hello, I use i.ACTION_PICK for pick image from the gallery. It works fine when user picked image. Is there any function for check user canceled pick image?
Hello, I use i.ACTION_PICK for pick image from the gallery. It works fine when user picked image. Is there any function for check user canceled pick image?
Erel B4X founder Staff member Licensed User Longtime User Feb 25, 2018 #2 Are you using ContentChooser? Upvote 0
Y ykucuk Well-Known Member Licensed User Longtime User Feb 25, 2018 #3 No. B4X: i.Initialize(i.ACTION_PICK, "") i.SetType("image/*") i.PutExtra("output", ParseUri("file://" & File.Combine(Directory, PictureName))) 'output folder you set OpenCam(File.DirRootExternal, "1.jpg") i.PutExtra("crop", "true") 'crop ON i.PutExtra("aspectX",50%x) 'crop aspects i.PutExtra("aspectY", 50%x) 'crop aspects i.PutExtra("outputX", 50%x) 'crop size i.PutExtra("outputY", 50%x) 'crop size StartActivity(i) Upvote 0
No. B4X: i.Initialize(i.ACTION_PICK, "") i.SetType("image/*") i.PutExtra("output", ParseUri("file://" & File.Combine(Directory, PictureName))) 'output folder you set OpenCam(File.DirRootExternal, "1.jpg") i.PutExtra("crop", "true") 'crop ON i.PutExtra("aspectX",50%x) 'crop aspects i.PutExtra("aspectY", 50%x) 'crop aspects i.PutExtra("outputX", 50%x) 'crop size i.PutExtra("outputY", 50%x) 'crop size StartActivity(i)
Erel B4X founder Staff member Licensed User Longtime User Feb 26, 2018 #4 You should use it with StartActivityForResult: https://www.b4x.com/android/forum/t...ivityforresult-with-javaobject.40374/#content Upvote 0
You should use it with StartActivityForResult: https://www.b4x.com/android/forum/t...ivityforresult-with-javaobject.40374/#content