[android-developers] Re: Make a photo with Android Emulator
There is a command line tool for making an SD card, you then need to pass it in as a command line argument to the emulator. Presuming tools is in your PATH; Command line: mksdcard 1024M sd.iso Argument to emulator: -sdcard C:\PATH_TO_SD\sd.iso Add files manually: adb push local_file sdcard/remote_file A quick google search for Android sdcard yielded this previous question; http://groups.google.com/group/android-developers/browse_thread/thread/9d068936b43c5f27?pli=1 with a link to a tutorial should you need further instruction. Hope this helps! Gav On Thu, Jan 22, 2009 at 10:18 AM, ANDREA P wrote: > > If I use the Camera of Emulator appear this text :"Please insert the > SDCARD before using the Camera" > > How do I simulate a SDCARD > > Thanks ! > > > > On 21 Gen, 21:06, Dave Sparks wrote: > > You need to call startPreview() before takePicture. You also need to > > supply a PictureCallback function to receive the encoded JPEG. By > > passing null, you are telling the camera service you don't want the > > final JPEG image. > > > > On Jan 21, 2:50 am, ANDREA P wrote: > > > > > I want to use the camera tomakeaphotosnapshot with Android . > > > > > At the beginning in my code : > > > > > Camera mCamera = Camera.open(); > > > > > PictureCallback callback = null; > > > mCamera.takePicture(null, null, callback); > > > > > but nothing doesn't happen > > > > > And if I Use the program Camera of the phone Emulator says that I have > > > to insert the SD Card. > > > > > Please Help me..Thanks > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Make a photo with Android Emulator
Problem Resolved Thanks On 22 Gen, 11:18, ANDREA P wrote: > If I use the Camera of Emulator appear this text :"Please insert the > SDCARD before using the Camera" > > How do I simulate a SDCARD > > Thanks ! > > On 21 Gen, 21:06, Dave Sparks wrote: > > > You need to call startPreview() before takePicture. You also need to > > supply a PictureCallback function to receive the encoded JPEG. By > > passing null, you are telling the camera service you don't want the > > final JPEG image. > > > On Jan 21, 2:50 am, ANDREA P wrote: > > > > I want to use the camera tomakeaphotosnapshot with Android . > > > > At the beginning in my code : > > > > Camera mCamera = Camera.open(); > > > > PictureCallback callback = null; > > > mCamera.takePicture(null, null, callback); > > > > but nothing doesn't happen > > > > And if I Use the program Camera of the phone Emulator says that I have > > > to insert the SD Card. > > > > Please Help me..Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Make a photo with Android Emulator
If I use the Camera of Emulator appear this text :"Please insert the SDCARD before using the Camera" How do I simulate a SDCARD Thanks ! On 21 Gen, 21:06, Dave Sparks wrote: > You need to call startPreview() before takePicture. You also need to > supply a PictureCallback function to receive the encoded JPEG. By > passing null, you are telling the camera service you don't want the > final JPEG image. > > On Jan 21, 2:50 am, ANDREA P wrote: > > > I want to use the camera tomakeaphotosnapshot with Android . > > > At the beginning in my code : > > > Camera mCamera = Camera.open(); > > > PictureCallback callback = null; > > mCamera.takePicture(null, null, callback); > > > but nothing doesn't happen > > > And if I Use the program Camera of the phone Emulator says that I have > > to insert the SD Card. > > > Please Help me..Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Make a photo with Android Emulator
You need to call startPreview() before takePicture. You also need to supply a PictureCallback function to receive the encoded JPEG. By passing null, you are telling the camera service you don't want the final JPEG image. On Jan 21, 2:50 am, ANDREA P wrote: > I want to use the camera to make a photo snapshot with Android . > > At the beginning in my code : > > Camera mCamera = Camera.open(); > > PictureCallback callback = null; > mCamera.takePicture(null, null, callback); > > but nothing doesn't happen > > And if I Use the program Camera of the phone Emulator says that I have > to insert the SD Card. > > Please Help me..Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---