2012年4月14日土曜日

Call

I try intent for call the number.
I prepare button for call. and prepare listener.
I intent ACTION_CALL.
Button b= (Button)findViewById(id.button1);
b.setOnClickListener(new View.OnClickListener() {
 
 @Override
 public void onClick(View v) {
        Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:117"));
        startActivity(intent);
 }
});

If you pushed button, phone call 117. 117 is "you get time in japan".
source code is here. Please suggest your android issue by twitter or mail, I would try to clear up your issue.

0 件のコメント:

コメントを投稿