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

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

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

    溫馨提示:您的每一次轉(zhuǎn)載,體現(xiàn)了我寫此文的意義!!!煩請(qǐng)您在轉(zhuǎn)載時(shí)注明出處http://m.tkk7.com/sxyx2008/謝謝合作!!!

    雪山飛鵠

    溫馨提示:您的每一次轉(zhuǎn)載,體現(xiàn)了我寫此文的意義!!!煩請(qǐng)您在轉(zhuǎn)載時(shí)注明出處http://m.tkk7.com/sxyx2008/謝謝合作!!!

    BlogJava 首頁 新隨筆 聯(lián)系 聚合 管理
      215 Posts :: 1 Stories :: 674 Comments :: 0 Trackbacks
    //調(diào)用瀏覽器

    Uri uri 
    = Uri.parse("");
    Intent it 
    = new Intent(Intent.ACTION_VIEW,uri);
    startActivity(it);

    //顯示某個(gè)坐標(biāo)在地圖上

    Uri uri 
    = Uri.parse("geo:38.899533,-77.036476");
    Intent it 
    = new Intent(Intent.Action_VIEW,uri);
    startActivity(it); 

    //顯示路徑

    Uri uri 
    = Uri.parse("http://maps.google.com/maps?f=d&saddr=startLat%20startLng&daddr=endLat%20endLng&hl=en");
    Intent it 
    = new Intent(Intent.ACTION_VIEW,URI);
    startActivity(it);

    //撥打電話

    Uri uri 
    = Uri.parse("tel:10086");
    Intent it 
    = new Intent(Intent.ACTION_DIAL, uri); 
    startActivity(it); 

    Uri uri 
    = Uri.parse("tel.10086");
    Intent it 
    =new Intent(Intent.ACTION_CALL,uri);
    需要添加 
    <uses-permission id="android.permission.CALL_PHONE" /> 這個(gè)權(quán)限到androidmanifest.xml

    //發(fā)送短信或彩信

    Intent it 
    = new Intent(Intent.ACTION_VIEW); 
    it.putExtra(
    "sms_body""The SMS text"); 
    it.setType(
    "vnd.android-dir/mms-sms"); 
    startActivity(it); 

    //發(fā)送短信

    Uri uri 
    = Uri.parse("smsto:10086"); 
    Intent it 
    = new Intent(Intent.ACTION_SENDTO, uri); 
    it.putExtra(
    "sms_body""cwj"); 
    startActivity(it); 

    //發(fā)送彩信

    Uri uri 
    = Uri.parse("content://media/external/images/media/23"); 
    Intent it 
    = new Intent(Intent.ACTION_SEND); 
    it.putExtra(
    "sms_body""some text"); 
    it.putExtra(Intent.EXTRA_STREAM, uri); 
    it.setType(
    "image/png"); 
    startActivity(it); 

    //發(fā)送郵件 
    Uri uri = Uri.parse("mailto:android123@163.com");
    Intent it 
    = new Intent(Intent.ACTION_SENDTO, uri);
    startActivity(it);

    Intent it 
    = new Intent(Intent.ACTION_SEND); 
    it.putExtra(Intent.EXTRA_EMAIL, android123@
    163.com); 
    it.putExtra(Intent.EXTRA_TEXT, 
    "The email body text"); 
    it.setType(
    "text/plain"); 
    startActivity(Intent.createChooser(it, 
    "Choose Email Client")); 

    Intent it
    =new Intent(Intent.ACTION_SEND); 
    String[] tos
    ={"me@abc.com"}; 
    String[] ccs
    ={"you@abc.com"}; 
    it.putExtra(Intent.EXTRA_EMAIL, tos); 
    it.putExtra(Intent.EXTRA_CC, ccs); 
    it.putExtra(Intent.EXTRA_TEXT, 
    "The email body text"); 
    it.putExtra(Intent.EXTRA_SUBJECT, 
    "The email subject text"); 
    it.setType(
    "message/rfc822"); 
    startActivity(Intent.createChooser(it, 
    "Choose Email Client")); 

    //播放媒體文件

    Intent it 
    = new Intent(Intent.ACTION_VIEW);
    Uri uri 
    = Uri.parse("file:///sdcard/cwj.mp3");
    it.setDataAndType(uri, 
    "audio/mp3");
    startActivity(it);

    Uri uri 
    = Uri.withAppendedPath(MediaStore.Audio.Media.INTERNAL_CONTENT_URI, "1"); 
    Intent it 
    = new Intent(Intent.ACTION_VIEW, uri); 
    startActivity(it); 

    //卸載APK

    Uri uri 
    = Uri.fromParts("package", strPackageName, null); 
    Intent it 
    = new Intent(Intent.ACTION_DELETE, uri); 
    startActivity(it);

    //卸載apk 2
    Uri uninstallUri = Uri.fromParts("package""xxx"null);
    returnIt 
    = new Intent(Intent.ACTION_DELETE, uninstallUri);

    //安裝APK
    Uri installUri = Uri.fromParts("package""xxx"null);
    returnIt 
    = new Intent(Intent.ACTION_PACKAGE_ADDED, installUri);

    //播放音樂

    Uri playUri 
    = Uri.parse("file:///sdcard/download/sth.mp3");
    returnIt 
    = new Intent(Intent.ACTION_VIEW, playUri);

    //發(fā)送附近

    Intent it 
    = new Intent(Intent.ACTION_SEND); 
    it.putExtra(Intent.EXTRA_SUBJECT, 
    "The email subject text"); 
    it.putExtra(Intent.EXTRA_STREAM, 
    "file:///sdcard/cwj.mp3"); 
    sendIntent.setType(
    "audio/mp3"); 
    startActivity(Intent.createChooser(it, 
    "Choose Email Client"));

    //market上某個(gè)應(yīng)用信,pkg_name就是應(yīng)用的packageName

    Uri uri 
    = Uri.parse("market://search?q=pname:pkg_name"); 
    Intent it 
    = new Intent(Intent.ACTION_VIEW, uri); 
    startActivity(it); 


    //market上某個(gè)應(yīng)用信息,app_id可以通過www網(wǎng)站看下

    Uri uri 
    = Uri.parse("market://details?id=app_id"); 
    Intent it 
    = new Intent(Intent.ACTION_VIEW, uri); 
    startActivity(it); 

    //調(diào)用搜索

    Intent intent 
    = new Intent();
    intent.setAction(Intent.ACTION_WEB_SEARCH);
    intent.putExtra(SearchManager.QUERY,
    "android123")
    startActivity(intent);
    posted on 2011-08-17 11:10 雪山飛鵠 閱讀(535) 評(píng)論(0)  編輯  收藏 所屬分類: android
    主站蜘蛛池模板: 亚洲午夜精品一区二区麻豆| 久久国产精品免费专区| yellow视频免费在线观看| 99久热只有精品视频免费看| 成人免费在线视频| 亚洲欧洲日产国码久在线观看| 激情无码亚洲一区二区三区| 91人人区免费区人人| 久久国产亚洲精品麻豆| 一级毛片免费毛片毛片| 久久久久亚洲AV无码专区体验| 久久精品国产免费一区| 亚洲色精品88色婷婷七月丁香 | 色欲色欲天天天www亚洲伊| 日韩免费精品视频| 亚洲国产综合第一精品小说| 久久青草免费91线频观看不卡 | 亚洲精品无码永久在线观看男男 | 成人免费在线观看网站| a级毛片免费在线观看| 亚洲综合精品网站在线观看| 免费无毒a网站在线观看| 国产成人无码a区在线观看视频免费| 亚洲不卡中文字幕| 97视频热人人精品免费| 亚洲欧美日韩综合久久久久| 亚洲AV无码成人精品区在线观看| 一区二区在线免费观看| 亚洲二区在线视频| 真实乱视频国产免费观看| 亚洲丁香婷婷综合久久| 免费吃奶摸下激烈视频| sss日本免费完整版在线观看| 区三区激情福利综合中文字幕在线一区亚洲视频1 | 国产免费一区二区三区免费视频 | www视频在线观看免费| 四虎亚洲精品高清在线观看| 国产a级特黄的片子视频免费| 成全视成人免费观看在线看| 亚洲综合国产精品| 亚洲熟妇无码另类久久久|