[android-developers] Re: 1.6 vs setPictureSize

2009-10-26 Thread enervatron
Greivin -- you are exactly right. Sigh. So the real problem here is that they have error checking in setParameters which is a void and throws no exceptions. Either follow Postel's rule as in 1.5, or throw errors. But what 1.6 is doing is a mess. On 10/26/09, Greivin Lopez greivin.lo...@gmail.com

[android-developers] Re: 1.6 vs setPictureSize

2009-10-25 Thread enervatron
Well the auto-scaling definitely worked in 1.5 and stopped working in 1.6. I'm not sure why they'd remove that feature as it requires a lot of hacking using BitmapFactory/Bitmap to get around the fact that you can't load a camera image into an app and manipulate it directly (it has to be

[android-developers] 1.6 vs setPictureSize

2009-10-24 Thread enervatron
Before 1.6: Camera.Parameters parameters = mCamera.getParameters(); parameters.setPictureSize(640, 480); Would deliver me a 640 by 480 image from the Camera. As of the 1.6 OS upgrade on my G1 (it doesn't matter whether the SDK is 1.5 or 1.6) is sends me 2048x1536 pixel images.

[android-developers] webview crashes

2009-09-20 Thread enervatron
hi all, I'm getting fairly regular crashes using WebView's in the underlying C code (sigsegv's). There isn't a _whole_ lot of rhyme or reason to it, but one thing that is somewhat suspicious is that I have more than one webview active (only one is one the screen at any one time, but if this has

[android-developers] ant build problems

2009-08-06 Thread enervatron
HI all, I'm seemingly having problems creating the apk using an ant build for 1.5. It's building so I'm guessing the sdk pointer in local.properties is set correctly, but it seems to not be finding sun.security.x509.* (?). I can see that jarutils.jar is in

[android-developers] Re: ant build problems

2009-08-06 Thread enervatron
I did have a baseadapter which was an inner class, but moving it outside didn't make any difference -- same error. In fact removing any reference to baseadapter didn't make a difference either. I'm not sure what you mean by access it directly: the call is coming from with android sdk build stuff

[android-developers] stupid camera.startPreview question

2009-05-26 Thread enervatron
Hi all, I'm using the camera for which I've used the CameraPreview example. All is working just fine -- I'm getting pictures, etc, but when I spin up the SurfaceView and startPreview on it (directly from the example code) the screen is just blank. Question: shouldn't I be seeing a preview of

[android-developers] Re: stupid camera.startPreview question

2009-05-26 Thread enervatron
yes, the sample code does this, and hence my code is doing it as well. Mike On Tue, May 26, 2009 at 1:56 PM, Max Salley msalley@gmail.com wrote: Whatever SurfaceHolder you gave the camera needs to have its type set to SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS.  This may not be your

[android-developers] Batteryprof

2009-01-13 Thread enervatron
Hi all, I've been thinking about battery life issues as a somewhat clueless new user and what strikes me is that there is between little and no debugging scaffolding to profile what affects battery life. Currently there are some pretty high level guidelines: 1) not turning on your android

[android-developers] GPS Failures

2009-01-04 Thread enervatron
Hi all, I've noticed a couple of problems with the onboard GPS on the G1 that seem like something's going wrong with the underlying interface to the gps hardware. 1) There are times when the GPS just never synchs with the satellites regardless of whether it's in a clear area open to sky,

[android-developers] signing cert revocation

2008-12-22 Thread enervatron
Hi, I just read through the archives and Dianne answered where we currently are, but I'm not sure that's a very good place. When signing an app, it appears that the platform is doing, essentially, a leap of faith kind of signing key trust ala SSH. That is, if i've never seen a key/name binding

[android-developers] G1 vs. Fedora Core (6+) vs. udev

2008-12-18 Thread enervatron
Hi all, I've finally figured out what was going wrong with the udev stuff on Fedora Core 6 setting up the USB device for adb. The advice for Ubuntu may be correct, but it doesn't work out of the box with Fedora Core 6 and probably higher. The reason is because Fedora Core 6 has a rule in

[android-developers] Re: G1 vs. Fedora Core (6+) vs. udev

2008-12-18 Thread enervatron
Sure... the reason that I posted it here is so that it would get indexed and hence be googleable so that us mortals can find it too :) Mike On Thu, Dec 18, 2008 at 4:30 PM, Jean-Baptiste Queru j...@google.com wrote: Do you think that you could copy-paste your email (as is) in a new bug

[android-developers] Re: Getting error when trying to read file : java.lang.IllegalArgumentException: File /data/testing.txt contains a path separator

2008-12-10 Thread enervatron
On Wed, Dec 10, 2008 at 8:38 AM, Mark Murphy [EMAIL PROTECTED] wrote: openFileInput() gives you a storage spot unique to your application in the on-board flash. It is not for use for, say, accessing /sdcard. This brings up a question I have: is there an etiquette for apps putting stuff on the

[android-developers] Kalman Filters for the GPS data

2008-12-07 Thread enervatron
hi all, so i understand that there are lots of smart people at google, so maybe maybe this is already in shipping libraries :) My guess is that the GPS data coming back from the my android is just raw, unmassaged data as it gets it from whatever chipset the T1 is using (just like what happens

[android-developers] Re: Epilog: Largish HTTP Post vs. ANR

2008-12-07 Thread enervatron
Dumb question... where's the appropriate place to send the bug reports? Mike On Fri, Dec 5, 2008 at 5:27 PM, Andrew Stadler [EMAIL PROTECTED] wrote: On Fri, Dec 5, 2008 at 8:40 AM, [EMAIL PROTECTED] wrote: So I finally figured out what was going on. It had nothing to do with HTTP posts,

[android-developers] Re: Epilog: Largish HTTP Post vs. ANR

2008-12-05 Thread enervatron
On Thu, Dec 4, 2008 at 6:26 PM, Dianne Hackborn [EMAIL PROTECTED] wrote: You can look in I believe /data/anr/traces.txt to find a dump of the stacks of all processes and threads when the ANR happened, which should tell you what your thread was stuck doing at the time. Ah, nice. You should put

[android-developers] Largish HTTP Post vs. ANR

2008-12-04 Thread enervatron
Hi all, I'm using a helper thread to post data back to a web site. What I notice is that I'm getting an Application Not Responding back in the main thread even though it's not doing anything other than interrupting the helper thread to wake up. If the amount of data in the post is small (~

[android-developers] Re: Largish HTTP Post vs. ANR

2008-12-04 Thread enervatron
make any sense to me. Mike Let me know if this isn't the issue. Cheers, Justin Android Team @ Google On Dec 4, 1:33 pm, enervatron [EMAIL PROTECTED] wrote: Hi all, I'm using a helper thread to post data back to a web site. What I notice is that I'm getting an Application Not Responding

[android-developers] Re: Largish HTTP Post vs. ANR

2008-12-04 Thread enervatron
Yes, I've already coded that up and it behaves identical to HttpURLConnection. So that's not the root cause of this. I just tested this on 3g vs. my home wireless and it too behaves identically, so it's not the kind of net connectivity that's causing this either. Mike On Thu, Dec 4, 2008 at