case R.id.btn_dial:
i = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:01011112222"));
startActivity(i);
break;
이런 부분에서 숫자를 빼고 db 값을 가져와야 할 것 같긴 한데 생각처럼 안되네요.
Intent intent = new Intent(MapActivity.this, listActivity.class);
startActivity(intent);
String mid = intent.getStringExtra("mid");
String mname = intent.getStringExtra("mname");
String mphone = intent.getStringExtra("mphone");
Log.d("receive", "mid : " + mid);
Log.d("receive", "mname : " + mname);
Log.d("receive", "mphone : " + mphone);
위에 부분이 전 activity에서 값을 가져오는 부분인데,
i = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + mphone));
이렇게 적으면 안되더라구요.
어떻게 적어야 할지 ...ㅠㅠ