yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] AlienCraB:
A Linux instructor at school, while I was asking what the reason could be about the problem today, made a different suggestion, different to me at least.

I had all the logcats I had from the thread in front of him and after looking at it for about 40minutes he asked if you guys had tried to use Python's libraries to have a different perspective to the problem.

http://en.wikipedia.org/wiki/Python_(programming_language)

I have no knowledge of Python language and I've never made any ROM development on Android, yet, but it is just his suggestion and thought I'd share it, I hope it's for some use :).

Good luck!
[Desire Android Development] K900:
I wish we could, but ASE relies on the same framework, so we need to go deeper into the system than it allows us to

Sent from my HDfied HTC Desire
[Desire Android Development] prcctv:
I found when I use the SPB TV.APK to see the film in the Rom on my Desire, I only can hear the sound but could not see nothing! but the SPB TV is well working in other roms!

I try many camera on the HD ROM, BUT they all exit auto after i start them few seconds!

Maybe the two cases have same reasons!
[Desire Android Development] thebishops:
Looking to HD2 Android for inspiration.

I may be WAY off target here as my knowledge of Android (and Linux in general is limited) but has anyone looked at the earlier implimentations of Android on the HD2. Some of them had both the HTC Camera and the Nexus Camera working together. That means they must have patched the AOSP Nexus Camera to work within the Desire Framework. Obviously we still need the right Cam drivers but maybe this will give an avenue to go down (hopefully not a dead end). Sorry if this is deemed off topic by some, just trying to think a little bit laterally.
[Desire Android Development] ephumuris:
That's already been mentioned within this thread mate. Nothing has come of it as of yet.
[Desire Android Development] Jagdish84:
At a risk of gettin my post deleted, did anyone try talking to the devs of motorola milestone and HD2 who succeeded in enabling the camera on their ports of the DHD? there might be some similiraties that can lead to a solution on our part, isnt there?
[Desire Android Development] ephumuris:
I'd consider this abandoned for now. We don't have much hope other than waiting for an official release.

The dev who got cam working on Milestone told us the files he replaced and what he did seems to not be the case for us. It has been tried and tested and failed. HD2 dev i'm not sure.
[Desire Android Development] willumpie82:
maby it is easyier to port the other stuff to the original rom

I think the most important things from the HD/Z rom are

- browser (with pinch to view other windows)

- htcsense.com
[Desire Android Development] dergago:
Great idea... isn´t the browser only an apk file?
[Desire Android Development] Jagdish84:
I think the HD2 devs managed to port the camera sucsessfuly...
[Desire Android Development] :
A link please?

Sent from my HTC Desire
[Desire Android Development] FelluRan:
These are some nice projects which have been done already for the droid incredible. Wouldn't something like these be nice project to conduct?

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

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

EDIT: They've even included the hibernation feature!
[Desire Android Development] beanbean50:
now that the official kernel source codes from HTC for HD ROMS are available is a camera fix just around the corner?

http://developer.htc.com/
[Desire Android Development] Jagdish84:
Its around for some time now, isnt it?!
[Desire Android Development] kastenfroschhonk:
Hello,

I took a look into the ace and bravo sources from htc and searched for some camera related diffs.

include/media/msm_camera.h

There are some structs and defs extended in the ace-kernel. May it be possible that the HD-Framework-Camera.apk is using some of these new/extended functions?

Is it right, that the HD-Rom is running on a normal/optimized Desire (RichardTrip) Kernel?

Kind regards, Holger.
[Desire Android Development] ephumuris:
Probably not. The HD rom does run on desire kernel however even the old HTC camera apk does not work on this rom so it is more that just apk and kernel.

Eph.
[Desire Android Development] prcctv:
maybe it is a good idea to port the new apps in hd rom into the old ROM!
[Desire Android Development] OpenMinded:
Hi,

Could anyone point me out on where to start to help on this?

I have some linux knowledge, have compiled my own kernel and drivers in the past.

I am not too good in C, but willing to learn.

I really like these efforts and love to help, but I am not sure how I could start best.

Could you guys point to a howto for Android driver porting :)?
[Desire Android Development] OpenMinded:
the HTC site says the Desire Z has 5 MP.

It uses the same Sense as Desire HD right?

If so, 5mp/8mp would not matter, on the other hand, the Desire Z rom might have a different camera apk which closer matches the Desire.

Hope spilling ideas helps too :)!
[Desire Android Development] snq-:
new sense + htc camera app on a desire classic:

just made a few shots, camera seems to be fully functional, tested also w/ quickmark

there is still an issue w/ the camcorder, i'll try to fix it and release rsn
[Desire Android Development] pulser_g2:
May I remind you this is a DEVELOPMENT thread.

There is a user thread in general for you to post questions and other junk. Further people posting non-development content here will be infracted, as I've had to clear this out twice in the past half hour.

Please continue discussion over in the general talk thread, and wait for snq to give more details here, and please stop filling up this thread with "zomg +1 +1 +1"
[Desire Android Development] AndroHero:
Guys this is a developement thread, will you please respect the developers that are trying to do you a favour, and post your comments in the discussion thread, this thread is strictly for the developers NOT US!!!
[Desire Android Development] kekkle:
Seeing that screenshot. Shouldnt the Desire Z Camera app be used? The HD one has a software snap button. The original Desire and the Z have a physical button. Or does the one on the Z look the same?
[Desire Android Development] alexdiaz:
Inside info:

The camcorder has been fixed, but not 720p yet.

Guess we'll see a release soon!
[Desire Android Development] rolfd:
To avoid off-topic discussion on this thread, please post your sources of this news.

Thanks.

To everyone else, please remember the notes posted here by the moderating team. This is a development thread, there is a discussion thread in General. A number of you will note that you have received PM warnings via the infraction system. Further off-topic discussions on this thread will result in an infraction being given which can result in a ban.
[Desire Android Development] Alex-V:
The problem of quote post´s in this thread is that not all go to the first site to see this:

so is there a way to link the discussion thread in each site....?

Only a thought

with kind regards...Alex
[Desire Android Development] alexdiaz:
Sources: snq- himself. Probably coming tonight.
[Desire Android Development] baadnewz:
http://bit.ly/g2xj1P thx to snq-

w/out 720p recording

flash via recovery. enjoy, and bow to the only real dev from desire thread
[Desire Android Development] alexdiaz:
Tested and it works fine, just don't set the video recording to 720p.

ONLY TESTED IN RCMixHD 0.12. Don't know if it works on other new Sense releases.

snq- should be ranked as Senior Dev not Senior Member in XDA :D

Thanks, mate!
[Desire Android Development] :
i can confirm it is working on the HTC Desire Z ROM . Both camera and recording but not in 720p.

Thanks mate.

Wel
[Desire Android Development] ChesterZZ:
In RCTouch v03 the camera starts, but then it force closes... well, at least it starts now shouldn't be to much work to fix it I guess :)
[Desire Android Development] snq-:
the camera app and the build.prop file included in that fix is specific to rcmixhd v012

please don't flash it on other releases - it is trivial to port it to them, i'm sure robocik will release an update shortly
[Desire Android Development] ChesterZZ:
OK np, thanks for your hard work snq-.

Ria, ria, Hungária! :D
[Desire Android Development] anko184:
720p is not working at the moment but let's face it who needs a laggy 720p??

i'm happy that the camera finally works and i can record video, i personally really don't care for 720p .
[Desire Android Development] alphaola:
yh, same here. It loads but Force close immediately but at the same time increase the screen brightness to max
[Desire Android Development] :
Does it matter that we flash it to other roms ? It works on de Desire Z roms but to be more clear there is no 720p. And that is something I could live with.
[Desire Android Development] robocik:
well, i will check this fix with rctouch tomorrow, it may be caused by the camera.apk is from hd rom, it should be the one from mt4g... I hope this fix will work.

Anyway tomorrow is a big update day for all my roms, please have patience ;)
[Desire Android Development] ChesterZZ:
I replaced the HTCCamera.apk in the zip file with the HTCCamera.apk from RCTouch and now my camera works :D Thanks robocik for the tip :D

EDIT: atached the zip, if it ruins your phone, don't blame me :D
[Desire Android Development] robocik:
Cool :D then all three roms will be updated as soon as i get home.
[Desire Android Development] alphaola:
testing now, will update. as i switched back to rcmixhd and cam work. now restoring back to rctouch.

tested: still force close.
[Desire Android Development] millab:
Also tested working fine on Desire Z ROM, just had a look and it is based off RCMix v0.12 so that explains why it works!
[Desire Android Development] jlevy73:
Thanks snq... works on the Nexus One as well. Much appreciated
[Desire Android Development] stonec11:
i don't know about incredibleDoes rom but it work NXSense HD rom from Evil.
[Desire Android Development] frost_icewind:
I tried the zip and the camera worked for a few moments... then FC'd.
[Desire Android Development] ctinsley:
It did for me, I had to replace the htccamera.apk with the one from incdoes desire Z rom, but after that it worked fine for the most part, I can take 8meg photos, but the camcorder doesn't work, it shuts down when I try to record.
[Desire Android Development] MRFERRARI23:
Can you please post the the file to it so that I can try it please, I'd really appreciate it a lot!!!

I wonder why both the camera and camcorder work for other with this fix and not for you?? hmm.... anyways If I can get the camera working I'll take it for now lol... please please post that file you've got working for you!!
[Desire Android Development] ctinsley:
IncDoes just provided his modified version you can get it here.

http://ziggy471.com/incredibledoes/Incdoes_camfix_by_snq.zip
[Desire Android Development] ChesterZZ:
Strange, so try replacing the .apk file yourself, it works for me...
[Desire Android Development] alphaola:
have you got the camera apk for rctouch
[Desire Android Development] ChesterZZ:
Here you go :)
[Desire Android Development] alphaola:
cheers.will try tomorrow or update with the new rom
[Desire Android Development] alphaola:
@ snq. We all happy you finally fix it . But for us non-dev,could you explain why alot of dev working on cam issue couldn't get it to work. What you think they were doing wrong. Also the approach you took different from others and how you conquer this quest . I believe by explaining this will summarise the whole camera issue and the work you have done. Credit should be given to who deserve it and you snq deserve it. Now not only desire enjoying the cam fix, but other phones nexus one,hd2 ( with little work on their own part).
[Desire Android Development] ivicask:
Just extra note.

Camcorder sound quality is now better!

It's now recording in AAC 64.0 Kbps, 44.1 KHz

Compared to old AMR 12.8 Kbps 8 000 Hz
[Desire Android Development] dzontra11:
8 mega works?
[Desire Android Development] AndroHero:
Dont ask stupid questions, the desire only has 5mp camera
[Desire Android Development] DesirableHTC:
Thanks snq, just flashed your fix with the RCmixHD v0.12 and it's amazing, the new UI is awesome, the only thing i can notice is the different effects you can choose, sepia is actually the grayscale, and a couple of others. But hey, don't think that i am complaining! By no means am i complaining, in fact i am really really happy with everything that you have done! i just wanted to make it aware that is all.

Again, thank you snq, You Duh man :D
[Desire Android Development] superliam:
thought i would post here rather then the rom page, so sorry if thats wrong..

using RCMixHD rom with the new working camera.

testing the camera on it, and it all works, yay, but when you select the option for

Depth of field or distortion, it makes no change.

hope this helps in the quest to get it fully working
[Desire Android Development] fllash:
That was rather scathing. It is known that the desire has a 5MP sensor, yes, but when somebody comments that 8MP photos (note: 8MP

mode

) work, then surely it isn't too outrageous to ask for clarification.

If you think about it, taking a photo in 8MP mode with the desire will do one of two things:

- Take a 5MP photo

- Take a photo with 5MP's worth of pixel information with 8MP' worth of resolution.

Josh.
[Desire Android Development] pete777:
If this is true, it is amazing!:) Sound on desire videos was pretty *edit*.
[Desire Android Development] vidmas:
sounds great, waiting for Auraxtsense HD rom update
[Desire Android Development] MRFERRARI23:
I'm wondering, since the camcorder is working from this fix with that specific rom, would it be to hard to get the camcorder working on the camera fix for the evo and others??
[Desire Android Development] clio94:
snq thank you very much for your excellent work.Camera works fine in hd2 :D even third party apps like camera 360 and barcode scanner.you are a genius :)
[Desire Android Development] Rabadabadingdongable:
Wow, I've waited for it so long :-). Brilliant :-)
[Desire Android Development] spitjo:
Amazing work snq!!!!

Thanks!

I found a little bug. When you tap on gallery button from camera mode it takes you to video gallery. Same in camcorder mode.

I'm using rchd with your fix
[Desire Android Development] OpenMinded:
Thank you for your work!
[Desire Android Development] Maestro2k5:
Big THX @ All
[Desire Android Development] sarahlegs:
A ton of us in the Evo Development forum are desperately wondering the same thing :-)! Any ideas?
[Desire Android Development] K900:
Probably would be possible once snq explains his technique
[Desire Android Development] th3:
Works fine on mine. RCMixHD.

------------------------------

- Sent via HTC Desire -
[Desire Android Development] KGBxxx:
That would be sweet! Stock camera sucks...
[Desire Android Development] spitjo:
Are u using version 13?

I'm still with 12 with snq fix.

Maybe is fixed in 13...
[Desire Android Development] Dragooon123:
Does anyone else experience video lag for a video > 3 minutes with average FPS at 19? Like the video was coming after the audio after a runtime of 3-4 minutes.
[Desire Android Development] th3:
I have all the v0.13 fixes but am still on v0.12 ;)

Flashing v0.13 right now...

Dragooon123: Yes, audio is lagging video very clearly and at those moments, the video itself starts lagging. Even in YouTube.
[Desire Android Development] K900:
Sooo, 720p anyone?
[Desire Android Development] elsparkio:
Is that a question or a teaser?
[Desire Android Development] coolexe:
It's a question...hehehe

If anyone want 720p video just use lgcamera.apk.

Search on market
[Desire Android Development] AndroHero:
720p using lgcamera is laggy as hell, i assume its because its not using H/W acceleration. and im also asuming that the reason 720p dosent work on DHD ports, (HTC Camera) is because we have a desire radio not a DHD radio, and the frameworks needs a DHD radio for H/W acceleration ........
[Desire Android Development] coolexe:
Hi,

Something is batter than nothing....

Just select 15fps n no lag here......
[Desire Android Development] microang:
Lgcamera's storage location?

I've just tried theis lgcamera app on my hd2 with the desire hd build and can normally take 800x480 video with the htc camera and it seems to take both 720p and 800x480 just fine with the lgcamera app but I have no idea where it puts the files, could someone please tell me so I know if it acutally works because they are not in the dcim folder... :)
[Desire Android Development] coolexe:
Bro. It's a dev thread...

Lgcamera Location:

/sdcard/lgcamera/video n photo
[Desire Android Development] microang:
Thanks for that... I can now report that 720p recording works the same as with the htc camera app, the audio records fine but the image is a load of green mash on the hd2, however 800x480 works fine! :)
[Desire Android Development] Superdad_98:
I downloaded the lgCamera and Installed it on myTouch 4G

when I change the Audio Sampling Rate to any thing above 8000 I receive the following error "Record Video Failed"

Video Recording audio with the stock camera app is very bad and I hopped this app will solve this problem. any help or recommendation is highly appreciated
[Desire Android Development] zebe:
Regarding the desire of 720p room might not work because the rom using h264 encoder, try putting mpg4 encoder to see if it works.
[Desire Android Development] wilfried63:
I just try it with 720p and mp4 encoder and the HD Rom Port by baadnwz v1.3 , works fine, a little bit laggy but not worse that the stock Desire cam
[Desire Android Development] ninjaz:
I have problem recording in 800x480 with DHD camera. Audio and video is out of sync. Is there any way to fix this?
[Desire Android Development] Zeljko1234:
How did you put/use mp4 encoder with 720p?
[Desire Android Development] treyparker:
It's in lgcamera's settings (video encoder/MPEG4 (mp4))
[Desire Android Development] Rabadabadingdongable:
You may well ask.

lgcamera is not an alternative due to the bad audio quality. Changing the sampling rate or bitrate in this app will cause a "Record Video Failed".
[Desire Android Development] coolexe:
Hi,

Good news now lgcamera recoding high quality audio with AAC codec...
[Desire Android Development] Rabadabadingdongable:
Thanks for this hint. Unfortunately I noticed that I get an audio delay here, too. Is anyone able to record in lgcamera or the htc camcorder with audio and without audio delay after some time?

Could this be a problem of the kernel I use or the radio version?

greetings
[Desire Android Development] christian246:
I tried to install another room , Virtous room , but nothing is changed!

My camera is broken????!!!

01-06 19:30:08.938: WARN/HTCCamera(3124): onCreate()

01-06 19:30:09.018: WARN/IntentManager(3124): from class: com.android.camera.CameraEntry

01-06 19:30:09.018: WARN/IntentManager(3124): mRequestMode = RequestMode.Main, from Camera

01-06 19:30:09.018: WARN/IntentManager(3124): request name = null - RequestName.Unknown_General

01-06 19:30:09.018: WARN/IntentManager(3124): extras == null

01-06 19:30:09.068: WARN/HTCCamera(3124): onStart() - start

01-06 19:30:09.068: WARN/HTCCamera(3124): onStart() - end

01-06 19:30:09.068: WARN/HTCCamera(3124): onResume() - start

01-06 19:30:09.208: WARN/HTCCamera(3124): !!!! @@@@ broadcastStopVoiceRecording() - start

01-06 19:30:09.208: WARN/HTCCamera(3124): !!!! @@@@ broadcastStopVoiceRecording() - end

01-06 19:30:09.228: WARN/HTCCamera(3124): OnResume - reset UI, immediately set mMainLayout invisible

01-06 19:30:09.248: WARN/########## HtcSettingsReceiver ##########(3124): 2011-01-06 07:30:09 249(ms) onReceive-start

01-06 19:30:09.258: WARN/HTCCamera(3124): Block Capture UI - onResume(), and unblock after start preview

01-06 19:30:09.258: WARN/HTCCamera(3124): onResume() - mFocusingState = NO_FOCUSING

01-06 19:30:09.258: WARN/HTCCamera(3124): keyguard is not shown !!!!!

01-06 19:30:09.258: WARN/HTCCamera(3124): OnResume - set mWaitResetSettings to true

01-06 19:30:09.258: WARN/HTCCamera(3124): onResume() - end

01-06 19:30:09.368: WARN/HTCCamera(3124): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceCreated $$$$$$$$$$$$$$$$$$$$$$$$$$$android.view.SurfaceVie w$3@47a5f418

01-06 19:30:09.368: WARN/HTCCamera(3124): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceCreated $$$$$$$$$$$$$$$$$$$$$$$$$$$ start preview

01-06 19:30:09.368: WARN/HTCCamera(3124): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceChanged $$$$$$$$$$$$$$$$$$$$$$$$$$$ w=480 h=800

01-06 19:30:09.368: WARN/CameraThread(3124): CameraHandler Message - START_PREVIEW start mode0

01-06 19:30:09.368: ERROR/CameraThread(3124): open the Camera in start_camera_preview

01-06 19:30:09.368: WARN/CameraSwitch(3124): open main camera

01-06 19:30:09.368: WARN/CameraSwitch(3124): no file - can't switch camera

01-06 19:30:16.130: WARN/HTCCamera(3124): Unknown orientation !!!

01-06 19:30:09.368: ERROR/CameraThread(3124): open the Camera in start_camera_preview
[Desire Android Development] barbaragha:
+1

Same issue here, recording video in any quality gives audio/video lag after a couple of minutes of video recording. Gap increases the longer the video.

Replicated issue on several DHD & DZ Roms flashed for testing. Baadnews, Pays, ReflexTSenseHD, Robocik's Z & RCMIxHD.

It's camera port related not rom related.
[Desire Android Development] davebugyi:
So, anyone can upload an example video to YouTube (or anywhere)?

800*480 or 720p does not matter, just curious about the sound quality.

Thanks in advance!
[Desire Android Development] davebugyi:
Nobody? :(
[Desire Android Development] trulyliu:
I need this tool ld-linux.so,

but the download link was expired.

Could could you tell me how to compile it by myself or could you kindly re-upload it ?

Thanks a lot.
[Desire Android Development] MetinKale38:
Maybe it helps: the Desire camera has been ported to aosp Nexus roms by modaco

you will maybe have to modify kernel

A port to aosp should be easier to port to any rom as porting from sense to sense

Tapatalked with my JellyBean powered HTC Desire
[Desire Android Development] NeoPhyTe.x360:
the fault can be on libcamera_client.so, if i change it doesn't boot, I changed too by a desire z file, it boots, but camera doesn't work.
[Desire Android Development] martino2k6:
It sounds to me more like a library issue. If there was something strange in HTC's camera code, which caused the preview not the work there, there is a high probability that other applications (which use more generic implementations as they need to target a larger number of devices) would be able to display the preview. Sounds to me more like whatever values the libraries are passing to the application, is not what they should be passing.
[Desire Android Development] NeoPhyTe.x360:
When you put camera (on any froyo rom), the interface of camera, until preview it blocks showing a black screen (like mine), and then it unlock and shows camera, I think it not shows that until it unlocks preview, the interface and image doesn't appear until it. I get the black screen, but camera is waiting something (preview i think) to "unlock" camera and shows image.

PD: I have tried changing Settings.apk, and SettingsProvider.apk from a sense 1.0, and nothing too.
[Desire Android Development] NeoPhyTe.x360:
Tomorrow I will try with a Desire Z RUU.
[Desire Android Development] andycted:
I see someone else already pointed the error in the HD porting thread. Do you think that is somewhat useful ?

Anyway, for what I've seen in another log on pastebin, without comments, the error where it returns in removeWindowLocked, should at least happen after lots of other stuff has happened and object destroyed.

When I tried copy-pasting the Z libs the errors were the same as the HD ones, but I just tried for some minutes...
[Desire Android Development] NeoPhyTe.x360:
There are some important files on /system/bin/ too, and I think there are the "key" on this camera cuestion.
[Desire Android Development] lalexi:
Strace?

Anyone tried to strace an app that uses the camera?
[Desire Android Development] erto90:
Tried vignette and camera360 but it fails to find camera
[Desire Android Development] lalexi:
Can you post the strace log?