導航:首頁 > 操作系統 > 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跳轉撥號相關的資料

熱點內容
什麼app可以教你化妝 瀏覽:543
程序員加班996怎麼過 瀏覽:825
有個什麼tv美女直播app 瀏覽:858
編譯gcc比較全的參數 瀏覽:202
stvd取消編譯器優化 瀏覽:421
pdf存儲格式 瀏覽:586
加密軟體提取時沒有這個鍵怎麼辦 瀏覽:911
可以用命令行做什麼好玩的東西 瀏覽:134
榮耀30s帶方丹編譯器嗎 瀏覽:53
黑甲蟲加密軟體加密後文件不見了 瀏覽:275
惠州程序員名單 瀏覽:178
java可移植性 瀏覽:739
加密卡寫卡工具 瀏覽:394
德善緣app是干什麼的 瀏覽:819
中山雲存儲伺服器 瀏覽:687
google蜂鳥演算法 瀏覽:944
為什麼程序員這么受人詬病 瀏覽:100
linuxgtk編程 瀏覽:255
迪拜用什麼app打車 瀏覽:634
java字元串不轉義 瀏覽:310