<span style="font-size: 11px;"><strong>public class </strong>MainActivity <strong>extends </strong>Activity {
    <span style="color: rgb(128, 128, 0);">@Override
</span><span style="color: rgb(128, 128, 0);">    </span><strong>protected void </strong>onCreate(Bundle savedInstanceState) {
        <strong>super</strong>.onCreate(savedInstanceState);
        setContentView(R.layout.<em>activity_main</em>);
        Button lampButton = (Button) findViewById(R.id.<em>lamp</em>);
        Button curtainButton = (Button) findViewById(R.id.<em>curtain</em>);
        Button boilerButton = (Button) findViewById(R.id.<em>boiler</em>);
        Button cameraButton = (Button) findViewById(R.id.<em>camera</em>);
    }
    <strong>public void </strong>onClick(View v) {
        <strong>switch </strong>(v.getId()) {
            <strong>case </strong>R.id.<em>lamp</em>:
                Intent intent = <strong>new </strong>Intent(getApplicationContext(), lampActivity.<strong>class</strong>);
                startActivity(intent);
                <strong>break</strong>;
            <strong>case </strong>R.id.<em>curtain</em>:
                Intent intent2 = <strong>new </strong>Intent(getApplicationContext(), curtainActivity.<strong>class</strong>);
                startActivity(intent2);
                <strong>break</strong>;
            <strong>case </strong>R.id.<em>boiler</em>:
                Intent intent3 = <strong>new </strong>Intent(getApplicationContext(), boilerActivity.<strong>class</strong>);
                startActivity(intent3);
                <strong>break</strong>;
            <strong>case </strong>R.id.<em>camera</em>:
                Intent intent4 = <strong>new </strong>Intent(getApplicationContext(), cameraActivity.<strong>class</strong>);
                startActivity(intent4);
                <strong>break</strong>;
        }
    }
}</span> 
버튼 lamp curtain boiler 는 작동하는데 카메라가 작동을 안합니다 ㅠ