Featured App: CameraSource
For all of you that are working on that killer app that is going to process catured images from the camera phone you'll want to check out CameraSource. It's a set of Java classes created by Tom Gibara that allows you to overcome the current limitation of not being able to use a webcam with the SDK.
With CameraSource the emulator can connect to a "remote" webcam, for example the one on your computer. The code looks very easy to work with, and would be a great way to start messing with different cool things you can do with the images captured from a camera phone.
Here is an example to show how easy it is:
- CameraSource cs = new RemoteCamera("192.168.0.100", 9889, 320, 240);
- if (!cs.open()) { /* deal with failure to obtain camera */ }
- while(/*some condition*/) {
- cs.capture(canvas); //capture the frame onto the canvas
- }
- cs.close();
You can download the classes on Tom Gibara's website.
New tutorials from Helloandroid
Recent Apps
Android on Twitter
-
@619Apps (iPhone App Developer)'Xperia Sola' trademark hints at another possible Sony handset for the U.S. - http://t.co/atxhdfFz #iPhone #android #apps
3 hours 25 min ago -
@ayakaarchdia233 (Love)I've just received an achievement: Discriminating Shopper https://t.co/LDVOSV6I #Android #Androidgames
3 hours 25 min ago -
@DevrynBluelagon (Devryn Bluelagon)I've just received an achievement: Novice Photographer https://t.co/NpjOoveN #Android #Androidgames
3 hours 25 min ago -
@games_lma (leila marie ashley)I've just received an achievement: Persistent Shopper https://t.co/vTs6DSor #Android #Androidgames
3 hours 25 min ago -
@hawkhugh (hawkhugh)Apple's iPad3 http://t.co/T9dSUJA9 #apple #ipad3 #iphone #android
3 hours 25 min ago
Poll
Useful resources
Android Development Projects
- Tourist guide for Android and IPHONE need by Denakom
- Android App: GPS: Form: Database: Website by danishayubb
- Jquery Mobile Project 01 by menfirst
- Simple Android App to load our Mobile Site - Hiring NOW! by steadysystems
- mobile app by ultimaterrrr
- android apps by vaneet08
- Online food shopping app (anroid) by akshaynawale
- Android eBook / reader Application by bamohriz
- Android app 50k downloads by nhcteam
- Beautiful Android Live Wallpaper by wahid2o11



Comments
sry cant do
sry cant do anything
Refinance Mortgage
it is sometimes world of hard
it is sometimes world of hard to Pandora in a world of adults Pandora Bracelets
Thank you for sharing this
Thank you for sharing this valuable information with us. I will keep visiting you post again and again. I hope to get some new ideas in comming days. Thanks!!!
FRANK KERN
Hi, I am still a newbie in
Hi,
I am still a newbie in android and I tried to run this code by adding it to the oncreate method and it did not work.
This is the code:
public class OurCamera extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
int i = 0;
Canvas canvas = new Canvas();
CameraSource cs = new SocketCamera("192.168.0.100", 9889, 320, 240, true);
if (!cs.open())
{
i = 1;
}
while(i == 0)
{
cs.capture(canvas); //capture the frame onto the canvas
} //end while
cs.close();
}//end OnCreate
}
What am I doing wrong pls?
thanks
regards, james