Develop simple Gallery app in Android Studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ม.ค. 2025

ความคิดเห็น • 151

  • @benjaminronns
    @benjaminronns 5 ปีที่แล้ว +5

    Please include audio to explain what you are doing.

  • @idodo5634
    @idodo5634 5 ปีที่แล้ว +2

    I got an error when i write (R.Id.gridview)8:00 it cannot find the grindview.
    Can someone help me?

  • @spinnsoulrecordings4774
    @spinnsoulrecordings4774 7 ปีที่แล้ว

    Hi Tihomir if i need to implement touchscreen slide in the full image left and righ zoom in and out, how is the best way? Thank you

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      +Pedro Duarte maybe find some library

  • @anjanajawad6952
    @anjanajawad6952 8 ปีที่แล้ว

    is it necessary that images should be .png ? or will the jpeg format work ?

    • @TihomirRAdeff
      @TihomirRAdeff  8 ปีที่แล้ว

      +anjana jawad I think any image format will work. You can try :)

    • @anjanajawad6952
      @anjanajawad6952 8 ปีที่แล้ว +1

      i tried they are not working only .png supported (i guess) :D . and your tutorials are awesome :D keep the good work :D your tutorials helped me alot with android studio :D waiting for your new video :D

    • @ahmadnazimyahya9859
      @ahmadnazimyahya9859 8 ปีที่แล้ว

      or maybe your name image ? its must small letter i think etc salam.png

  • @ardovich
    @ardovich 8 ปีที่แล้ว

    Tihomir, what could be done to use large images (even photos), but without lagging? Maybe an easy way of creating small thumbnailsfor the GridView - any ideas?

    • @TihomirRAdeff
      @TihomirRAdeff  8 ปีที่แล้ว

      I don't know, maybe with listView

  • @antoberg
    @antoberg 4 ปีที่แล้ว

    Hi, 4 years later this is still perfect. Thanks ! Does someone has an idea about how to add a download button for the pictures ?

    • @TihomirRAdeff
      @TihomirRAdeff  4 ปีที่แล้ว +1

      I think I have tutorial about saving images to storage :)

    • @antoberg
      @antoberg 4 ปีที่แล้ว

      @@TihomirRAdeff I'll watch thanks again

  • @tonymathew9469
    @tonymathew9469 8 ปีที่แล้ว

    @Tihomir: The app either gets slow/crashes when I use 100kb images. Please help me out

    • @TihomirRAdeff
      @TihomirRAdeff  8 ปีที่แล้ว

      Try to use images with lower resolution.

    • @tonymathew9469
      @tonymathew9469 8 ปีที่แล้ว

      Hi Tihomir. Thanks for the reply. Can you make a similar kind of tutorial where the photos are stored in an online database and not in the phone itself? Please. It would really help me a lot

  • @YassineMs
    @YassineMs 8 ปีที่แล้ว

    sorry, i need to authorised the class ImageAdapter in somewhere ?
    because i try in two android mobile but every time i received the message of '' Unfortunately, Application Photo has stopped.''

    • @TihomirRAdeff
      @TihomirRAdeff  8 ปีที่แล้ว +1

      ImageAdapter is one of the classes I create in the video.

  • @careenpala7402
    @careenpala7402 7 ปีที่แล้ว

    how do we swipe the image instaed of just going back to select a new image

  • @tonymathew9469
    @tonymathew9469 8 ปีที่แล้ว

    Hi.I was trying to do the same in a fragment and not in an activity. And it force closes when the gallery section is opened. This is the error that I get: "Attempt to invoke virtual method 'void android.widget.GridView.setAdapter(android.widget.ListAdapter)' on a null object reference ". Please, please , pleasee help me out

  • @nickslobodsky4444
    @nickslobodsky4444 6 ปีที่แล้ว

    What to type in google, when searching for the photos you used ?

    • @TihomirRAdeff
      @TihomirRAdeff  6 ปีที่แล้ว

      round animals icon png

    • @nickslobodsky4444
      @nickslobodsky4444 6 ปีที่แล้ว

      @@TihomirRAdeff OK, and why did you write Integer[] images = {...} ?
      Can't you do it by writing int[] images = {...} ?

    • @TihomirRAdeff
      @TihomirRAdeff  6 ปีที่แล้ว

      Nick Slobodsky I think it's the same

  • @varishali1400
    @varishali1400 6 ปีที่แล้ว

    Where we add resources there every resource is working accept R.drawable.hd008 and R.drawable.hd0023,
    And other resources are working fine do you have any solution?

  • @ramrajput7980
    @ramrajput7980 7 ปีที่แล้ว

    Sir told me in gallery app use smaller size image but i don't know how much smaller pls tell me

  • @saberhalil1501
    @saberhalil1501 5 ปีที่แล้ว

    gridview show image small how can i fix this thanks sir

  • @ParrotMadeInChina
    @ParrotMadeInChina 8 ปีที่แล้ว

    Should the images for this app be all the same size? I tried with different size images, they got overlapped.
    Thanks a lot for your tutorials, they are very helpful for beginners!

  • @ShahrukhKhan-kv6gm
    @ShahrukhKhan-kv6gm 7 ปีที่แล้ว

    i wrote the exactly same code as you wrote but i m getting unfortunetly, gallery has stopped. i also use the small size images but problem has not solved

    • @SrikerSreepathi425
      @SrikerSreepathi425 7 ปีที่แล้ว

      Try to give permission to the app in the app setting

  • @anantharooban3804
    @anantharooban3804 7 ปีที่แล้ว

    Hello brother, i need a help. Its running on Emulator but when copy the apk to mobile its force stopped.

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      Try with smaller images

    • @anantharooban3804
      @anantharooban3804 7 ปีที่แล้ว

      Tihomir RAdeff Ya, I tried Bro.. But still the same as before..

    • @SrikerSreepathi425
      @SrikerSreepathi425 7 ปีที่แล้ว

      Try to give permission to the app in the app setting

  • @SaiKrishna-hf1yl
    @SaiKrishna-hf1yl 6 ปีที่แล้ว

    What is the image resolution iam adding some image it's just showing black image on the screen please can u tell me how to solve it

    • @TihomirRAdeff
      @TihomirRAdeff  6 ปีที่แล้ว

      You should use my new tutorial about gallery. It is in the description of the video. You can use whatever image size you want. Smaller images = better performance = lower quality.

  • @uveysiya
    @uveysiya 7 ปีที่แล้ว

    everything is working except I dont see any images. I can click on some rectangles but no image. what to do?

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      try with smaller images

    • @uveysiya
      @uveysiya 7 ปีที่แล้ว

      Tihomir RAdeff i tried with 256x256 png. shoud they be smaller?

    • @uveysiya
      @uveysiya 7 ปีที่แล้ว

      now I tried with 150x150. still doesn't work. help please.

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      No, I guess you don't need smaller images. Apparently you made some mistake but I don't know where. Check again your code and compare it to the code from the video.

    • @uveysiya
      @uveysiya 7 ปีที่แล้ว

      I found mistake. Sorry for disturbing. :)

  • @muhammadsohailkhan8451
    @muhammadsohailkhan8451 7 ปีที่แล้ว

    sir please tell me how to create next button or swipe in full image activity?

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      Muhammad sohail khan I can't tell you because it is not 2 lines of code. But I have tutorials similar to what you want.

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      th-cam.com/video/1xjhtXA3uv4/w-d-xo.html

    • @muhammadsohailkhan8451
      @muhammadsohailkhan8451 7 ปีที่แล้ว

      thanks alots sir

    • @muhammadsohailkhan8451
      @muhammadsohailkhan8451 7 ปีที่แล้ว

      sir I used grid view and image adapter just like you the video u tell me is different

  • @tusharmaithani3362
    @tusharmaithani3362 7 ปีที่แล้ว

    Brother why we use BaseAdapter and context here

  • @ryanpramana3614
    @ryanpramana3614 7 ปีที่แล้ว

    why when the image is touched the outbound app ??

  • @kawindamadhushanihettiarac9641
    @kawindamadhushanihettiarac9641 8 ปีที่แล้ว +1

    sir I got
    setImageResource
    setScaleType
    setLayoutParams
    Errors How can I reslove it?

    • @TihomirRAdeff
      @TihomirRAdeff  8 ปีที่แล้ว

      +Kawinda Madhushani Hettiarachchi Android Studio should tell you what is your error.

  • @ramrajput7980
    @ramrajput7980 7 ปีที่แล้ว

    Sir pls tell me what size image i choose

  • @Project360shillong
    @Project360shillong 8 ปีที่แล้ว

    Awesome,,, Just what i was looking for... Thanks a lot...

  • @jayarammanikumar229
    @jayarammanikumar229 6 ปีที่แล้ว

    can you make an gallery app using specific folder from internal storage

  • @watcharles19
    @watcharles19 8 ปีที่แล้ว

    I tried this, it works but crashers whenever you put more than 11 photos :/ What dou you think will be the solution? Resizing the photos? Btw the resolution of the pics are 720x1280

    • @TihomirRAdeff
      @TihomirRAdeff  8 ปีที่แล้ว

      +Charlseee I don't know, try using smaller images. :)

    • @watcharles19
      @watcharles19 8 ปีที่แล้ว

      I just fixed it, the problem is the picture's hd resolution so I resized it to lower the quality. Thanks for this video hehe :)

  • @benudharbehera003
    @benudharbehera003 7 ปีที่แล้ว

    Hello Sir
    Tutorial is good but why do not you the features like Zooming and Sliding image after click.

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      +Benudhar Behera here's a link about that: th-cam.com/video/HETZi6Depz4/w-d-xo.html

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      Noor Entertainment th-cam.com/video/HETZi6Depz4/w-d-xo.html

    • @benudharbehera003
      @benudharbehera003 7 ปีที่แล้ว

      I checked the above link but i want all the feature should be a in gallery app like
      images, viewpager and Zooming feature also.
      So if you have any please suggest me...
      thank you

  • @aldogallardo4735
    @aldogallardo4735 8 ปีที่แล้ว

    I do not work applied to fragments.

  • @NathanHeller
    @NathanHeller 8 ปีที่แล้ว

    Great video, Tihomir. How would I alter this to display images from an existing directory in the user's phone?

    • @TihomirRAdeff
      @TihomirRAdeff  8 ปีที่แล้ว

      There is no simple answer. This is an entirely different app. Maybe I'll do video about it. :)

  • @rajatkrishnan4619
    @rajatkrishnan4619 7 ปีที่แล้ว

    hello brother
    At first you are doing a great job by making such types of educational videos.
    But I am facing a problem whenever I am scrolling down the grid view ,the activity crashes down and shut downs forcibly,do you have any solution for this??

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      +Rajat Krishnan maybe you should use recyclerview or listview if you have a lot of images.

    • @rajatkrishnan4619
      @rajatkrishnan4619 7 ปีที่แล้ว

      Tihomir RAdeff same problem brother!!

  • @prathambumb5593
    @prathambumb5593 6 ปีที่แล้ว

    can i load the images from url into the grid

    • @TihomirRAdeff
      @TihomirRAdeff  6 ปีที่แล้ว

      you can see how to download image with this library th-cam.com/video/d2UYCMiT-N8/w-d-xo.html
      and just implement it in the gallery. It's not hard but you need some knowledge in the area. Also for gallery use my new tutorial with the recyclerview instead of gridview.

    • @prathambumb5593
      @prathambumb5593 6 ปีที่แล้ว

      Thank You Sir
      Can You Plz Make Tutorial On It Plz Sir

  • @uveysiya
    @uveysiya 7 ปีที่แล้ว

    Hey man, I tried with bigger pictures. It works. Great job. Can you add swipe when picture is open? Is it hard?

  • @ramrajput7980
    @ramrajput7980 7 ปีที่แล้ว

    When i create only with 10 images its works but when i am adding more its unfortunately my application has stopped pls sir solve this problem

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      There's new method for creating Gallery app. You can try with smaller images or you can try the new video: th-cam.com/video/jGc0LG2MNKA/w-d-xo.html

    • @ramrajput7980
      @ramrajput7980 7 ปีที่แล้ว

      Thank you so much sir

  • @hiraakram1707
    @hiraakram1707 7 ปีที่แล้ว

    I have a problem..whenever i open an image from gridview,it shows the same image every time..anyone can help

  • @xxpodxx
    @xxpodxx 6 ปีที่แล้ว

    not work with large image

    • @TihomirRAdeff
      @TihomirRAdeff  6 ปีที่แล้ว

      I have another tutorial about gallery with Recyclerview

  • @OnyxdoomGaming
    @OnyxdoomGaming 8 ปีที่แล้ว

    Каква е целта на началните подготовки, които правиш на всяко видео? Говоря за изтриването на test директориите и промените по dimens и build.gradle.

    • @TihomirRAdeff
      @TihomirRAdeff  8 ปีที่แล้ว +1

      +Milen Kostadinov Ами тест директориите ги изтривам защото не ги ползвам, а правят приложението и сорс кода му по-големи. За това премахвам и ненужната библиотека от gradle файла. А dimens нещата ги правя на нула за да не ми слагат някакъв ненужен padding в activity-то а всичко да си е на 0. А аз след това ръчно си добавям padding или margin, ако има нужда.

    • @OnyxdoomGaming
      @OnyxdoomGaming 8 ปีที่แล้ว

      Благодаря за разяснението! С нетърпение очаквам нови уроци.

  • @spinnsoulrecordings4774
    @spinnsoulrecordings4774 7 ปีที่แล้ว

    Really Nice Tutorial thank you mate !!!

  • @imamabdulazis6159
    @imamabdulazis6159 6 ปีที่แล้ว

    this tutorial is awesome, succes to you

  • @chiabomasolomonnchula7924
    @chiabomasolomonnchula7924 8 ปีที่แล้ว +1

    i like your tutorials an its awesome

  • @ClaudioJrTsuyosa
    @ClaudioJrTsuyosa 7 ปีที่แล้ว +1

    My gallery is so slow. Do you know how to make its being faster ?

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      Claudio Ramalho try using my new tutorial about creating gallery. It has better performance. Just look for it in my channel.

    • @ClaudioJrTsuyosa
      @ClaudioJrTsuyosa 7 ปีที่แล้ว

      Ok i'll search for it

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      Claudio Ramalho here's the link th-cam.com/video/jGc0LG2MNKA/w-d-xo.html

    • @ClaudioJrTsuyosa
      @ClaudioJrTsuyosa 7 ปีที่แล้ว

      Can I use the method to open the image in another Acitivity?

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      Claudio Ramalho yes

  • @fitavatar5079
    @fitavatar5079 6 ปีที่แล้ว

    How to put my ad in it?

    • @TihomirRAdeff
      @TihomirRAdeff  6 ปีที่แล้ว

      Fit Avatar I have video about this in my channel.

  • @bilalmirza9118
    @bilalmirza9118 7 ปีที่แล้ว

    Error:(51, 18) error: non-static method setImageResource(int) cannot be referenced from a static context

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      Bilal Mirza you missed something. watch the video again and compare to your code.

    • @bilalmirza9118
      @bilalmirza9118 7 ปีที่แล้ว

      i watched the video again & compare the code but still getting the error? can u tell me??

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      Bilal Mirza I can't tell you. I don't know what you wrote.

  • @ramrajput7980
    @ramrajput7980 7 ปีที่แล้ว

    Hello sir my gallery app unfortunately stopped how can i solve this problem

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      There's new method for creating Gallery app. You can try with smaller images or you can try the new video: th-cam.com/video/jGc0LG2MNKA/w-d-xo.html

  • @AbdSab193
    @AbdSab193 7 ปีที่แล้ว

    A clean tutorial thank's a lot it helped me :D

  • @funwithwibe
    @funwithwibe 8 ปีที่แล้ว

    thnks man really great video

  • @ramrajput7980
    @ramrajput7980 7 ปีที่แล้ว

    Sir how can make category wallpaper app pls make a tutorial..

  • @elbek_allayorov
    @elbek_allayorov 4 ปีที่แล้ว

    Can you share source code of this app?

  • @RohitGupta-eg3kh
    @RohitGupta-eg3kh 5 ปีที่แล้ว +1

    Awesome

  • @rosierjeffrey
    @rosierjeffrey 8 ปีที่แล้ว

    nice video! can you show how to make a video app or video player?

    • @TihomirRAdeff
      @TihomirRAdeff  8 ปีที่แล้ว

      +jeffrey rosier maybe in the future I'll show how to make video app :)

    • @rosierjeffrey
      @rosierjeffrey 8 ปีที่แล้ว

      Ok thank you

    • @rosierjeffrey
      @rosierjeffrey 8 ปีที่แล้ว

      Would would you use as a database if the app allowed a user to put their photos?

    • @rosierjeffrey
      @rosierjeffrey 8 ปีที่แล้ว

      *What

    • @TihomirRAdeff
      @TihomirRAdeff  8 ปีที่แล้ว

      +jeffrey rosier maybe SQLite

  • @gagandeep-xh5wm
    @gagandeep-xh5wm 7 ปีที่แล้ว

    how i can get its source code

  • @ramrajput7980
    @ramrajput7980 7 ปีที่แล้ว

    Sir pls tell me imge size

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      +Ram Rajput I don't know. Test with different sizes. It depends on the device. But as I said the new tutorial is better.

    • @ramrajput7980
      @ramrajput7980 7 ปีที่แล้ว

      Ok sir i will wait

  • @BoxexasFerrarii
    @BoxexasFerrarii 7 ปีที่แล้ว

    perfect!!! great job!

  • @ramrajput7980
    @ramrajput7980 7 ปีที่แล้ว

    Hello sir i solved my problem now i am accessing more images easily..

  • @harshilsethi9962
    @harshilsethi9962 7 ปีที่แล้ว

    Nice Tuto, but can you give us a link where we can download this funny pics of animals please.

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      I found them on Google. Search for round animals images png.

    • @harshilsethi9962
      @harshilsethi9962 7 ปีที่แล้ว

      Thanks buddy

  • @lifeofhiren
    @lifeofhiren 6 ปีที่แล้ว

    You really did my work

  • @godisgreat3014
    @godisgreat3014 7 ปีที่แล้ว

    amazing stuff like this.

  •  6 ปีที่แล้ว

    clearly! Thanks guy

  • @adnad8458
    @adnad8458 8 ปีที่แล้ว

    Обичам клиповете

  • @varishali1400
    @varishali1400 6 ปีที่แล้ว

    Great tutorial but I have issue in
    (Solved) thankyou very much for this awesome tutorial, thankyou
    ImageAdapter.java
    There's a line imageView.setImageResource(images[position]) in there positions is showing in red colour getting error

    • @TihomirRAdeff
      @TihomirRAdeff  6 ปีที่แล้ว

      in "View getView(int position..." yours can be different. Look what name has this variable in your code.

  • @ramrajput7980
    @ramrajput7980 7 ปีที่แล้ว

    Thanks sir Recycleview i am created

  • @subharajagopal2390
    @subharajagopal2390 7 ปีที่แล้ว

    very usefull

  • @magvisarteaga4249
    @magvisarteaga4249 8 ปีที่แล้ว

    explica un poco mas porque no me funciona
    hey intentado varias veces he igual ademas faltan muchas cosas ayi para explicar
    espero que sepas conprender .. ha y tienes que poner tu audio para saber donde estas asiendo (y)

  • @zirkone91
    @zirkone91 8 ปีที่แล้ว

    Thenks men, my funccion exelent!!!

  • @lifeofhiren
    @lifeofhiren 6 ปีที่แล้ว

    Thx bro

  • @vudan8297
    @vudan8297 7 ปีที่แล้ว

    Download as many large-scale applications stopped

  • @muhammadssempala5143
    @muhammadssempala5143 6 ปีที่แล้ว

    Thats not a gallery app a gallery app gets pics from the phone storage not drawable folder . . Wat a waste of time

    • @TihomirRAdeff
      @TihomirRAdeff  6 ปีที่แล้ว

      then what is this?

    • @muhammadssempala5143
      @muhammadssempala5143 6 ปีที่แล้ว

      @@TihomirRAdeff its an image viewing app

    • @TihomirRAdeff
      @TihomirRAdeff  6 ปีที่แล้ว +1

      @@muhammadssempala5143 in other words it's a gallery. Doesn't matter if it gets the images from storage or the app itself. It's still a gallery. If it is not useful for you, ok. But some people want to make just wallpaper app for example with build in images. There are a lot kinds of galleries and this is just one of them.

    • @muhammadssempala5143
      @muhammadssempala5143 6 ปีที่แล้ว

      @@TihomirRAdeff you know those two are completely different different

    • @muhammadssempala5143
      @muhammadssempala5143 6 ปีที่แล้ว

      @@TihomirRAdeff whats hes doing can be done by anyone .. a real gallery is somewhat more complicated so he confused me with the title there. ..not what i expected