Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
sparven89
Old
(Last edited by sparven89; 24th April 2011 at 11:59 PM.)
#1  
Member - OP
Thanks Meter 7
Posts: 49
Join Date: Nov 2010
Lightbulb [Development]Edit Htc's Camera app

Hi folks!


I've been searching this section for an answer about editing the stock camera-app. Without any success at all (except by briefly sentences about this).

The goal with this is to make the flash to light up right before the application tries to focus. This will make it a alot easier to take photos in more dark places. (And for those with a past of nokia devices) you already experienced this function.

I've attached a .rar-file containing the following:
1. The original .apk file
2. The decomlied .jar file
3. A folder containing everything from inside the .apk (for those of you that haven't a clue at all how to extract files from a .apk file)


Date; 25th Apr 2011 Latest
Well if you are following this thread, you probably already know what's going on.
But for new visitors: I decided to change my approach to several problems I stumble upon. So I will more likely create a complete new camera app specific for the DHD. And yes, users to this forum will be the first to try it out. But I've haven't decided yet how I will distribute the app, if it will be through google marketplace, or just in here (or what ever it will be).

But if this project take up to much time, I would appreciate some kind of donations But of course after you folks seen some results
So keep tuned for more news!

Date; 3rd Mar 2011
Still stuck at succeeding to complie back to ordinary apk-file again. So if there is someone with any kind of knowledge about this, please let me know.

Date; 17th Feb 2011
Well guys, I succeeded to change some values, but I still got some problems to complie it back to .dex
Maybe an update about this during the day

Date; 16th Feb 2011
I've succeeded to find the class containing all definitions (for an exapmle: how many seconds it will take for the timer to take a photo).
I will try to edit some values and the complie it back to .dex (in other words make it back to .apk).

I hope to update before the end of the day.
Cheers folks!

Date; 15th Feb 2011
I've manage to decomplie classes.dex in HTCCamera.apk to a .jar-file. So if you got a java complier it shouldn't be any problem to open up the file.

The main problem right now is to find which class that handles the actual moment when it tries to focus. So if any one with some sort of knowledge about programming have some time over, feel free to help me find this specific class.
Attached Files
File Type: rar HTCCamera.rar - [Click for QR Code] (3.20 MB, 652 views)
The Following 3 Users Say Thank You to sparven89 For This Useful Post: [ Click to Expand ]
 
kamranh3
Old
#2  
Senior Member
Thanks Meter 16
Posts: 288
Join Date: Nov 2010
While it's a good idea, what I do is extract the torch app from Cyanogen Mod, then put it on and go home, because the torch will stay on until you go back on the app and shut it off, so I use the torch and then I launch the camera, try it!
Samsung Galaxy S3

Desire HD
The Following User Says Thank You to kamranh3 For This Useful Post: [ Click to Expand ]
 
mupet0000
Old
#3  
Senior Member
Thanks Meter 2
Posts: 108
Join Date: Sep 2010
Quote:
Originally Posted by kamranh3 View Post
While it's a good idea, what I do is extract the torch app from Cyanogen Mod, then put it on and go home, because the torch will stay on until you go back on the app and shut it off, so I use the torch and then I launch the camera, try it!
I don't use Cyanogen mod, can you upload that apk somewhere?
 
Elemental_Fire
Old
#4  
Senior Member
Thanks Meter 31
Posts: 269
Join Date: Aug 2009
Location: London
A more pressing matter is that when a video is recorded, audio is compressed and encoded in such a low quality. As a result, the audio is very bad. Here are some ideas I can give you. Reroute the microphone input from back to front mic. In other words, the mic we use while talking. Increase quality to at least 128kbps and 44100Hz frequency. And disable ACG. I assure you, doing this will benefit the whole of the Desire HD community I'll gladly donate once my EMA comes in next week
 
sparven89
Old
#5  
Member - OP
Thanks Meter 7
Posts: 49
Join Date: Nov 2010
Quote:
Originally Posted by kamranh3 View Post
While it's a good idea, what I do is extract the torch app from Cyanogen Mod, then put it on and go home, because the torch will stay on until you go back on the app and shut it off, so I use the torch and then I launch the camera, try it!
Well, it's a solution ^^
But not one I want to use. I don't want to luanch two applications just to take one picture.

But thanks for the suggestion





Elemental_Fire:
That is exactly the kind of things I want to change
 
winwintoto1234
Old
#6  
Senior Member
Thanks Meter 9
Posts: 304
Join Date: Jan 2011
Location: KK, Sabah
Glad that someone is finally doing something about this.

I just don't understand why this function is not found in DHD.
Without it, most photos taken in the dark are blur as there is not sufficient time and light for it to focus correctly.

I personally don't like to use 3rd party application for camera. Therefore I hope that your work would interact with the phone camera and make the LED flash to bright up automatically without any additional application or with "one time setting" only.

Fingers crossed for this...
 
kamranh3
Old
#7  
Senior Member
Thanks Meter 16
Posts: 288
Join Date: Nov 2010
Any progress made? Maybe some ROM developers could take a look at it?
Samsung Galaxy S3

Desire HD
 
sparven89
Old
#8  
Member - OP
Thanks Meter 7
Posts: 49
Join Date: Nov 2010
Quote:
Originally Posted by kamranh3 View Post
Any progress made? Maybe some ROM developers could take a look at it?
Well, sorry guys for my inactivity. But I got som studies in the way, so I hope there will be som extra time over for this

So stay tune for more news
 
MrYuiM
Old
#9  
Senior Member
Thanks Meter 38
Posts: 511
Join Date: Jun 2010
Location: Stalkerland
Hmmm, loving the idea. I'm also wondering about pausing in video recording, like pause-continue recording-stop etc, like in nokia's too
 
SupremeBeaver
Old
#10  
SupremeBeaver's Avatar
Senior Member
Thanks Meter 289
Posts: 3,068
Join Date: Jun 2010
Location: Nicosia

 
DONATE TO ME
Looking forward to updates here. Hopefully you can do something about the god awful audio quality.

@Elemental Fire..as far as i know, there is only one mic on our DHDs, the mic you use to talk on phone calls at the bottom. There is no other mic.

edit: this thread should really be moved to the Development section. There would be a lot more activity there and more who could help.
http://img845.imageshack.us/img845/527/xdasig.jpg

 
Post Reply+
Tags
camera, development, editing apk, flash, stock app
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...