[android-developers] Re: Bitmap issues - failing silently, not OOM

2011-10-24 Thread mjmeyer
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

[android-developers] Re: Camera application

2011-10-14 Thread mjmeyer
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

[android-developers] Re: How to toggle on gps in android programatically?

2011-08-29 Thread mjmeyer
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

[android-developers] Re: Android Application testing on real device

2011-01-24 Thread mjmeyer
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

[android-developers] Re: Pictures taken in my camera app not showing up in gallery

2011-01-19 Thread mjmeyer
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

[android-developers] Re: problem with camera

2010-11-29 Thread mjmeyer
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

[android-developers] Samsung Galaxy Camera flash-mode and zoom-supported oddities

2010-10-07 Thread mjmeyer
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

[android-developers] Market total install count stopped updating?

2010-09-28 Thread mjmeyer
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

[android-developers] Re: Placing a bitmap image in ImageView

2010-06-15 Thread mjmeyer
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. --