Mark,
I noticed on the bug report you filed that it was stopPreview that was
causing the problem. Apparently, this should not be called before
takePicture or else it causes a problem.
I was also having an issue on the Droid with taking a picture, and I
was calling stopPreview before takePicture.
Arnouf,
I can't help you with that exact problem, but I have an app that does
something very similar (What Color). If you look a little deeper into
the decodeYUV function, you will see that it is returning ARGB values
in an array. Therefore, you do not really need to convert the image
to a
Arnouf,
After reading a little more, I realized what may be causing your
original problem, if you still intend to do it that way. The
setPreviewSize method does not seem to work, at least on the G1 and
MyTouch3G. So in your decodeYUV function you are assuming the data
returned will be 50*50
I would like to apply a different drawable (or different colors to my
gradient drawable), based on the Theme. Is this possible?
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Chris,
The camera paramter you set was orientation right? This is what I
use in 1.6 and it works:
cp.set(orientation, landscape);
or
cp.set(orientation, portrait);
Mike
On Oct 21, 10:18 pm, cpick cp...@vmenu.com wrote:
My app while compiled in 1.5 works fine. I had some memory issues w/
I've personally tried it on the g1 and mytouch 3g, both running 1.6.
It works fine for both. I'm not sure if it works for 1.5 phones but I
think its reasonable to assume it works for 1.6+
On Oct 15, 4:54 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
Thanks!
Does this work for every
Yes, I believe you have to rotate programmatically. That's how I do
it.
On Oct 16, 5:04 pm, Greivin Lopez greivin.lo...@gmail.com wrote:
Actually it does not work as I expected!!
I've tested it in a G1 and it work great for the camera preview, but
when you take the picture the JPEG is still
I was using camera.setPreviewCallback and my program was crashing
sometimes when using AutoFocus or TakePicture. I found that if you
disable the PreviewCallback (set to null) before calling AutoFocus or
TakePicture, it does not happen nearly as often.
For the few times it still happened, I
Use the android:scaleType attribute with a value of FIT_XY or
FIT_CENTER.
On Oct 8, 7:43 am, Asif k asifk1...@gmail.com wrote:
Hi All,
I am adding the drawble image xyz.png in the ImageView. But the
problem is that the whole image cannot included in the view.
by reducing layout height
Yes, the images from the camera are 2048px by 1536px. If you convert
to a bitmap, thats 2048 x 1536 x 2 = 6291456, or 6MB. This is right
at the allotted space an Activity gets. If you can live with smaller
images, I would suggest using a sampleSize of 1 when decoding the
image. This will
fix it.
Mike
On Oct 5, 3:36 pm, Jarcikon jarci...@gmail.com wrote:
Chris,
I am having the same problem. This is due to the update to Donut (1.6
SDK). According to the docs, if you set targetSdkVersion in your
manifest file to 4 these permissions should not appear unless
specifically
Rory,
I would use a RelativeLayout as the parent for the gallery, then set
android:layout_alignParentBottom=true on the gallery.
Mike
On Oct 6, 2:42 pm, Rory metalhead1...@gmail.com wrote:
How would I set up mygalleryto be on thebottomof the screen? Would
I need to create a gridLayout and
Chris,
I am having this same problem. I am assuming you are compiling on
Android 1.6 SDK? These permissions are granted by default for older
apps, but need to be specifically requested for apps targeting 1.6.
If you change android:targetSdkVersion to 4 then you shouldn't see
these permissions
Chris,
I am having the same problem. This is due to the update to Donut (1.6
SDK). According to the docs, if you set targetSdkVersion in your
manifest file to 4 these permissions should not appear unless
specifically requested. However, I have tried this and it is not
working for me.
Does
14 matches
Mail list logo