日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問(wèn)題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
Android調(diào)用平臺(tái)功能具體技巧分享

Android操作系統(tǒng)那個(gè)可以通過(guò)調(diào)用手機(jī)平臺(tái)來(lái)實(shí)現(xiàn)一些特定的功能,諸如網(wǎng)頁(yè)的顯示,郵件的發(fā)送等等。那么今天就為大家總結(jié)了幾個(gè)Android調(diào)用平臺(tái)功能的應(yīng)用技巧,幫助大家增加編程經(jīng)驗(yàn)。

目前創(chuàng)新互聯(lián)已為上千家的企業(yè)提供了網(wǎng)站建設(shè)、域名、網(wǎng)站空間、網(wǎng)站運(yùn)營(yíng)、企業(yè)網(wǎng)站設(shè)計(jì)、青陽(yáng)網(wǎng)站維護(hù)等服務(wù),公司將堅(jiān)持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長(zhǎng),共同發(fā)展。

Android調(diào)用平臺(tái)功能之顯示網(wǎng)頁(yè)

 
 
 
  1. Uri uri = Uri.parse("http://google.com");   
  2. Intent it = new Intent(Intent.ACTION_VIEW, uri);   
  3. startActivity(it);   
  4. Uri uri = Uri.parse("http://google.com");   
  5. Intent it = new Intent(Intent.ACTION_VIEW, uri);   
  6. startActivity(it);  

Android調(diào)用平臺(tái)功能之顯示地圖

 
 
 
  1. Uri uri = Uri.parse("geo:38.899533,-77.036476");   
  2. Intent it = new Intent(Intent.ACTION_VIEW, uri);   
  3. startActivity(it);   
  4. //其他 geo URI 範(fàn)例   
  5. //geo:latitude,longitude   
  6. //geo:latitude,longitude?z=zoom   
  7. //geo:0,0?q=my+street+address   
  8. //geo:0,0?q=business+near+city   
  9. //google.streetview:cbll=lat,lng&cbp=1,yaw,,pitch,
    zoom&mz=mapZoom   
  10. Uri uri = Uri.parse("geo:38.899533,-77.036476");   
  11. Intent it = new Intent(Intent.ACTION_VIEW, uri);   
  12. startActivity(it);   
  13. //其他 geo URI 範(fàn)例   
  14. //geo:latitude,longitude   
  15. //geo:latitude,longitude?z=zoom   
  16. //geo:0,0?q=my+street+address   
  17. //geo:0,0?q=business+near+city   
  18. //google.streetview:cbll=lat,lng&cbp=1,yaw,,pitch,
    zoom&mz=mapZoom 

Android調(diào)用平臺(tái)功能之撥打電話

 
 
 
  1. //叫出撥號(hào)程式   
  2. Uri uri = Uri.parse("tel:0800000123");   
  3. Intent it = new Intent(Intent.ACTION_DIAL, uri);   
  4. startActivity(it);   
  5. //直接打電話出去   
  6. Uri uri = Uri.parse("tel:0800000123");   
  7. Intent it = new Intent(Intent.ACTION_CALL, uri);   
  8. startActivity(it);   
  9. //用這個(gè),要在 AndroidManifest.xml 中,加上   
  10. //< uses-permission id="android.permission.CALL_PHONE" />   
  11. //叫出撥號(hào)程式   
  12. Uri uri = Uri.parse("tel:0800000123");   
  13. Intent it = new Intent(Intent.ACTION_DIAL, uri);   
  14. startActivity(it);   
  15. //直接打電話出去   
  16. Uri uri = Uri.parse("tel:0800000123");   
  17. Intent it = new Intent(Intent.ACTION_CALL, uri);   
  18. startActivity(it);   
  19. //用這個(gè),要在 AndroidManifest.xml 中,加上   
  20. //< uses-permission id="android.permission.CALL_PHONE" />  

Android調(diào)用平臺(tái)功能之發(fā)送SMS/MMS

 
 
 
  1. //需寫號(hào)碼SMS   
  2. Intent it = new Intent(Intent.ACTION_VIEW);   
  3. it.putExtra("sms_body", "The SMS text");   
  4. it.setType("vnd.android-dir/mms-sms");   
  5. startActivity(it);   
  6. //發(fā)送SMS   
  7. Uri uri = Uri.parse("smsto:0800000123");   
  8. Intent it = new Intent(Intent.ACTION_SENDTO, uri);   
  9. it.putExtra("sms_body", "The SMS text");   
  10. startActivity(it);   
  11. //發(fā)送MMS   
  12. Uri uri = Uri.parse("content://media/external
    /images/media/23");   
  13. Intent it = new Intent(Intent.ACTION_SEND);   
  14. it.putExtra("sms_body", "some text");   
  15. it.putExtra(Intent.EXTRA_STREAM, uri);   
  16. it.setType("image/png");   
  17. startActivity(it);   
  18. //需寫號(hào)碼SMS   
  19. Intent it = new Intent(Intent.ACTION_VIEW);   
  20. it.putExtra("sms_body", "The SMS text");   
  21. it.setType("vnd.android-dir/mms-sms");   
  22. startActivity(it);   
  23. //發(fā)送SMS   
  24. Uri uri = Uri.parse("smsto:0800000123");   
  25. Intent it = new Intent(Intent.ACTION_SENDTO, uri);   
  26. it.putExtra("sms_body", "The SMS text");   
  27. startActivity(it);   
  28. //發(fā)送MMS   
  29. Uri uri = Uri.parse("content://media/external/
    images/media/23");   
  30. Intent it = new Intent(Intent.ACTION_SEND);   
  31. it.putExtra("sms_body", "some text");   
  32. it.putExtra(Intent.EXTRA_STREAM, uri);   
  33. it.setType("image/png");   
  34. startActivity(it); 

Android調(diào)用平臺(tái)功能的相關(guān)內(nèi)容就為大家介紹到這里。


當(dāng)前文章:Android調(diào)用平臺(tái)功能具體技巧分享
文章分享:http://m.5511xx.com/article/dphjcej.html