Initially I disliked the video as my app kept on crashing. As a last resort, I went carefully with each and every steps in the video and it solved my problem (Initially I initialised mImageView in declaration itself but later adopted the way in this video). Good job indeed.
IMAGE_PICK_CODE = 1000 PERMISSION_CODE=1001 There is actually no restrictions you can assign them any number but assign different numbers to both. They are used as just tags/labels. There can be more then one permission handling OR Intents, so we have to identify them, differentiate them
The code is good but when the app is closed and again it is opened the image is empty to solve this problem i used shared preference method but i am not able to store image it is showing blank could you please help me to solve this problem
Your tutorials are pretty amazing. Could you be so kind to add your voice in the video. Bhallay urdu main samjhado but samjhao k yeh kia karta hai and woh kia karta hai. Please because is se ham jese (who can't afford aptech or etc) woh seekh saken. Thanks
Great Video. When I add an image from the gallery, the imageview height and width changes. How do I keep the height and width fixed even after the image is added?
bhai your code is excellent and its works too. but the only thing i want to know is when i sets the Image and close the app and restart it the img i sets doest appear on it . so can you suggest something from which image fix to it unless i again make choice from my gallery
@@AtifSayings can you please explain it or make a video of it? I'm trying this all day long with Glide but it didn't work and how do I store the url ? putString right ? then parse it back to uri then send it ?
@@imransefat8770 You just need to learn SharedPreferences, after that store URI in shared preferences and get that stored uri from the SharedPreferences. SharedPreferences Java: th-cam.com/video/7mJvHLelB1s/w-d-xo.html SharedPreferences Kotlin: th-cam.com/video/z2PDwa7l_ww/w-d-xo.html
Sir , great video ! My question is how to put images in gallery as my gallery is empty when I choose pick image button in my emulator ? Your reply would be very helpful for my project
On your actual phone/device use the Google Photos app. Select a picture that you want to access from the emulator and then choose the upload icon (cloud symbol). If your emulator is setup with the same google account that your actual phone is set up with, it should appear when using the Google Photos app on your emulator. I hope this helps. I haven't finished the tutorial yet myself.
Hello do you know how to modify an app to make this function "pick image from gallery" working on an app that let's you only take pictures from camera even if I installed gallerycam or other similar app.. ? Thx
How to make my application receive images from another application, for example, the images that come to WhatsApp transfer it directly from the share option to the imageview of my application. Please someone could help me or some tutorial that I can review.
Bhai Mera gallery ka option dikha he hi reha h drive,WhatsApp,Instagram & SIM tool . Surf ye 4 option dikha reha h or next pic choose krte he pichle wale gayab hi rehe h tooo left or right swipe bhe nhi hi reha h Bilkul ditto same banaya h Kuch bhe change nhi Kiya mane Batyo kya Kru ma ab
This is the most clear explanation I've found so fan and I've searched ALOT , Thanks man 👍 .
You're welcome 😊
Thank you, Atif. برك الله فيك
Thank you... It was a good tutorial... Everything was clear even if there was no sound.
THANK YOU SO MUCH!!!! ITS THE ONLY VIDEO THAT HAS WORKED FOR ME
You're welcome
There is wisdom in the simplicity.
Simply and Awesome video bro., 100% working perfectly. THankyou alot bro. It helped me lot.❤
You're welcome
Best of luck
keep up the good work!
thank you for sharing your knowledge^^
Thanks for this!
You're welcome
You're the best
Дякую за відео)))
startActivityForResult is now deprecated.. how do i go about this?
did u found something?
@@rafaelcabral6748 did you found something?
Best tutorial works 100%
at 10:21 what did you do or press to have that come up?
If you're talking about "Move" popup/dialog box, then it was unintentionally opened and i pressed cancelled button there was nonuse of that
I am getting deprecated text for startactivityforresult... can you suggestions me some alternative ???
did u found something?
@@rafaelcabral6748 did you found something?
at the onActivityResult() I can't delete the super call, it is forcing me to add the super call. It's not working for me please help
There shouldn't be issue due to adding super call
Work perfectly, very good tutorial and Thanks~
You're welcome
This video is simple and amazing.
i want to how to make an app which helps to open more than 1 photos
my be to convert as pdf
please tell how
th-cam.com/video/zhhhc1o2opE/w-d-xo.html
why is startActivityForResult crossed in my project? :(
It is deprecated from some time, you may use the following updated method to handle intent results
th-cam.com/video/tUCfIK908i8/w-d-xo.html
hmm, after giving permission to use the external storage, my app keeps restarting, any idea on what is the cause?
i think your app is crashing so check logcat/run for crash reason
@@AtifSayings thanks i already fixed it, just forgot to update :) was a syntax error
@@ruphaeldereuck921 did any of your methods say that they are deprecated?
Really Perfect contents. Thank you~
You're very welcome!
Thanks from Ukraine, subscribe.
Initially I disliked the video as my app kept on crashing. As a last resort, I went carefully with each and every steps in the video and it solved my problem (Initially I initialised mImageView in declaration itself but later adopted the way in this video). Good job indeed.
how can we display the image of particular folder not the entire gallery
can u explain to me the image__pick_code and permission code. why is it set to 1000?
IMAGE_PICK_CODE = 1000
PERMISSION_CODE=1001
There is actually no restrictions you can assign them any number but assign different numbers to both.
They are used as just tags/labels.
There can be more then one permission handling OR Intents, so we have to identify them, differentiate them
Image not show after select from gallery on activity result condition says always false why??
Sorry my mistake it works perfectly thanks
Ok. You're welcome
The code is good but when the app is closed and again it is opened the image is empty to solve this problem i used shared preference method but i am not able to store image it is showing blank could you please help me to solve this problem
Same problem here
Чувак, ты просто спас мою задницу !! Спасибо тебе
Your tutorials are pretty amazing. Could you be so kind to add your voice in the video. Bhallay urdu main samjhado but samjhao k yeh kia karta hai and woh kia karta hai. Please because is se ham jese (who can't afford aptech or etc) woh seekh saken. Thanks
Thanks for suggestion but their are some reasons for not recording my voice the one is too much noise.
Nice and clean code again. good job, keep doing this Atif :)
You're welcome
It askd me to add the super call in onActivityResult what do i do ?
add
thank you so much
,,you saved my time :)
thank you very much it really helped me
you're welcome
startActivityForResult isnt working for me, the function is deprecated
Great Video. When I add an image from the gallery, the imageview height and width changes. How do I keep the height and width fixed even after the image is added?
Mere bhe same dikat aa rehe h Bhai😑😑😑😑
Search *Circular image library github*
bhai your code is excellent and its works too. but the only thing i want to know is when i sets the Image and close the app and restart it the img i sets doest appear on it . so can you suggest something from which image fix to it unless i again make choice from my gallery
if you want to make the image available whenever you open the app, store the URI of the image in shared preferences after taking from the gallery.
@@AtifSayings can you please explain it or make a video of it? I'm trying this all day long with Glide but it didn't work and how do I store the url ? putString right ? then parse it back to uri then send it ?
@@imransefat8770 You just need to learn SharedPreferences, after that store URI in shared preferences and get that stored uri from the SharedPreferences.
SharedPreferences Java: th-cam.com/video/7mJvHLelB1s/w-d-xo.html
SharedPreferences Kotlin: th-cam.com/video/z2PDwa7l_ww/w-d-xo.html
How can we implement it in RecyclerView??
Respect Bro thanks
bohot sahi sir
how we can throw exception for big size of image?
i found problem with big size
Thank you!
You're welcome
hello thanks for the tuto, but please the image is nor shown after selecting an image from the gallery why?
you may have done mistake in onActivityResult method, check it
Sir how to implement this code in fragment
compatible with fragment too
Bhai project has to be run but not open gallery only showing toast msg
if we want to add this image in a listview
how do it ,tnx
Use database like Sqlite or Realm
I've made videos on SQLite
Thank you very much.
Sir , great video !
My question is how to put images in gallery as my gallery is empty when I choose pick image button in my emulator ? Your reply would be very helpful for my project
On your actual phone/device use the Google Photos app. Select a picture that you want to access from the emulator and then choose the upload icon (cloud symbol). If your emulator is setup with the same google account that your actual phone is set up with, it should appear when using the Google Photos app on your emulator. I hope this helps. I haven't finished the tutorial yet myself.
atif atif atif, tnx ;)
Hello do you know how to modify an app to make this function "pick image from gallery" working on an app that let's you only take pictures from camera even if I installed gallerycam or other similar app.. ?
Thx
So how can I draw on that imageview?
How could I implement this multiple times?
for picking multiple images?
@@AtifSayings More like having multiple Image View's. But yeah
When I click on button it always says "permission denied..." do you know why that is happening?
open the manifests folder, then open the AndroidManifest and Add this tag:
Please also make video on how to upload img on firebase and get this img url
th-cam.com/play/PLs1bCj3TvmWlWGW8rkWq5gZ7URswu8MWb.html
Atif bhai it would be pretty for us to see the code on (github) instead of typing it ourselves.
Thanks in advance
Typing is good for practice
And to support me watch full video :)
how to do it, if we want to pick a video from gallery.
use VideoView and in intent use intent.setType("video/*");
How to make my application receive images from another application, for example, the images that come to WhatsApp transfer it directly from the share option to the imageview of my application. Please someone could help me or some tutorial that I can review.
Bhai Mera gallery ka option dikha he hi reha h drive,WhatsApp,Instagram & SIM tool . Surf ye 4 option dikha reha h or next pic choose krte he pichle wale gayab hi rehe h tooo left or right swipe bhe nhi hi reha h
Bilkul ditto same banaya h Kuch bhe change nhi Kiya mane
Batyo kya Kru ma ab
Sir.. Can you please make an vedio for Pick multiple images from gallery in android studio .. Please
Where can I get this code?
devofandroid.blogspot.com/2018/09/pick-image-from-gallery-android-studio.html
gallery say image select krny kay bad imageView pr image upload ni ho rhi code may error b koi ni hai
check your onactivityresult method
Mera b same yahi issue araha ha😕😕
I am choosing the image but i can not see the image at logo
good tutorial buddy, i wanna ask i want to add button to delete image , how do that ?
PERMISSION_CODE is not working. How to solve this?
Thanks man
You're welcome!
boss can teach me how to draw on imageview
Bhai itne saare to errors hai.. run kese kar lia?
Is it just me or your audio has been removed
thank youu
You're welcome!
Why does the image do not show?
Same problem
Check your onacitivityresult condition properly
incompatible types. Required: android.widget.Button Found: android.view.View
thanks for the video and how we can Edith this image like Image editor , Make complete Image editor app
You're welcome
I'll try
thanks
how to save photo even after I close my app?
@P Dillon I just created a temporary file in external storage and get that file's path and save it as a bitmap
that worked
in jelly and marsh ok
Too bad it doesn't work
what is the issue?
please in android oreo no working please tutorial
i just hope u just give the code to save us time.
Access denied
bahut tatti tha
Thank you so much.
You're welcome
Thanks man