[Desire Themes and Apps] Number22:
Development stopped

Although this mod had great success with several thousands of different users, just as everything else, it has been surpassed by time. Since it was first introduced, many competent devs made great changes to the Gallery3D's functions. These changes made it hard to keep up with the latest developments without introducing bugs, and due to the lack of time, I might have neglected it sometimes. Luckily, this mod has already been in CyanogenMod for a while, meaning all of it's users got the latest and greatest of this mod, as well as others. So instead of patching the Gallery manually, check out the latest version of CyanogenMod.

If you want to use this in other custom ROMs, either point your devs to this post and ask them to compile in the relevant changes from the github link, or extract the apk from the latest CyanogenMod since it will contain many more fixes and performance improvements that have been added in the last few months.

Thanks to all who contributed to this project!

__________________

​

UPDATE 12.2.2011.

Well, thanks to user de_MarK, the black borders problem has now been fixed! Should be working on most devices without any problems.

Thanks again!

[Comparison]

Here is a demo of how this will improve your images if you don't touch VMMaxHeapSize. If you do increase the former, expect even better results.

I found an image of a transmitter on top of a building to be best for comparison since it has very high contrast and sharp lines. Screenshots were taken off my Desire using DDMS.

http://img576.imageshack.us/img576/9451/gallery3dpatchdemo.png

Notice how the transmitter and power cables look differently.

The original photo (5mpx) is here:

http://img838.imageshack.us/img838/6189/imag0106z.jpg

[Will it work?]

Reported to work on various devices and various ROMs. If, by any chance, this doesn't work on your phone, report here.

User Airwalker82 reported that even 12MPx images are loaded without problems. Thanks for that!

[Installation]

If your ROM didn't come with Gallery3D preinstalled:

Uninstall any versions of Gallery3D present and install the .apk.

If your ROM came with Gallery3D or the above method fails:

You will need to remove the existing Gallery3D.apk in /system/app. You can use any method you prefer for this, however, those owning a Desire will have to do it from recovery through ADB shell.

Step by step:
1) Connect the phone to the PC
2) Open a Command Prompt (WinKey+R->type 'cmd'->enter)
3) Using the command 'cd', navigate to the directory where the Android SDK is installed
4) Use 'cd' again to enter the 'tools' directory
5) Type 'adb reboot recovery'
6) The phone should restart
7) Once in recovery, type 'adb shell' to get the shell interface
8) Now type 'rm -rf /system/app/Gallery3D.*'
9) Disconnect and reboot the phone

Now simply install the .apk.

[Source]

All source code (with compiled downloads) is available on github at the following URL:

http://github.com/mrPjer/android_packages_apps_Gallery3D

[Other/Bugs]

Please post here any bugs, errors or words of praise :D

Gallery3Dr.apk

Only install this one on devices that have problem with rotation (such as the HTC Hero).