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

熱點內容
keil分段編譯 瀏覽:26
app有了用戶後怎麼賺錢 瀏覽:306
程序員那麼可愛20觀看 瀏覽:999
一個數除以二的演算法 瀏覽:403
如何選擇php培訓機構 瀏覽:982
app被移除管理了怎麼弄 瀏覽:934
phpredis消息推送 瀏覽:804
剪貼板里怎麼加密碼 瀏覽:153
51單片機入門自學 瀏覽:548
如何看步數有同步伺服器 瀏覽:10
單片機掃描實驗代碼 瀏覽:721
惠州抖音app推廣平台怎麼引流 瀏覽:758
如何再網路設置裡面添加伺服器 瀏覽:191
陶瓷pdf 瀏覽:672
選股指標源碼最新 瀏覽:577
arm嵌入式linuxpdf 瀏覽:477
本田裂行的壓縮比 瀏覽:24
ps色彩調色命令 瀏覽:592
寬頻的伺服器地址怎麼看 瀏覽:423
vb如何給文件加密 瀏覽:215