[질의사항]

 
작성일 : 16-09-21 09:13
안드로이드
 글쓴이 : 최고관리자
조회 : 2,416  
public void onClicked(View v)
    {
        Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("tel:010-5766-4224"));
        startActivity(intent);
    }


 public void onClick01(View v) {
      Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://transhome.kr"));
        startActivity(intent);
    }

    public void onClick02(View v) {
        Toast.makeText(getApplicationContext(),"버튼이 눌렸습니다.", Toast.LENGTH_LONG).show();
    }
    public void onClick03(View v) {
        Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("tel:010-5766-4224"));
        startActivity(intent);
    }
    public void onClick04(View v) {
        Intent intent_01 = new Intent(getApplicationContext(), MainActivity.class);
        startActivity(intent_01);
    }





 LinearLayout container = new LinearLayout(this);
        container.setOrientation(LinearLayout.VERTICAL);

        Button b1 = new Button(this);
        b1.setText("버튼1");
        container.addView(b1);
        setContentView(container);