Ⅰ android 跳轉到撥號界面如何自動填寫手機號,但是不自動撥出
1、跳轉到撥號界面,代碼如下:
1)直接撥打
java">IntentintentPhone=newIntent(Intent.ACTION_CALL,Uri.parse("tel:"+phoneNumber));
startActivity(intentPhone);
2)跳轉到撥號界面
Intentintent=newIntent(Intent.ACTION_DIAL,Uri.parse("tel:"+phoneNumber));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
2、跳轉到聯系人頁面,使用一下代碼:
IntentintentPhone=newIntent(Intent.ACTION_CALL,Uri.parse("tel:"+phoneNumber));
startActivity(intentPhone);
Ⅱ QQ通訊錄(Android)如何直接撥號
可按照以下步驟操作:在「設置->撥號設置->一鍵撥號」里設置一鍵撥號,那當你在撥號界面,長按對應的數字後便可直接撥號
Ⅲ QQ通訊錄(Android)如何設置和查詢一鍵撥號
你可在「設置->撥號設置->一鍵撥號」里設置一鍵撥號,那當你在撥號界面,長按對應的數字後便可直接撥號。同樣通過「設置->撥號設置->一鍵撥號」來查看一鍵撥號。
Ⅳ android4.0撥號問題
手機區域問題,把區域設置為中國。按手機的MENU,選擇設置--呼叫---,把NBPCD和輔助撥號中的區域改為CHINA 460,一切OK。
Ⅳ android手機怎麼快速撥號
在桌面編輯下添加快捷方式選擇快速撥號就可以了 或者進入360手機衛士介面,找到最後的 設置 鍵,進入,拖到最後一項,點擊 桌面創建快速撥號圖標,即可在手機桌面顯示
Ⅵ 安卓模擬器上的撥號器在哪
Android的手機模擬器自帶有撥號功能,我們先試試自帶的撥號功能。我們啟動兩個Android 2.3.3版本的模擬器。你有沒有注意每個模擬器左上角有一個這樣的
,只不過數字不同,這究竟是什麼含義呢?每個模擬器將會被綁定到「192.168.1.1」這個本地IP上,而後面的「5556」則是他的埠號,所以這個模擬器的唯一標識地是:「192.168.1.1:5556」,所以,這個埠號可以當作是我們的手機號。只要明白了這個,就不會困惑「沒有手機號怎麼撥打呢?」
打開手機號是「5554」的模擬器,輸入「手機號」5556,點擊「撥打鍵」,兩個手機則實現通話了
Ⅶ android 怎麼用一個模擬器給另一個模擬器打電話
一、布局,拖一個框用來輸入電話號碼,一個按扭撥號
二、打電話的許可權添加進來
<uses-permission android:name="android.permission.CALL_PHONE"/>
三、寫撥號的點擊事件
Activity:
public class DialerAction extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button button =(Button)findViewById(R.id.button);
button.setOnClickListener(new View.OnClickListener(){
publicvoid onClick(View v) {
EditTexteditText = (EditText)findViewById(R.id.mobile);
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:"+ editText.getText()));
DialerAction.this.startActivity(intent);
}
});
}
}
四,輸入另一個模擬器,例如5554 5556之類的號碼就可以打電話了
Ⅷ ANDROID有沒有實用的快速撥號程序啊
還是沒人回答?哭! 2# jasondane@mail.
Ⅸ Android實現撥號功能
請檢查你這個activity的permission,有沒有加上以下的設置。
在AndroidManifest.xml裡面添加。
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.CALL_PRIVILEGED" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />
另外幫你貼下android自帶撥號程序的核心部分,請自己參照下吧~~
public class OutgoingCallBroadcaster extends Activity {
private static final String PERMISSION = android.Manifest.permission.PROCESS_OUTGOING_CALLS;
private static final String TAG = "OutgoingCallBroadcaster";
private static final boolean LOGV = true;//Config.LOGV;
public static final String EXTRA_ALREADY_CALLED = "android.phone.extra.ALREADY_CALLED";
public static final String EXTRA_ORIGINAL_URI = "android.phone.extra.ORIGINAL_URI";
private Phone mPhone;
@Override
protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
mPhone = PhoneApp.getInstance().phone;
Intent intent = getIntent();
if (LOGV) Log.v(TAG, "onCreate: Got intent " + intent + ".");
String action = intent.getAction();
String number = PhoneNumberUtils.getNumberFromIntent(intent, this);
if (number != null) {
number = PhoneNumberUtils.stripSeparators(number);
}
final boolean emergencyNumber =
(number != null) && PhoneNumberUtils.isEmergencyNumber(number);
boolean callNow;
if (getClass().getName().equals(intent.getComponent().getClassName())) {
// If we were launched directly from the OutgoingCallBroadcaster,
// not one of its more privileged aliases, then make sure that
// only the non-privileged actions are allowed.
if (!Intent.ACTION_CALL.equals(intent.getAction())) {
Log.w(TAG, "Attempt to deliver non-CALL action; forcing to CALL");
intent.setAction(Intent.ACTION_CALL);
}
}
/* Change CALL_PRIVILEGED into CALL or CALL_EMERGENCY as needed. */
if (Intent.ACTION_CALL_PRIVILEGED.equals(action)) {
action = emergencyNumber
? Intent.ACTION_CALL_EMERGENCY
: Intent.ACTION_CALL;
intent.setAction(action);
}
if (Intent.ACTION_CALL.equals(action)) {
if (emergencyNumber) {
finish();
return;
}
callNow = false;
} else if (Intent.ACTION_CALL_EMERGENCY.equals(action)) {
if (!emergencyNumber) {
finish();
return;
}
callNow = true;
} else {
finish();
return;
}
// Make sure the screen is turned on. This is probably the right
// thing to do, and more importantly it works around an issue in the
// activity manager where we will not launch activities consistently
// when the screen is off (since it is trying to keep them paused
// and has... issues).
//
// Also, this ensures the device stays awake while doing the following
// broadcast; technically we should be holding a wake lock here
// as well.
PhoneApp.getInstance().wakeUpScreen();
/* If number is null, we're probably trying to call a non-existent voicemail number or
* something else fishy. Whatever the problem, there's no number, so there's no point
* in allowing apps to modify the number. */
if (number == null || TextUtils.isEmpty(number)) callNow = true;
if (callNow) {
intent.setClass(this, InCallScreen.class);
startActivity(intent);
}
Intent broadcastIntent = new Intent(Intent.ACTION_NEW_OUTGOING_CALL);
if (number != null) broadcastIntent.putExtra(Intent.EXTRA_PHONE_NUMBER, number);
broadcastIntent.putExtra(EXTRA_ALREADY_CALLED, callNow);
broadcastIntent.putExtra(EXTRA_ORIGINAL_URI, intent.getData().toString());
broadcastIntent.putExtra(EXTRA_INTENT_FROM_BT_HANDSFREE,
intent.getBooleanExtra(OutgoingCallBroadcaster.EXTRA_INTENT_FROM_BT_HANDSFREE, false));
if (LOGV) Log.v(TAG, "Broadcasting intent " + broadcastIntent + ".");
sendOrderedBroadcast(broadcastIntent, PERMISSION, null, null,
Activity.RESULT_OK, number, null);
finish();
}
}
Ⅹ 在android開發中,如何實現一鍵撥號。是用「intent」然後調用資料庫中的號碼來實現嗎
是先獲得存儲的號碼,然後把號碼作為Intent中的參數,啟動撥號應用來實現的一鍵撥號。