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

熱點內容
單片機380v接觸器怎麼控制 瀏覽:782
阿里雲域名本地伺服器 瀏覽:453
資料庫地址伺服器 瀏覽:2
路由器加密碼登錄不上 瀏覽:813
qq可以加密密碼 瀏覽:854
網上認證無法連接網站伺服器地址 瀏覽:920
java資料庫建表 瀏覽:172
linux本地埠 瀏覽:36
郵票目錄pdf 瀏覽:378
解壓筆真的有用嗎 瀏覽:538
plc語法和編程語句 瀏覽:115
南航app學生旅行產品在哪裡 瀏覽:240
漫畫pdf網盤 瀏覽:495
手機pdf字太小 瀏覽:892
解壓縮安裝圖解 瀏覽:257
安卓如何查看運行伺服器 瀏覽:681
土質學pdf 瀏覽:995
郵箱收發伺服器地址 瀏覽:144
web前端和python 瀏覽:639
定址演算法 瀏覽:783