[android-developers] Re: Camera Application Not Working When I Test on My Phone

2010-09-27 Thread als
Sorry that it's really late and you might not need an answer anymore, but I've just read this thread. Maybe your problem is the preview format parameter. Format YUV_422_SP is not valid in my Motorola Milestone and could be not valid in your HTC neither. Just try with YUV_420_SP. Is it working now?

[android-developers] Re: JDOM in Android 2.1 or earlier

2010-08-27 Thread als
Thanks for the answer. I agree JDOM is slower and uses lot more memory than a SAX parser, but we already have the implementation in JDOM, and we wanted to reuse it, at least for the moment. Reuse is allways faster and in software development you never have enough time. If we finish the project soon

[android-developers] Re: getPreviewSize() bad result on Froyo emulator

2010-08-27 Thread als
Yesterday I tried that buffered methods in a real device (HTC Desire) and it didn't work either. Now I'm wondering if I use it the wrong way. My code is this: Parameters params = mCamera.getParameters(); mPixelFormat = PixelFormat.YCbCr_420_SP; params.setPreviewFormat(mPixelFormat); mCamera.setPar

[android-developers] Re: JDOM in Android 2.1 or earlier

2010-08-26 Thread als
Nobody could do it? I'm going to do some tests changing the input xml, adding aliases for namespaces and so on. Maybe that exception appears only in some cases and I can make it work. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] JDOM in Android 2.1 or earlier

2010-08-20 Thread als
Hi all, I was trying to use JDOM to parse a response from my REST web service, when it threw a StringIndexOutOfBoundsException. I dug into the code and I found that Exception is thrown in a substring method when the JDOM is trying to recover something like a property name. I did a little search in

[android-developers] getPreviewSize() bad result on Froyo emulator

2010-08-18 Thread als
Hello all, I was trying to use some of the new camera methods included in Froyo, i.e. setPreviewCallbackWithBuffer() & addCallbackBuffer(). In the documentation it's said you need first to create a buffer of appropriated size and use the addCallbackBuffer() method. The buffer size must be width *

[android-developers] Hide camera preview on augmented reality app

2010-03-26 Thread als
Hi all, I want to develop an augmented reality application, but I'm having some trouble in the first steps. The first I want to do is to get a frame with the onPreviewFrame callback, process it, and then draw it in the screen. Here I want to hide the camera preview, I mean, I don't want to draw it