Can't Get CameraPreview Example to Work

by polyclefsoftware » Thu, 29 Oct 2009 00:21:22 GMT


Sponsored Links
 I upgraded to the 2.0 SDK yesterday...don't know if that has anything
to do with it. I can't get the CameraPreview example from the API
Demos to work. I get the same error in both my emulator and on my G1:

E/AndroidRuntime( 4758): java.lang.RuntimeException: Fail to connect
to camera service

Anyone else experiencing this? If not, any ideas on what's going on?
--~--~---------~--~----~------------~-------~--~----~



Can't Get CameraPreview Example to Work

by Fred Grott(Android Expert) » Thu, 29 Oct 2009 02:48:00 GMT


 did any camera permissions change in AndroidManifest.xml during change
from 1.6 to 2.0?



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Can't Get CameraPreview Example to Work

by polyclefsoftware » Thu, 29 Oct 2009 03:45:22 GMT


 Nah, I just didn't have permissions enabled. Now I feel like a doofus.

Thanks for the help, Fred. :)

On Oct 28, 1:46pm, "Fred Grott(Android Expert)"



--~--~---------~--~----~------------~-------~--~----~



Can't Get CameraPreview Example to Work

by Fred Grott(Android Expert) » Thu, 29 Oct 2009 04:04:04 GMT


 That is okay..





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Can i initiate threads in BroadcastReceiver's onReceive method?

I just skimmed through your post; my 2 cents:
- you have not verified the Intent Action in onReceieve call
- Generally, onReceive() should return immediately so you should use
threads and/or background service, if possible.

-- 

2. Format SD card.

Hi,

Is there any way to Format the SD card data, through Android SDK code?

Regards,
Raj

-- 

3. Application Initialization: Best or Better Practice

4. How to install a DRM CD content

5. Sensor Manager: How to Use

6. using soundPool but sound plays after a delay, sound is lagging

7. link for my products in android market