protected void makePhoneCall() {
Map<String,Object> mapRest =(Map<String, Object>) restaurantListAdapter.getItem(positionOfItem);
positionId=(Long) mapRest.get("restID");
Logger.d("restId (positionId) is "+positionId);
Restaurant restaurantSelected=Restaurant.queryRestaurantById(positionId, this);
String telNum=restaurantSelected.getRestTelNumber();
Uri uri = Uri.parse("tel:"+telNum);
Intent intent=new Intent(Intent.ACTION_CALL,uri);
startActivity(intent);
}在这个应用中,可以调用拨号呼叫,这个过程没有问题
而现在的情况是,每次按下end,返回的都是通话记录
但是我想在呼叫结束时,即按下end按钮(系统默认呼叫界面的)后可以返回该activity
这个该如何实现呢
Map<String,Object> mapRest =(Map<String, Object>) restaurantListAdapter.getItem(positionOfItem);
positionId=(Long) mapRest.get("restID");
Logger.d("restId (positionId) is "+positionId);
Restaurant restaurantSelected=Restaurant.queryRestaurantById(positionId, this);
String telNum=restaurantSelected.getRestTelNumber();
Uri uri = Uri.parse("tel:"+telNum);
Intent intent=new Intent(Intent.ACTION_CALL,uri);
startActivity(intent);
}在这个应用中,可以调用拨号呼叫,这个过程没有问题
而现在的情况是,每次按下end,返回的都是通话记录
但是我想在呼叫结束时,即按下end按钮(系统默认呼叫界面的)后可以返回该activity
这个该如何实现呢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货