<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    即興的靈感

    思維是一種藝術(shù); 藝術(shù)需要靈感。

    博客好友

    最新評論

    使用Intent啟動常用的應(yīng)用與服務(wù)

    以下ATAAW.COM列舉了一些在Android中常用的Intent啟動服務(wù),當執(zhí)行startActivity時候,Android將會根據(jù)Intent綁定的信息尋找最合適的啟動程序來接應(yīng),并執(zhí)行程序以完成意圖的實現(xiàn)。

    打開瀏覽器顯示網(wǎng)頁:
    Uri uri = Uri.parse("http://www.ataaw.com");
    Intent intent  = new Intent(Intent.ACTION_VIEW,uri);
    startActivintenty(intent);

    由地圖參數(shù)顯示地圖:
    Uri uri = Uri.parse("geo:38.899533,-77.036476");
    Intent intent = new Intent(Intent.Action_VIEW,uri);
    startActivintenty(intent);

    撥打電話,調(diào)用撥號程序:
    Uri uri = Uri.parse("tel:13800138000");
    Intent intent = new Intent(Intent.ACTION_DIAL, uri); 
    startActivintenty(intent); 

    調(diào)用發(fā)送短信的程序發(fā)送SMS/MMS
    Intent intent = new Intent(Intent.ACTION_VIEW);  
    intent.putExtra("sms_body", "ATAAW.COM");  
    intent.setType("vnd.android-dir/mms-sms");  
    startActivintenty(intent); 

    調(diào)用短信程序發(fā)送短信
    Uri uri = Uri.parse("smsto:13800138000");  
    Intent intent = new Intent(Intent.ACTION_SENDTO, uri);  
    intent.putExtra("sms_body", "ATAAW.COM");  
    startActivintenty(intent); 

    調(diào)用彩信服務(wù)發(fā)送彩信
    Uri uri = Uri.parse("content://media/external/images/media/exp");  
    Intent intent = new Intent(Intent.ACTION_SEND);  
    intent.putExtra("sms_body", "ATAAW.COM");  
    intent.putExtra(Intent.EXTRA_STREAM, uri);  
    intent.setType("image/png");  
    startActivintenty(intent);

    啟動郵件應(yīng)用程序發(fā)送Email
    Uri uri = Uri.parse("mailto:ataaw.com@gmail.com");
    Intent intent = new Intent(Intent.ACTION_SENDTO, uri);
    startActivintenty(intent);

    Intent intent = new Intent(Intent.ACTION_SEND);  
    intent.putExtra(Intent.EXTRA_EMAIL, "android.sz@live.com");  
    intent.putExtra(Intent.EXTRA_TEXT, "郵件內(nèi)容。");  
    intent.setType("text/plain");  
    startActivintenty(Intent.createChooser(intent, "Choose Email Client")); 

    Intent intent=new Intent(Intent.ACTION_SEND);    
    String[] tos={"ataaw.com@gmail.com"};    
    String[] ccs={"cc@ataaw.com"};    
    intent.putExtra(Intent.EXTRA_EMAIL, tos);    
    intent.putExtra(Intent.EXTRA_CC, ccs);    
    intent.putExtra(Intent.EXTRA_TEXT, "郵件內(nèi)容。");    
    intent.putExtra(Intent.EXTRA_SUBJECT, "郵件主題");    
    intent.setType("message/rfc822");    
    startActivintenty(Intent.createChooser(intent, "Choose Email Client"));  

    添加郵件附件內(nèi)容
    Intent intent = new Intent(Intent.ACTION_SEND);  
    intent.putExtra(Intent.EXTRA_SUBJECT, "主題");  
    intent.putExtra(Intent.EXTRA_STREAM, "file:///sdcard/ataaw.mp3");  
    sendIntent.setType("audio/mp3");  
    startActivintenty(Intent.createChooser(intent, "Choose Email Client"));

    播放mp4多媒體文件
    Intent intent = new Intent(Intent.ACTION_VIEW);
    Uri uri = Uri.parse("file:///sdcard/ataaw.mp3");
    intent.setDataAndType(uri, "audio/mp3");
    startActivintenty(intent); 文章



    ?
    鳳凰涅槃/浴火重生/馬不停蹄/只爭朝夕
    ???? 隱姓埋名/低調(diào)華麗/簡單生活/完美人生

    posted on 2010-11-29 09:31 poetguo 閱讀(3164) 評論(0)  編輯  收藏 所屬分類: Android

    主站蜘蛛池模板: 亚洲av鲁丝一区二区三区| 亚洲综合精品香蕉久久网| a级毛片高清免费视频| 日韩国产精品亚洲а∨天堂免| 亚洲国产女人aaa毛片在线 | 日韩中文无码有码免费视频| 毛片免费全部播放无码| 免费看搞黄视频网站| 国产色无码精品视频免费| 国产日韩久久免费影院 | 成人午夜18免费看| 亚洲无码高清在线观看| 免费大片在线观看网站| 免费一级毛片在线播放不收费| 国产视频精品免费| 国产一级一片免费播放i| 一级毛片直播亚洲| 亚洲午夜精品久久久久久浪潮| 亚洲国产aⅴ综合网| 亚洲熟女一区二区三区| 久久久久久亚洲精品| 亚洲精品第一国产综合野| 老司机亚洲精品影院在线观看| 2022免费国产精品福利在线| 久久国产精品国产自线拍免费| 18禁美女裸体免费网站| 美女黄网站人色视频免费国产| 亚洲成a人一区二区三区| 亚洲国产精品无码久久一线| 亚洲激情黄色小说| 欧美色欧美亚洲另类二区| 国产啪精品视频网站免费尤物| 四虎成年永久免费网站| 国产一级大片免费看| 亚洲卡一卡2卡三卡4卡无卡三| 在线亚洲午夜片AV大片| 日韩免费电影网站| 免费少妇a级毛片| 亚洲三级高清免费| 8x网站免费入口在线观看| 亚洲七七久久精品中文国产|