[android-developers] Re: Whats the best practices when using Camera

2012-08-13 Thread AnDev Quer
You may want to surround the block with an if statement. if(camera != null) { camera.stopPreview(); camera.release(); camera = null; } On Tuesday, January 26, 2010 5:22:38 AM UTC-6, steve wrote: > Greetings, > > I have an application that uses the camera quite

[android-developers] Controlling Emulator with Hardware device?

2012-08-03 Thread AnDev Quer
Hi all, I had heard something in the Google I/O sessions about being able to now use hardware devices to control emulators (touching and possible picture taking, etc). Is this true? If so, has anyone found how to do it? Thanks! -- You received this message because you are subscribed to the

[android-developers] Don't require rear facing camera?

2012-08-02 Thread AnDev Quer
First off, hi everyone. I didn't see this asked and I couldn't figure out how to word it to find it on the android dev site so I figured I'd ask you all. Basically, my company has an application right now that requires for a very specific function the rear-facing camera. This function isn't

[android-developers] MediaPlayer's setDataSource (FileDescriptor fd) with LocalSocket?

2011-02-28 Thread andev
On the MediaPlayers' method: setDataSource (FileDescriptor fd) Does the FileDescriptor need to be seekable? Im asking this because Im trying to use a LocalSocket (which is not seekable) and I am getting this error: setDataSourceFD failed.: status=0x8000 -- You received this message because yo

[android-developers] disable log messages "dataCallback(16, 0x11af10)" when using mCamera.setPreviewCallback(this);

2010-12-10 Thread andev
Im using Camera.setPreviewCallback method to retrieve all the camera frames on the onPreviewFrame on a 2.0.1 device. Im aware about the issue of GC interrupting on each frame on < 2.2 platforms (http://code.google.com/p/android/issues/detail?id=2794) and I'm using the suggested work-around. However

[android-developers] Re: Working with the new ContactContracts API

2010-01-29 Thread andev
Hello, I have been working with contacts. I am able to show them, update but when I want to delete any, it is not deleted completely. In Contacts application is shown as (Unknown) without any data. What is more, I am not able to delete it (only after I give this contact name). I have tried to chan

[android-developers] UDP broadcast receiver

2009-07-02 Thread andev
I am writting an application which is using UDP broadcast. I am able to send information but I can't receive any. Are there any permissions I should set or receiving just doesn't work yet (if not will it work soon?) --~--~-~--~~~---~--~~ You received this message