TomSelleck
TomSelleck

Reputation: 6968

Using Camera in Application

I have been trying to implement the camera into my application following this tutorial. The source code for the example works fine, but when I try to use it in my own application I get an error for

_button.setOnclickListener(new ButtonClickHandler());

The error is

ButtonClickHandler cannot be resolved to a type

I can't figure out what the matter is at all, if anybody has an idea I'd appreciate some help !!

Upvotes: 0

Views: 136

Answers (1)

ChapMic
ChapMic

Reputation: 28144

Did you create the ButtonClickHandler class in your project like on this website ?

public class ButtonClickHandler implements View.OnClickListener
{
public void onClick( View view ){
    startCameraActivity();
}
}

Upvotes: 1

Related Questions