Capture Image & Display in ImageView | Android App Development Tutorials | Part 1

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 82

  • @opaapa4180
    @opaapa4180 3 года назад

    Sorry never said this to a free video publisher but this was not beginner friendly at all. I appreciate you tho for posing it keep it up

  • @TalhaAbbas-ty5dl
    @TalhaAbbas-ty5dl Год назад

    Good yar

  • @annisanurfirdausi9960
    @annisanurfirdausi9960 2 года назад

    Thank youuu, it's worked perfectly !!!

  • @nwcoder
    @nwcoder Год назад

    Informative video❤

  • @paragbharadia2895
    @paragbharadia2895 2 года назад

    thanks a lot, Very interesting & helpful video! buddy!

  • @erikbrandt3956
    @erikbrandt3956 2 года назад +2

    Great tutorial, only issue I have is that on OnRequestPermissionsResult() and onActivityResult() I can't remove the "super" in the beginning of the methods. If I add them no issue. Any thoughts on it?

  • @chobelakakumbi6747
    @chobelakakumbi6747 2 года назад +2

    Thanks for this tutorial. In 2022, startActivityForResult(camera, CAMERA_REQUEST_CODE);
    startActivityForResult is deprecated. What is the work around?

  • @songwriterjo3789
    @songwriterjo3789 3 года назад

    this is the best thanks

  • @royalagent2113
    @royalagent2113 2 года назад +2

    i've tried this but when i get the image the resolution was 250 x 187, how can i get a original resolution?

  • @Dtomper
    @Dtomper 2 года назад

    Thank you so muuuuuuuuch

  • @fred273
    @fred273 Год назад

    Thank you.

  • @uyandanxumalo8242
    @uyandanxumalo8242 4 года назад

    Thank You so much, it worked very well...

  • @divyeshponkiya6027
    @divyeshponkiya6027 4 года назад

    Thank You , very help full tutotial !!!

  • @gowdhampr9570
    @gowdhampr9570 4 года назад +1

    Neat and clean tutorial, keep it up!
    All the best

  • @SwagatKumarIndia
    @SwagatKumarIndia 2 года назад

    Great video. I could recreate this on my moto G play (android 10). However, it says the function 'startActivityForResult' is deprecated. Is there any updated function for this?

  • @rakshitchhetri3033
    @rakshitchhetri3033 3 года назад

    Helpfull !!

  • @francoiniego6821
    @francoiniego6821 Год назад

    Sir,...is there a kotlin tutorial on this? thanks

  • @PAOLOSPORTING
    @PAOLOSPORTING 4 года назад

    Tnx. Very Helpful.

  • @Zomoroda89
    @Zomoroda89 Год назад

    thank you ,but how can i store it in a local satabase please

  • @andriikravchuk9217
    @andriikravchuk9217 4 года назад +1

    Thank you, that great tutorial)

  • @yadavyash252
    @yadavyash252 3 года назад

    Camera button is not working after this part of the video, please provide any solution. I had tried everything which was present in comment section, but still the camera button is not working in the end of the project.

  • @ankurtomar3994
    @ankurtomar3994 4 года назад +1

    with your code capture image through camera button is not responding pls help

  • @dmnjeetsingh1
    @dmnjeetsingh1 3 года назад

    bro thanks a lot this tutorial can u help me to send a code select image from gallery and send it to next activity

  • @masbro1901
    @masbro1901 4 года назад +2

    16:42 that "get"may produce NullPointerException.

  • @shivendrasingh2823
    @shivendrasingh2823 3 года назад

    Can we add gallery button option to any other app in mobile who is having only camera button

  • @tnnz9920
    @tnnz9920 3 года назад

    Can make the capture from photo to recycler view?

  • @shykatemam1529
    @shykatemam1529 3 года назад +3

    my "onActivityResult" stays red and gives a warning why??

    • @sheryntan3223
      @sheryntan3223 3 года назад

      I encountered the same problem too! Would greatly appreciate it if you share with me, how you resolved the issue!! Thanks a lot

    • @Zombicorn95
      @Zombicorn95 3 года назад

      could you solve it?

    • @shykatemam1529
      @shykatemam1529 3 года назад

      no

    • @Zombicorn95
      @Zombicorn95 3 года назад +1

      @@shykatemam1529 Solved it. In case you need it. Just needed to add super.onActivityResult(requestCode, resultCode, data);
      Like this:
      @Override
      protected void onActivityResult (int requestCode, int resultCode, @Nullable Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      if (requestCode == CAMERA_REQUEST_CODE) {
      Bitmap image = (Bitmap) data.getExtras().get("data");
      selectedImage.setImageBitmap(image);
      }
      }

    • @Jimil_soni
      @Jimil_soni Год назад

      The method is deprecated in latest android version

  • @ankxnjst
    @ankxnjst 2 года назад

    Someone knows if this code still works in Android 10 and higher?

  • @kifahnemer8652
    @kifahnemer8652 3 года назад

    hello when i use selectedImage it shows an error to create local variable or something how can i solve this

  • @damiandeligdisch822
    @damiandeligdisch822 4 года назад

    Hello, can you use Sourcelabs to take a photo, with this code?

  • @aamirkamaal7052
    @aamirkamaal7052 3 года назад

    Startactivityforresult deprecated aarha hai please reply kare do din se solve nhi ho rha hai

  • @Miguel46001
    @Miguel46001 4 года назад

    How can i put the image on a list view or recycler view?

  • @sushmareddy859
    @sushmareddy859 2 года назад

    can we get a git hub linkfor this code

  • @hmodexl
    @hmodexl 3 года назад

    how can i get uri of that image ?

  • @virtiparekh1394
    @virtiparekh1394 4 года назад +1

    when i m clicking camera button but i m unable to open camera , i given all the permission in manifest file.Can you solve ?

  • @benjamintogonon3294
    @benjamintogonon3294 4 года назад

    Hi sir, why is it when i try to put the uri the same as yours the app shutdown.

  • @DilpreetSingh-pd6co
    @DilpreetSingh-pd6co 3 года назад +1

    i want to capture image in full HD

    • @SmallAcademy
      @SmallAcademy  3 года назад

      checkout this documentation developer.android.com/guide/topics/media/camera

  • @georgealbo
    @georgealbo 2 года назад

    OnrequestPermissionsResult Deprecated

  • @bhushan2k
    @bhushan2k 3 года назад

    Where is part 2?

  • @hakemmrl
    @hakemmrl 3 года назад

    why i cant select startActivityForResult() ?

  • @rajkumar-od6lu
    @rajkumar-od6lu 3 года назад

    Hi sir can u do it in fragment sir plssss....... 🙏

  • @gloirakim1158
    @gloirakim1158 4 года назад +2

    Thank you for your great tutorial! Somehow, the captured image does not show on the main screen, and instead, I still see the grid green screen for image view. Do you have any idea how I can solve this problem? Thanks in advance!

    • @lukeares1165
      @lukeares1165 3 года назад

      Not sure if anyone cares but if you're stoned like me atm you can stream pretty much all of the latest movies and series on instaflixxer. Have been watching with my brother these days xD

    • @iramanuel3377
      @iramanuel3377 3 года назад

      @Luke Ares Yup, I have been watching on instaflixxer for years myself :)

    • @blazeowen1135
      @blazeowen1135 3 года назад

      @Luke Ares yup, been using instaflixxer for years myself :D

  • @waheedg1644
    @waheedg1644 3 года назад

    This is not getting the image in android 11

  • @NaufalHawari_
    @NaufalHawari_ 4 года назад

    what is CAMERA_PERM_CODE?

  • @sialeeMK
    @sialeeMK 4 года назад

    Thank you, sir, can you show us how to capture or get a high-quality image ?

    • @SmallAcademy
      @SmallAcademy  4 года назад

      Please watch all the video on this series.

  • @ulikulis196
    @ulikulis196 4 года назад

    How get to bitmap fullsize photo?

  • @ashruaa
    @ashruaa 4 года назад

    Who’s here form vanoss

  • @amirinyoutube
    @amirinyoutube 4 года назад

    Didn't worked! I don't know why Can`t open the camera and Gallery!

  • @zahrazaidi4095
    @zahrazaidi4095 4 года назад

    where is source code there are many folders

  • @georgealbo
    @georgealbo 2 года назад

    startActivityForresult deprecated function

  • @vijayjaiswal120
    @vijayjaiswal120 4 года назад

    how to get date and time of image capture

  • @leandrosistemavs1043
    @leandrosistemavs1043 4 года назад

    in kotlin?

  • @gunjanbansal2860
    @gunjanbansal2860 4 года назад

    my image size is very very small

    • @SmallAcademy
      @SmallAcademy  4 года назад

      You can change the sizes from imageview layout

    • @gunjanbansal5732
      @gunjanbansal5732 4 года назад

      @@SmallAcademy i have given match parent

    • @alainleclerc4523
      @alainleclerc4523 3 года назад

      scaleType="centerCrop" in imageView attributes

  • @piyasidey2117
    @piyasidey2117 6 месяцев назад

    Thank you.