隨筆 - 0, 文章 - 264, 評論 - 170, 引用 - 0

          導航

          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          留言簿(6)

          隨筆分類

          文章分類

          文章檔案

          AI

          android+移動開發

          apache等開源類包,工具相關

          cdn

          concurrent

          C語言

          git、svn等工具使用

          groovy、grails

          Hadoop、Storm、Spark大數據相關

          hibernate、JPA等持久化技術

          html,dom,js,css、ext、mui等前端、移動前端相關

          HTTP、HTTPS、TCP、UDP等協議相關

          IM、openfire

          Java基礎

          java性能優化

          jquery

          linux相關

          lucene、solr等搜索技術相關

          maven gradle ant Jenkins自動化構建與持續集成

          memcache

          mongodb

          nginx、squid、haproxy、varnish

          OLAP

          python、shell、perl、php

          redis

          rmi相關

          spring

          struts、webwork

          tcp/ip

          tomcat,jsp,servlet相關

          velocity等實用工具相關

          業務相關

          互聯網安全、過濾、網絡

          修煉

          其他

          區塊鏈

          壓力、性能測試相關

          地圖相關

          基礎

          多線程

          開發工具相關

          數據庫

          架構

          移動互聯網

          設計模式

          搜索

          •  

          最新評論

          Android調用系統播放器(注:轉載于http://blog.csdn.net/sql_help/archive/2010/09/28/5912856.aspx)

             1package cn.com;  
             
          2.   
             
          3import android.app.Activity;  
             
          4import android.content.Intent;  
             
          5import android.net.Uri;  
             
          6import android.os.Bundle;  
             
          7.   
             
          8public class Video extends Activity {  
             
          9.       
            
          10.     String path = "file:///sdcard/tmp60115.mp4";  
            
          11.       
            
          12.     /** Called when the activity is first created. */  
            
          13.     @Override  
            
          14.     public void onCreate(Bundle savedInstanceState) {  
            
          15.         super.onCreate(savedInstanceState);  
            
          16.         setContentView(R.layout.main);  
            
          17.           
            
          18.         Intent it = new Intent(Intent.ACTION_VIEW);  
            
          19.         Uri uri = Uri.parse(path);  
            
          20.         it.setDataAndType(uri , "video/mp4");  
            
          21.         startActivity(it);  
            
          22.           
            
          23.     }  
            
          24. } 

          posted on 2010-11-21 13:57 小一敗涂地 閱讀(2884) 評論(0)  編輯  收藏 所屬分類: android+移動開發

          主站蜘蛛池模板: 巢湖市| 鹤岗市| 田林县| 西华县| 呼图壁县| 巍山| 丹凤县| 永城市| 沛县| 佛坪县| 南部县| 漯河市| 神木县| 中西区| 禹州市| 贞丰县| 曲松县| 贡嘎县| 客服| 大同市| 临安市| 龙游县| 海伦市| 尤溪县| 广饶县| 孟州市| 璧山县| 砚山县| 义马市| 烟台市| 楚雄市| 新乡市| 依兰县| 水富县| 石楼县| 平潭县| 加查县| 米泉市| 阳江市| 鲁甸县| 昂仁县|