Since Enomther ported HTC camera to Nexus, one issue was plaguing it. The same issue is present for Desire users that like Gallery3D.
The default sort for folders in Gallery3D is ascending - the oldest photo is shown first, the newest is last. But since it's not comfortable for the "Camera" folder, in which you want to see the last made photo without scrolling to the end, it (and also "download" folder) is sorted descending - the latest photo shows on top.
When you use HTC Camera (or just happen to have Desire), it saves photos under 100MEDIA folder, which is sorted ascending, like any regular folder. And looking at the last taken photo becomes a long task.
So, to save HTC Camera users the pain, I've modified the Gallery3D. The default camera folder always shows in Gallery as "Camera", on the top of the list, and is sorted descending. I've adjusted it to suit the different actual folders.
Update log
v0.3
Changed to Edify scripting for installation on Clockworkmod 3.x.
v0.2
- Rebased Gallery3D on Cyanogen repo - performance increases and high-res patch built in.
- Single file for both stock and HTC Camera.
- If directory "DCIM/100MEDIA" exists on SD card, Gallery assumes HTC Camera mode, using 100MEDIA as default Camera folder. If not - it uses the regular Camera folder.
v0.1
- Based on Froyo AOSP repo, 2.2.1.
- Two versions: for stock Camera and for HTC Camera.
- Added high resolution Gallery3D patch by Number22.
- For HTC Camera version - Changed the Gallery3D to use "100MEDIA" as the default Camera folder.
Instructions
Flash corresponding ZIP in recovery. It refreshes the thumbnails (erases /sdcard/Android/data/com.cooliris.media) upon flash.
HTC Camera users on Nexus ROMs: if you have any photos left in your default "Camera" folder, you'll see 2 "Camera" folders in Gallery - one with camera icon and one with folder icon. To avoid confusion, please rename "Camera" folder to "OldCamera" before flashing or before running, or move the photos from there to "100MEDIA" folder.
Thanks go to Number22 for high res patch, Cyanogen for higher Gallery3D performance.
Source
Line 47, replace with:
Line 53, add:
The default sort for folders in Gallery3D is ascending - the oldest photo is shown first, the newest is last. But since it's not comfortable for the "Camera" folder, in which you want to see the last made photo without scrolling to the end, it (and also "download" folder) is sorted descending - the latest photo shows on top.
When you use HTC Camera (or just happen to have Desire), it saves photos under 100MEDIA folder, which is sorted ascending, like any regular folder. And looking at the last taken photo becomes a long task.
So, to save HTC Camera users the pain, I've modified the Gallery3D. The default camera folder always shows in Gallery as "Camera", on the top of the list, and is sorted descending. I've adjusted it to suit the different actual folders.
Update log
v0.3
Changed to Edify scripting for installation on Clockworkmod 3.x.
v0.2
- Rebased Gallery3D on Cyanogen repo - performance increases and high-res patch built in.
- Single file for both stock and HTC Camera.
- If directory "DCIM/100MEDIA" exists on SD card, Gallery assumes HTC Camera mode, using 100MEDIA as default Camera folder. If not - it uses the regular Camera folder.
v0.1
- Based on Froyo AOSP repo, 2.2.1.
- Two versions: for stock Camera and for HTC Camera.
- Added high resolution Gallery3D patch by Number22.
- For HTC Camera version - Changed the Gallery3D to use "100MEDIA" as the default Camera folder.
Instructions
Flash corresponding ZIP in recovery. It refreshes the thumbnails (erases /sdcard/Android/data/com.cooliris.media) upon flash.
HTC Camera users on Nexus ROMs: if you have any photos left in your default "Camera" folder, you'll see 2 "Camera" folders in Gallery - one with camera icon and one with folder icon. To avoid confusion, please rename "Camera" folder to "OldCamera" before flashing or before running, or move the photos from there to "100MEDIA" folder.
Thanks go to Number22 for high res patch, Cyanogen for higher Gallery3D performance.
Source
Line 47, replace with:
Code:
public static final String CAMERA_STRING = getCameraName();
Code:
public static String getCameraName() {
if ((new File(Environment.getExternalStorageDirectory().toString() + "/DCIM/" + "100MEDIA")).exists()) {
return "100MEDIA";
}
return "Camera";
}
Attachments
Last edited: