Update May 4th: You can now download the apk file for your HTC Desire phone.
I got my HTC Desire (aka wonder phone) two weeks ago and I haven’t put it out of my hands for that time. Last week I finally started to write my own applications (more on that later). Today I downloaded the 2GB source code for Android and snooped around a little. My eye caught a folder called “Gallery3D“. Could it be? The gallery application, known from the Nexus One as source code? I imported it to Eclipse and transferred it to my Desire. And really, the HTC Desire can run the most awesome media application for Android.
It even comes with a great movie player. Much better than the included one by HTC.
No idea if it is legal to distribute the .apk file for Gallery3D. Just drop me a line if you need help by bringing Cooliris great Gallery app to your Desire.
The only thing not yet working is the camera. For now, you can not start the camera from inside Gallery3D. But I will try to fix this.
Camera is working. Open the file HudLayer.java and change
private final Runnable mCameraButtonAction = new Runnable() {
public void run() {
// Launch the camera intent.
Intent intent = new Intent();
intent.setClassName("com.android.camera", "com.android.camera.Camera");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mContext.startActivity(intent);
}
};
to
private final Runnable mCameraButtonAction = new Runnable() {
public void run() {
// Launch the camera intent.
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mContext.startActivity(intent);
}
};
The code is around line 53-61. Let me know if this works for you.
Cool, works a treat on my HTC Desire
Thanks for porting this app I really like it. Only thing I want to be able do is: when I am using the camera change the link in the bottom right corner from the HTC photos to gallery 3d. Is is possible do that? Thanks
hi Rob
Thanks for your comment and good if you like it. Regarding your request, I haven’t thought about that and for now I do not now if this is possible. But I will take a look at the sources and write about if it is possible.
Thanks. I will look forward to it. Something relating to it that may be of some help; the camera link from gallery 3d, opens a camera with no link to HTC photos. There may be a clue there but I don’t know anything about coding.
well, inside Gallery3D it launches an Intent for the Camera, so not the full camera application.
What might be possible, is to offer some sort of “Action chooser”, like the one if you want to play a vide. But I really need to look in the Android sources for that …