I have seen something similar when using the unbuffered variants of
stream readers when getting from urls.
Youre using a BufferedInputStream which might have the same effect. I
successfully use the following to get images into bitmaps and was
having similar problem until it was changed to use Buff
Without any logcat output or code as Fina suggested, I'd guess that
you are setting a some specific camera parameter value that a
particular model just doesnt support.
There are wide ranges of camera hardware out there and I see many
people do things like assume that 640x480 preview sizes are avai
While you may not be able to programatically turn it on for the user
you still can assist the use by sending them to location settings to
turn it on themselves. That's at least better than just telling them
to hunt for it. The following should work:
startActivityForResult(new
Intent(android.provid
The emmulator has proven adequate for me in terms of testing screen
sizes, layout and most functionality.
Where I suffer is in the maddening levels of Camera API support from
the various manufacturers. Some report no supported preview sizes,
they support zoom in differing ways, etc.
I havent trie
You may have to try saving the pics to a dir under SD root.
In an augmented reality game of mine, I save pics to a dir my app
creates on SD card and then use MediaScanner to cause them to show up
in Gallery. Works fine 1.6 -> 2.2.
I did notice that before adding the MediaScanner stuff, the pics
w
My guess would be that the h & w you are passing to setPreviewSize(w,
h) is not a supported preview size for the N1.
You'll need to use Camera.getSupportedPreviewSizes() and choose one
from there that will work for your needs.
Try commenting that line out and see if it matters. The default
previe
I've been stunned by how different Samsung's camera behaves compared
to the other devices I've tested camera preview stuff with.
Mind you, this is in 2.1 so the SDK 8 Camera.getZoomRatios() and
Camera.isZooomSupported() are not available.
Looking at the Camera.getParameters().flatten() result sho
I released an app a few days ago and saw the total & active install
count start moving pretty much immediately.
However, over the last day or so it seems to have stalled. Judging
from the ad metrics from AdMob over the same period though I'm pretty
sure it's getting more downloads.
Does anyone ha
Have a look at Bitmap.CreateScaledBitmap(Bitmap src, int dstWidth,
int dstHeight, boolean filter). You should be able to use that to
scale it into your ImageView dimensions before setting it.
However, ImageView.ScaleType.CENTER should give you what you want even
without the extra bm creation.
--
9 matches
Mail list logo