導航:首頁 > 操作系統 > android跳轉撥號

android跳轉撥號

發布時間:2024-10-17 01:47:24

A. Android之Activity的幾種跳轉方式

intent2.setComponent(new ComponentName(this, OtherActivity.class)); //方法4 startActivity(intent2); 2.隱式調用方法(只要action、category、data和要跳轉到的Activity在AndroidManifest.xml中設置的匹配就OK 3.跳轉到另一個Activity後,當返回時能返回數據 在跳轉的Activity端,調用startActivityForResult(intent2, 1),跳轉到下一個Activity,其中第一個參數為傳入的意圖對象,第二個為設置的請求碼; 跳轉到第二個Activity後,調用setResult(100, intent)方法可返回上一個Activity,其中第一個參數為結果碼,第二個為傳入的意圖對象;

B. 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);
閱讀全文

與android跳轉撥號相關的資料

熱點內容
單片機里code什麼意思 瀏覽:182
linux修改umask 瀏覽:536
編程鎖的發展 瀏覽:346
唯詞app怎麼改密碼 瀏覽:72
魔獸世界表情命令 瀏覽:985
智能還款信用卡源碼 瀏覽:554
zoo文件夾 瀏覽:762
安卓2k21如何下載 瀏覽:648
某年某月的天數python 瀏覽:912
廣度優先演算法的復雜度 瀏覽:399
系統重裝網站源碼 瀏覽:152
相冊加密相片 瀏覽:297
美國正常化行政命令 瀏覽:277
中級審計師教材pdf 瀏覽:696
wps中pdf旋轉 瀏覽:600
getex命令 瀏覽:190
雲閃付和農行卡app怎麼授權 瀏覽:123
羈絆命令 瀏覽:51
解壓視頻怪獸大全 瀏覽:964
最新中華人民共和國預演算法 瀏覽:861