gallery

How to make sort gallery thumbnails image by date

纵然是瞬间 提交于 2019-11-30 18:55:34
问题 I am developing an android applicaiton. This application get all thumbnail images from gallery. I want to sort these thumbnails by date, but I can't do it. Please help me. Get all images // Set up an array of the Thumbnail Image ID column we want String[] columns = {MediaStore.Images.Media._ID}; String orderBy = MediaStore.Images.Thumbnails._ID + " DESC LIMIT 10"; // Create the cursor pointing to the SDCard cursor = getActivity().managedQuery(MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI,

Android 4.3 crop gallery resultCode Cancel

会有一股神秘感。 提交于 2019-11-30 16:09:46
My Galaxy Nexus is now running on Android 4.3 allowing me to test my application with this new version. Everything seems fine except cropping. I have an application that uses the camera to take picture and then crop the image through the gallery app. I am also able to choose a picture from the gallery and crop it after. Since Android 4.3, the gallery application changed. If i take a picture with the camera api and then ask the gallery to crop it in my onActivityResult method the resultCode is set to 0 (meaning cancel) whereas i clicked on "Save" from the crop view. But if i choose a picture

How to empty or clear heap memory dynamically in my code

不羁岁月 提交于 2019-11-30 14:12:11
In my application i am using simple gallery and the coverflow both i have my coverflow image gallery on image clicked in coverflow i am redirected to next activity that contents full screen gallery and i can even scroll my fullscreen gallery ; but when i put more amount of image or high resolution images in my app it get force closed due to Bitmap size exceeds VM budget so i want to clear heap memory every time i finish my cover flow and gallery so i can load any amount or any resolution image in my app so if any one can help me out ... How to clear/empty heap memory every time when i finish

Android: How to query a list of bucket name

£可爱£侵袭症+ 提交于 2019-11-30 08:56:10
I want to retrieve only the name of the bucket (Albums). E.g. Camera, Download etc but not a list of Camera, Download etc from all the the photos so how do I retrieve one row each for each bucket name? What I mean like in Gallery Application, you have albums first e.g. Camera. When you clicked on it, it show all the photos of the camera. I can query the photos in a Camera Roll with the Where clause of the query. But what if I wanted only the name of each of the albums' name and not the photos, is it possible to query that? If I query all the photos and take only one row per set of photos, then

Android Display Images From Specific Folder in Gallery View

偶尔善良 提交于 2019-11-30 08:37:25
问题 I'm trying to make a little app that displays only images from a specific folder in a gallery view. I have found a few examples, but every single one just ends up displaying only 1 image. This example I will post below was a WONDERFUL help, it does almost exactly what I want it to do, I just need to change it to display images from the specific folder, and not all folders. I've given this a few days worth of attempts, but I just don't seem to be adding in the right code. I feel like its a

Gallery default item selected is in center [duplicate]

◇◆丶佛笑我妖孽 提交于 2019-11-30 07:26:50
Possible Duplicate: android gallery image position problem I'm using Gallery view within my app. Now when I run the code. Gallery has default selected item is no 1 which is in center and left side is blank. Instead I want no 1 item should be at left and selected. Also clicking on the any gallery item should not bring that item in the center. I tired hunting it lot on the groups but not found any solution. Is this possible or not ? If yes then how come? hey, I kinda got around the very same issue with adjusting the left margin like so: DisplayMetrics metrics = new DisplayMetrics(); ctx

android: how to hide folder from appearing in the Gallery

三世轮回 提交于 2019-11-30 07:23:21
问题 I have an application that creates a folder in the sd-card. After that, I do several operations which may result in storing different media files, graphics in my folder. The problem is that this folder is then visible in the Gallery section which is not appropriate. How can I hide the folder or the contents of my folder from appearing in the Gallery? Looking forward for a response Thanks 回答1: Put a file named .nomedia in the folder. This can be a zero-byte file if you want -- the name is what

Facebook API - How to access my photo album?

天涯浪子 提交于 2019-11-30 04:46:48
问题 I want to display photos from my Facebook albums on a website. What would be good way to achieve it? Do I need oAuth authentication or can I just somewhere grant my website or application access to my albums? I don't want to have a Facebook login or auth dialog on my website. 回答1: What you need to do: Change your privacy settings to that everyone can see your photos. And add permissions for you Facebook application for your user account. Authenticate and retrieve access token through OAuth,

How to empty or clear heap memory dynamically in my code

橙三吉。 提交于 2019-11-29 20:47:13
问题 In my application i am using simple gallery and the coverflow both i have my coverflow image gallery on image clicked in coverflow i am redirected to next activity that contents full screen gallery and i can even scroll my fullscreen gallery ; but when i put more amount of image or high resolution images in my app it get force closed due to Bitmap size exceeds VM budget so i want to clear heap memory every time i finish my cover flow and gallery so i can load any amount or any resolution

Mosaic Grid gallery with dynamic sized images [closed]

只愿长相守 提交于 2019-11-29 18:35:32
I have just received the following design for a project, for an image grid gallery, with dynamic width & height images (user submitted images). (Screenshot at the end of post) I have tried jQuery Masonry , Tympanus Automatic Image Montage and CSS-Tricks Seemless Responsive Photo Grid , but each has their limitation. Jquery Masonry allows for both width and height to be dynamic, however there are gaps generated The latter 2 scripts, generate very nice grids, but with the problem that either width or height must be static EDIT: i came across, Isotope , which is almost perfect and i will probably