程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程綜合問答 >> android-安卓多媒體數據庫的問題

android-安卓多媒體數據庫的問題

編輯:編程綜合問答
安卓多媒體數據庫的問題

在安卓多媒體數據庫中,掃描存進去的文件的mime type屬性是在哪裡定義寫入的?比如音樂的圖片說明求高人解答!

最佳回答:


一般是通過文件後綴等

 {".3gp", "video/3gpp"},
  {".apk", "application/vnd.android.package-archive"},
  {".asf", "video/x-ms-asf"},
  {".avi", "video/x-msvideo"},
  {".bin", "application/octet-stream"},
  {".bmp", "image/bmp"},
  {".c", "text/plain"},
  {".class", "application/octet-stream"},
  {".conf", "text/plain"},
  {".cpp", "text/plain"},
  {".doc", "application/msword"},
  {".exe", "application/octet-stream"},
  {".gif", "image/gif"},
  {".gtar", "application/x-gtar"},
  {".gz", "application/x-gzip"},
  {".h", "text/plain"},
  {".htm", "text/html"},
  {".html", "text/html"},
  {".jar", "application/java-archive"},
  {".java", "text/plain"},
  {".jpeg", "image/jpeg"},
  {".jpg", "image/jpeg"},
  {".js", "application/x-javascript"},
  {".log", "text/plain"},
  {".m3u", "audio/x-mpegurl"},
  {".m4a", "audio/mp4a-latm"},
  {".m4b", "audio/mp4a-latm"},
  {".m4p", "audio/mp4a-latm"},
  {".m4u", "video/vnd.mpegurl"},
  {".m4v", "video/x-m4v"},
  {".mov", "video/quicktime"},
  {".mp2", "audio/x-mpeg"},
  {".mp3", "audio/x-mpeg"},
  {".mp4", "video/mp4"},
  {".mpc", "application/vnd.mpohun.certificate"},
  {".mpe", "video/mpeg"},
  {".mpeg", "video/mpeg"},
  {".mpg", "video/mpeg"},
{".mpg4", "video/mp4"},
  {".mpga", "audio/mpeg"},
  {".msg", "application/vnd.ms-outlook"},
  {".ogg", "audio/ogg"},
  {".pdf", "application/pdf"},
  {".png", "image/png"},
  {".pps", "application/vnd.ms-powerpoint"},
  {".ppt", "application/vnd.ms-powerpoint"},
  {".prop", "text/plain"},
  {".rar", "application/x-rar-compressed"},
  {".rc", "text/plain"},
  {".rmvb", "audio/x-pn-realaudio"},
  {".rtf", "application/rtf"},
  {".sh", "text/plain"},
  {".tar", "application/x-tar"},
  {".tgz", "application/x-compressed"},
  {".txt", "text/plain"},
  {".wav", "audio/x-wav"},
  {".wma", "audio/x-ms-wma"},
  {".wmv", "audio/x-ms-wmv"},
  {".wps", "application/vnd.ms-works"},
  //{".xml", "text/xml"},
  {".xml", "text/plain"},
  {".z", "application/x-compress"},
  {".zip", "application/zip"},
  {"", "*/*"}
qq_16768425
qq_16768425
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved