yashsingh1/xdaforums huggingface dataset:
[Desire Themes and Apps] iostrym:
Hi,

I have a HTC DESIRE with officiel HTC ROM (android 2.2.2). The official gallery included is quite simple with no access to picasa albums.

That's why I'm here to download 3Dgallery that I had before with a cyanogen rom with my magic. But now I don't know if I need to install 3Dgallery.apk from this thread (patched from high res) or if I need to find a more recent version of 3Dgallery that would include this patch ...

I don't know... If someone could help ...

thanks a lot.
[Desire Themes and Apps] danarama:
Download CM, get the latest .apk out of there and install it from your SD card.
[Desire Themes and Apps] iostrym:
hi thanks for your answer.

woudn't it be any problem as lastest CM 7.X is no more under 2.2 android version ?

I mean my os is 2.2 and I'm trying ot install an apk from CM7.X rom that is a 2.3 android version ...

right now I have extracted one gallery3D.apk from latest CM 7.X and I have also another gallery3Dfroyo.apk from this page :

http://xdaforums.com/showthread.php?t=653503

there are different. do you know which one can I install on my htc desire 2.2 with officiel htc rom.

best regards,
[Desire Themes and Apps] cculun:
screen shoot?

thx before:)
[Desire Themes and Apps] jespo:
You may go to Settings / Accounts and enter google account. You have there picasa albums synchronization option.
[Desire Themes and Apps] ESTIMULO:
yeah it has selected.

I could delete it (/system/app/Gallery3D.apk) through adb shell and now works again with picasa and my original Gallery3DGoogle.apk.

Thanks
[Desire Themes and Apps] mrbishi:
Just installed this and the difference in quality seems night and day, never really noticed how bad pictures look in the stock gallery until now! Not having any slowdowns or instability on OD 3.2.0.

Great work, this is how it should have been as standard :)
[Desire Themes and Apps] kien:
Just flashed the zip and I now have 2 3dgallery apk's in system/app but only one gallery shortcut in the app drawer, I'm not seeing any difference in image quality.
[Desire Themes and Apps] mrbishi:
That's because one of them is called Gallery3d and the other is Gallery3dm, to fix that you need to boot into recovery, mount /system from the mount menu and using adb, enter the following...

cd /system/app
cp Gallery3Dm.apk Gallery3D.apk
rm Gallery3Dm.apk
reboot

And you'll be sorted.
[Desire Themes and Apps] kien:
I have Gallery3D and Gallery3DFroyo, no Gallery3Dm. The apk in the zip is Gallery3D (no "m") so I'll remove that. Cheers.
[Desire Themes and Apps] Number22:
Remove both through ADB (you don't have to use rm, you can use mv for moving. For example, mv Gallery3D /sdcard/ will move the apk to your SD card) and then install the .apk from the first post. This way you can be sure that the patch installed successfully.

Please report back on how it works.
[Desire Themes and Apps] Pumbi:
Good work !
[Desire Themes and Apps] erto90:
which are correct strings to write throught adb? i have Gallery3D and Gallery3DFroyo but dunno how to delete/move
[Desire Themes and Apps] Number22:
ADB is a shell interface that you can use to access the system partition on your Desire. Just like on most shells, there are basic file manipulation programs like mv (move), cp (copy) and rm (remove). You can use any of those, as long as you remove any Gallery3D apks from /system/app. So

If you want to make a backup of the apks to your sdcard

mount /sdcard

cd /system/app

mv Gallery3D* /sdcard

If you don't need any backups

rm /system/app/Gallery3D*

After that, install the .apk from the first post.

P.S. As far as I can see from your /system/app, Gallery3D didn't come with your ROM? If it didn't, you shouldn't have used the flash method, but the one that involves uninstalling any previous instances and then installing the .apk.

(If you run into any problems, fell free to ask here. It would be nice to know which ROM you are using since you're the first that experienced this issue)
[Desire Themes and Apps] kien:
Leedroid uses Gallery3DFroyo.apk.
[Desire Themes and Apps] Darkyy:
Galaxy S i9000 Support?

Does this patch work for the Samsung Galaxy S i9000 (european version)?

It's the standard 2.1 3D Gallery installed. ;)
[Desire Themes and Apps] blunden:
What would more interesting than a compiled apk is the modifications made to the source. That way one could implement it together with any other tweaks. How about forking Gallery3D from AOSP (mirrored on github.com/android too for easy forking) to your github? That would allow others to pull in your change while still crediting you. :)
[Desire Themes and Apps] Achillx:
I was looking for a fix of that problem for a long time!

Installed on my Hero with CMH-1.4.1 but....

Not much of a deference I'm afraid plus the rotate bug!

I've attached some screenshots..

Gallery3D is the previous one

Gallery3Dm is this one and...

Gallery2D is the vanilla default

I have a question that might include a suggestion :p

You said that it's a some sort of limitation to the android system that can't display the bitmaps correctly,but why the default 2D viewer displays them correctly?

Maybe you can also sneak pick into this gallery and see how it work?

Anyway I'm glad someone decided to deal with this problem!

Now that you've started you'll find it!
[Desire Themes and Apps] Moguledyouth:
Love the mod, however I'm on a Sprint Hero and it wont rotate landscape correctly. is there any way to release a version with all the source left in, to see if that might fix my problem.
[Desire Themes and Apps] oxeneers:
It's really crazy how great the Sense 2.2 Gallery is. I have always noticed that even after zooming in, the higher resolution photo renders itself once again whereas all the Gallery3D's I have seen, do not do this.

Thanks for the effort!
[Desire Themes and Apps] Number22:
Didn't know it was also on Github, though I can't seem to find Gallery3D there :O Any help?

Yup, it's quite amazing. I do believe this is due to the fact that HTC left some RAM allocated for their own framework which is then used by the camera, Gallery and Sense. This works really well (Sense can be a great experience), but what they are doing here is that they are sandboxing a part of an opensource OS, instead of going by the old "Sharing is caring" :D

Yes, it should work, but I would really like you to try it out and report here. (If it has the original Gallery3D preinstalled, you're either going to have to use the update.zip method or remove that one with ADB)

Now, about the Hero. The rotate bug could be due to the fact that the Hero doesn't have enough bitmap memory (it has an HVGA screen, meaning it needs less memory than the Desire). So, my guess is that the memory gets overflowed during rotation. As I don't have a Hero, perhaps you could be more detailed as to what exactly happens during rotation?
[Desire Themes and Apps] JimiJam:
I managed to get this running on a Galaxy i9000.

1) Use Root Explorer and jump to /system/app

2) Rename 'Gallery3D.apk' and 'Gallery3D.odex' to 'Gallery3D.apk.old' and 'Gallery3D.odex.old'.

3) Run the Gallery3Dm.apk installer in first post and install.

Seems to run fine (takes a lil bit longer to load image at start but it might just be because cache was cleared out).

BUT

How do I go back to my old gallery program? I wanted to compare how the quality is. I tried:

1) Uninstall the new Gallery program and rename my Gallery3D*.old back to original. ==> The Gallery app does not appear in my launcher list.

2) Run 'Gallery3D.apk' as an installer and try to install. ==> Fails to install.

3) Use a Titanium backup of Gallery3D.apk and try to install. ==> Fails to install.

How do I get my old gallery program to appear in my launcher's app list and how do I run it? ><

EDIT: Oh nvm, a reboot did the trick :D Uninstall the 3Dm version, copy/paste the old 3D.apk back, then reboot.

Okay now I know I can revert I'll stick with the 3Dm :p
[Desire Themes and Apps] defroster:
Hi There, I've got a Nexus One and CM RC2. Problem is my power button does not work, so I (think i) can't access recovery mode. I am however really keen on improving the viewer because the resolution has always seemed so low... or am I just imagining it? does 2.2 already have this improvement?

Just a bit mixed up on the versions...
[Desire Themes and Apps] Achillx:
It was a typical bug in the Hero section of the forum!

Some dev managed to fix it but only this!not the resolution!

If you want, I attached the previous Gallery3D I had, that didn't had the rotate problem, is from CMH-1.4.1

I also attached two screenshots to show you the rotate problem...

in portrait.png the gallery first opened in portrait and when rotated to landscape went crazy.

and in landscape.png first opened in landscape and when rotated to portrait went crazy.

What do you think about the Gallery2D displaying the pics correctly?
[Desire Themes and Apps] BlancoJr:
Share as MMS?

Hi!

I can't share a pic as MMS. Is it supposed to be like this or am I missing something?

When i press "share" i get:

Peep

Vignette

Bluetooth

Email

Picasa

Flickr

Facebook for HTC Sense

3banana note

Facebook

Gmail

Any ideas?
[Desire Themes and Apps] erto90:
i'm using leedroid 1.8 but i can't uninstall any gallery present in my rom! it says can't uninstall application.. also in root explorer is impossible to rename because it says that is a read-only file..

what i have to do?

throught adb it says rm is not a internal/external know comand..
[Desire Themes and Apps] iinga:
Can you tell me the commands you use whilst in adb?

Also, are you using adb whilst booted into recovery?
[Desire Themes and Apps] Fekke:
I cant get it to work... I have Galaxy S.

I have renamed those to files.

But when i use the installer apk it fails...
[Desire Themes and Apps] OrionTC:
at first mine didnt work either (galaxy S euro model), i thought i had messed up my gallery for good then it just started working 0_o. Not sure what i did to be honest.

I tried the rename method and couldnt install the APK, i then tried to zip file method and when i rebooted the phone the gallery appeared, every time i tried to open it would force close loop until i rebooted the phone. i then tried to install the Gallery3dm.apk again and for some reason it let me install it. gallery now works fine and the quality difference is amazing! damn samsung for not giving this phone the attention it deserves.
[Desire Themes and Apps] JimiJam:
Oops for the SGS ppl, I just dumped the Gallery3Dm.apk file into /system/app and after that it immediately appeared in the Applications list and worked. I can't recall whether I 'installed' it tbh...

When you get rid of it, put the other .apk/.odex files back, but you need to reboot before the old gallery comes back.
[Desire Themes and Apps] Genuwine1976:
It also works on the droid with Liquid frozen Yogart rom.....
[Desire Themes and Apps] OrionTC:
SGS i9000 - when i reboot the phone i get a looping force close on opening the gallery unless i run the package installer for the APK file, it takes about half a second to install then i can launch it no problem. I assume something went wrong somewhere :P
[Desire Themes and Apps] JagSem:
Excellent work.

Thanks.

[clicked through from ourfear's sig]
[Desire Themes and Apps] mr.antooan:
does it work on legend ?
[Desire Themes and Apps] shokuhawan:
Work nicely on HTC HERO with Gallery 3D installed before.

-Remove it thru Uninstaller

-Install the Modifier apk.

Worked!
[Desire Themes and Apps] tudork:
I also cannot send photos through mms.the menu lacks the option to send through message.
[Desire Themes and Apps] somemadcaaant:
I think this is for all versions of 3d gallery, has yet to be implemented for Desire rip version?
[Desire Themes and Apps] 風戰士:
application not installed....how to install this app??:confused:
[Desire Themes and Apps] ourfear:
hi number22, could you release the new version with fast loading speed?
[Desire Themes and Apps] dsMA:
Is there a way to turn off validation without using rom manager? I tried using it once and it prompted me to install clockwork and once that completed my phone was seriously messed up so now I am kind of scared to us it?

If flashing isn't an option I could always get the apk file and push it...it goes in system/app right?
[Desire Themes and Apps] Number22:
First post updated

Pushing / removing the original is the easiest way (check the first post for instructions).

If you have ClockworkMod as a result of your rooting process, it has by default an option to turn off signature signing. It's in the advanced submenu if I'm not mistaken.
[Desire Themes and Apps] serotizm:
Great work. Thank you very much. Slow Gallery 3D was the most disturbing issue on my Desire. Now it runs perfect.
[Desire Themes and Apps] Nickedynick:
Ok, the good news is that the thumbnails now look good in full screen. The bad news is that they also have a black bar at the bottom in the actual thumbnail view.
[Desire Themes and Apps] Number22:
Yes, I know. I mentioned it in the first post. I will be looking into it.
[Desire Themes and Apps] Nickedynick:
Oops, sorry! I should probably learn to read... Good work though :)
[Desire Themes and Apps] rPAD:
how do you know if it's installed? When i check file manager and the properties of the gallery3d.apk, there is a date last modified in 2008.
[Desire Themes and Apps] ironhorse86:
damn rotation bug still occurring.... cm6 nightly 9/13
[Desire Themes and Apps] jblparisi:
Whats the difference between Gallery3Dm and CM Gallery3D ?
[Desire Themes and Apps] hensk:
can Gallery be somehow speed it up
[Desire Themes and Apps] Number22:
Flip into landscape and swipe to an image that hasn't been loaded. If it loads in Widescreen instead of normal (or if it fills the Desire's screen completely), it means it is installed.

Gallery3Dm is my original mod that I started this thread with back in August. It's obsolete and posted only for archive purposes. Use the CM one if you want the latest patched Gallery3D.

If you know how to edit your system/build.prop file, you can increase the maximum heap memory from 20mb to something like 30+. This significantly speeds up Gallery3D.
[Desire Themes and Apps] martino2k6:
Thank you very much for the mod. It really makes a big difference :)
[Desire Themes and Apps] mogli4711:
right

why so many right
[Desire Themes and Apps] LuffyPSP:
i downloaded and installed the Gallery3Dm but why is it loading so slow? it is too slow compared to when i used a CM rom. now i'm using a sense rom. now i uninstalled it already. or do i need the other 2 versions?
[Desire Themes and Apps] serotizm:
It loads too much faster than Gallery 3D in MCRr9. I've never seen any thumbnails with that one (I have about 1000 photos + picasa albums)

BTW, I've included your mod in my status bar theme. I hope you won't get mad.

Thanks again for this great work.
[Desire Themes and Apps] ourfear:
I use OpenDesire, and dalvik.vm.heapsize set to 24M

can i set "ro.media.dec.jpeg.memcap=30000000" on my system/build.prop?
[Desire Themes and Apps] Number22:
Gallery3Dm is the older version (I will remove it now to avoid confusion). Either way, try using the latest Gallery3D.apk from the first post. If that isn't fast enough, you can always increase the heapsize with the help of ADB, and increase the decoder memcaps (this speeds up things a lot).

No problem, I'm always glad to see my work used by others :D

Actually, be careful with that. Memcap should always be lower than heapsize. I set my memcap to 32 megs while heapsize is 36.
[Desire Themes and Apps] LuffyPSP:
and how do i do this memcap and heapsize thingy?
[Desire Themes and Apps] jodue:
awesome, works perfectly on the galaxy s! now i can finally set high-res wallpapers from images without manually resizing them! thanks!
[Desire Themes and Apps] Jgruar:
Anyone else noticing that the picasa albums are bugging with this?

The pictures do not load after clicking on the thumbnail. Just displays a really blurry image. Doesn't load even on a very fast wifi. Tried re-syncing etc, only the non-patched version of gallery works.
[Desire Themes and Apps] Number22:
As I personally don't use picasa, I haven't noticed this, however, I will take a look at it tomorrow.
[Desire Themes and Apps] ourfear:
today i move a picture folder to a private folder with .nomedia inside, and cleanup Gallery3D data & cache folder in sd

but after reboot phone, open Gallery3d, these pictures still in there :-(

btw: gallery3d create cahe when first boot, i have 1000+ pictures , it uses long time to build cache and my phone is damn hot.... htc album is really fast.
[Desire Themes and Apps] Egan:
Share one photo with Picasa and it will reconnect with your Picasa albums :).
[Desire Themes and Apps] hwminnebruiker:
Thanks

Thanks, I stopped using it because it reloaded. Now it works again!
[Desire Themes and Apps] redlabour:
Uninstalled does not work at Desire with LeeDroid 2.1a
[Desire Themes and Apps] martino2k6:
Is anyone else getting a black bar at the bottom/side of the thumbnails?
[Desire Themes and Apps] iacob:
Getting the black bars too but apparently this is a known issue, page 6 post 60.
[Desire Themes and Apps] martino2k6:
Ah ok. If I had time I'd look at the source myself... sounds just like some arithmetic error...
[Desire Themes and Apps] joshuas_79:
Hi, Nice job!, but I noticed I get FC's quite often when I try to set up one of my pics in picasa as wallpaper, I don't get them with the stock gallery3d (Nexus)

does it happen only for me?

thanks!
[Desire Themes and Apps] Jack_R1:
Hi Number22,

First, I hope you don't mind that I borrowed part of your work - I had to fix Gallery3D on Nexus to make it suitable for HTC Camera port (which saves the images in 100MEDIA folder, unlike default Nexus camera - in Camera folder), so on the way I've stumbled upon your high-res fix and borrowed some of the code.

Since you're working on Desire port, I'm offering you a mod in return. Desire also saves in 100MEDIA folder, and the thing about Gallery3D is that by default it sorts the Camera folder in reverse - showing the last taken photo first (which is MUCH better, since you don't have to scroll right to the end of camera photos to get to it). To adapt it to HTC Camera, I changed the camera folder name string - and now it reverse sorts the 100MEDIA folder instead, and shows the nice "camera" icon on it. It also calls this folder "Camera" in various translations, and places it first on the list.

Here's a link to my post about it:

http://xdaforums.com/showpost.php?p=8534770&postcount=6508

Here's a direct link to the thread with HTC Camera and default Nexus Camera versions, both in update.zip format:

http://xdaforums.com/showthread.php?t=804161
[Desire Themes and Apps] Software Guru:
Strange

I can't seem to upgrade my current version (1.1.30682) with this

new version (1.1.30686-Desire)

I can't even uninstall my current version

Rooted running Open Desire 4.0.34

If I update the file contained in the zip uloaded by mikel.1969 in Post 9 with this new updated file and flash via Recovery

Do you think this will work?
[Desire Themes and Apps] iinga:
If you disable signature verification
[Desire Themes and Apps] Software Guru:
Thanks, will give it go later on
[Desire Themes and Apps] martino2k6:
So I got really tired of looking at the borders in the thumbnails and just did a quick ugly fix. Note that the thumbnails won't have such a high resolution as the APK by Number22. There's two versions. One is for people who'd prefer 4:3 (like me since most pictures I put on my phone are from a 4:3 camera) and the other for 5:3 folks (who maybe take pictures with the Desire a lot). Pick whichever you like. You'll have to uninstall first and then install I believe.

Credit goes to the people who wrote Gallery in the first place and the others that contributed to it. On a side note after looking through the code... resizing pictures instead of cropping when the ARs don't match... wouldn't it look better?

If you would like the source, please PM me.
[Desire Themes and Apps] Yokun:
hi,

how to improve speed of the generation of the thumbnail and screennail?
[Desire Themes and Apps] madman_cro:
One quick question. Why walpapers set wit gal3d looks like crap and if i set them with flickie it looks flawles?
[Desire Themes and Apps] ourfear:
number22, could you make a version to save cache in /cache instead of /sdcard/dcim/.thumbnails ?

i think this way speedup the first loading...
[Desire Themes and Apps] martino2k6:
What is your reasoning behind this?
[Desire Themes and Apps] Number22:
Hey guys, I've been really busy lately (and sick -.-') so I hadn't had much time to devote to the project. Anyways, the adaptive respatch (which I'll publish as an .apk once I fix the thumbnails) made it into CyanogenMod, so all of you using DeFroSt will get the respatch automatically. Since it's adaptive, it means that it will scale with your maximum heap size. The higher the heap, the higher the quality (though, the adaptive factor is too conservative currently. I'll do more testing and make it more agressive).

As soon as I figure out which part controls the thumbnail dimensions (I can't believe they didn't include comments for that :S), I'll fix the aspect ratio and publish a version with both the adaptive respatch and the adaptive thumbnails (thumbnails will rock and scrolling will seem much faster). (They aren't posted yet because I have to do some more testing)

Oh, one more thing about people using my code for their own projects. I have nothing against this (I actually really like it), however I would kindly ask you to keep it open source so that everyone can benefit from the changes.

If you know how to edit build.prop (not for everyone), try increasing the maxheapsize and the jpeg encode/decode values.

Wish I knew. I didn't look around the wallpaper part, maybe I'll do it and improve what can be improved when I get the time.

(Croatia in the house ^^)
[Desire Themes and Apps] kenkiller:
Thanks for the update.....looking forward to any update. :D
[Desire Themes and Apps] redbull320:
ehmmm is the new 2.2 jpo gallery like thisone? or better/faster?

Greetz
[Desire Themes and Apps] Number22:
New version posted

So, I finally got around to publishing some of the newer mods. So guys, can you please test this out and let me know how it works? The adaptive respatch should work great (not to mention the performance improvements), however, you just never know :D

Sorry for not responding, I totally missed this with my last reply. Anyways, it's true that it would speed things up, however, the /cache partition is not meant for apps (it's for the Dalvik cache and OTA updates), not to mention the fact that it isn't exactly big. Cluttering it up with data from the Gallery cache isn't worth the performance improvement that we would gain.

New 2.2 jpo gallery? Not sure what this is, care to share a link?
[Desire Themes and Apps] islanda73:
Should I put the 3dr on my moment or regular
[Desire Themes and Apps] Number22:
Regular should work on most phones. Eithe way, try out the regular one and if rotation works without a problem, keep it. Otherwise try the 3Dr.
[Desire Themes and Apps] Bengaal:
looks great....

Is it possible to make a .zip file so we can flash it over the old gallery 3d

(because I have problems with adb)

maybe there is a other method to uninstall the old gallary3d from system?
[Desire Themes and Apps] specialex:
it FC, after unmount internal storage when connect to PC via USB cable (galaxy s)
[Desire Themes and Apps] schoerb:
On my htc Desire the images in the thumbnail view aren't scaled properly.

Could you fix this please?
[Desire Themes and Apps] iacob:
a great job... as usual Number22 :)

noticed two bugs though...

- some pictures have a vertical black on the right side

- all pictures' thumbnails are stretched wierdly (pictures taken with internal camera or not)

The performance improvements are significant

HTC Desire 2.2
[Desire Themes and Apps] ourfear:
The performance improvements are significant

i only set jpeg 20M cache, good job
[Desire Themes and Apps] ourfear:
i noticed this bug too. a black bar on bottom of all pictures' thumbnails
[Desire Themes and Apps] niels_kievits:
Same here, if this could be fixed I think we have a winner!