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

熱點內容
開源gmssl編譯 瀏覽:872
exe文件夾怎麼消除 瀏覽:308
在非對稱密鑰加密體制下 瀏覽:644
文件怎麼轉換pdf格式文件怎麼打開 瀏覽:33
我的世界有什麼城市伺服器 瀏覽:784
c語言編譯器哪裡寫錯 瀏覽:591
程序員晚飯沒時間吃 瀏覽:179
svn刪除分支命令 瀏覽:209
博途組態如何編譯 瀏覽:337
程序員那麼可愛畫心師 瀏覽:304
騰達f3如何無線加密 瀏覽:668
linux怎麼玩 瀏覽:889
暴力抽獎源碼 瀏覽:232
怎麼看自己手機安卓版本華為 瀏覽:864
如何找營銷源碼 瀏覽:462
zb國際網app是干什麼的 瀏覽:736
android跳轉撥號 瀏覽:487
蘋果電腦會解壓中毒嗎 瀏覽:597
cisco源碼下載 瀏覽:775
maya快捷鍵命令列表 瀏覽:543