It is deprecated from some time, you may use the following updated method to handle intent results ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-tUCfIK908i8.html
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
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
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
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
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.
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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7mJvHLelB1s.html SharedPreferences Kotlin: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-z2PDwa7l_ww.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.