Android 应用中拨打电话

    技术2024-12-28  53

    try { 2   Intent intent = new Intent(Intent.ACTION_CALL); 3   intent.setData(Uri.parse("tel:+110")); 4   startActivity(intent); 5} catch (Exception e) { 6   Log.e("SampleApp", "Failed to invoke call", e); 7}

    最新回复(0)