コード例 #1
0
 public MediaCategory getMediaCategoryMusic() {
   if (mediaCategoryMusic == null) {
     mediaCategoryMusic = new MediaCategory("Music");
     mediaCategoryMusic.addExtension("mp3");
     mediaCategoryMusic.addExtension("flac");
     mediaCategoryMusic.addExtension("mpc");
     mediaCategoryMusic.addExtension("ogg");
     mediaCategoryMusic.setApp(getAppMusic());
   }
   return mediaCategoryMusic;
 }
コード例 #2
0
 public MediaCategory getMediaCategoryPics() {
   if (mediaCategoryPics == null) {
     mediaCategoryPics = new MediaCategory("Pics");
     mediaCategoryPics.addExtension("jpeg");
     mediaCategoryPics.addExtension("jpg");
     mediaCategoryPics.addExtension("gif");
     mediaCategoryPics.addExtension("png");
     mediaCategoryPics.setApp(getAppPics());
   }
   return mediaCategoryPics;
 }
コード例 #3
0
 public MediaCategory getMediaCategoryMovies() {
   if (mediaCategoryMovies == null) {
     mediaCategoryMovies = new MediaCategory("Movies");
     mediaCategoryMovies.setApp(getAppMovies());
     mediaCategoryMovies.addExtension("avi");
     mediaCategoryMovies.addExtension("mkv");
     mediaCategoryMovies.addExtension("mpg");
     mediaCategoryMovies.addExtension("mp4");
   }
   return mediaCategoryMovies;
 }
コード例 #4
0
 public MediaCategory getMediaCategoryRoot() {
   if (mediaCategoryRoot == null) {
     mediaCategoryRoot = new MediaCategory(Constants.MEDIA_ROOT);
     mediaCategoryRoot.setDescription("Allows to browse the entire filesystem.");
   }
   return mediaCategoryRoot;
 }