Hi Mohithif you are done with all your networking stuff then put the code in a method and run a thread from the activity and call that method. Keep in mind that you need to create a surface and get holder from that and holder.lockcanvas() give you the canvas and then use that canvas in the camera.capture(canvas) method show your camera in emulator. Let me know if you get this or not.
On Sat, Oct 3, 2009 at 6:54 AM, Mohith K M <mohith3...@gmail.com> wrote: > > Me to Struck at This Android Emulator-Camera stuff :( > > can Somone please give more details > > "CameraSource cs = new SocketCamera("192.168.0.100", 9889, 320, 240, > true); > if (!cs.open()) { /* deal with failure to obtain camera */ } > while(/*some condition*/) { > cs.capture(canvas) //capture the frame onto the canvas > } > cs.close(); " > > Where should we put these code? > > > On Sep 29, 9:02 am, shobhit kasliwal <shobhit.kasli...@gmail.com> > wrote: > > I tried these wrapper classes...but no luck...can you tell me how can I > do > > that......can you help me on this.... > > > > Thanks > > Shobhit > > > > On Mon, Sep 28, 2009 at 10:22 PM, Chi Kit Leung <michaelchi...@gmail.com > >wrote: > > > > > > > > > > > > >http://www.tomgibara.com/android/camera-source > > > > > Would this one be helpful? > > > > > On Tue, Sep 29, 2009 at 12:53 AM, Shobhit Kasliwal < > > > shobhit.kasli...@gmail.com> wrote: > > > > >> Hi > > > > >> Can anyone tell me how can I use my computers webcam as camera in > > >> android emulator. > > >> Tutorial would be a great help for me. > > > > >> Thanks, > > >> Shobhit Kasliwal > > > > >> -- > > >> Regards, > > >> Michael Leung > > >>http://www.itblogs.info > > >>http://www.michaelleung.info > > > > -- > > Shobhit Kasliwal > > Application Developer Intern > > Liventus Designs > > 3400 Dundee Rd Northbrook IL 60062 > > skasli...@liventus.com > > office: 847-291-1395 ext. 192 > > Cell: (309) 826 4709 > > > > Samuel Goldwyn< > http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html> > > - "I'm willing to admit that I may not always be right, but I am never > > wrong." > > > -- Shobhit Kasliwal Application Developer Intern Liventus Designs 3400 Dundee Rd Northbrook IL 60062 skasli...@liventus.com office: 847-291-1395 ext. 192 Cell: (309) 826 4709 Ted Turner <http://www.brainyquote.com/quotes/authors/t/ted_turner.html> - "Sports is like a war without the killing." --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---