Android Open Source - MusicPlayer-OLD Constants






From Project

Back to project page MusicPlayer-OLD.

License

The source code is released under:

Apache License

If you think the Android project MusicPlayer-OLD listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * Copyright 2013 Andrea De Cesare//from  ww w  .  j av a 2s .  com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.andreadec.musicplayer;

public class Constants {
  // Preferences
  public final static String PREFERENCE_BASEFOLDER = "baseFolder";
  public final static String PREFERENCE_LASTDIRECTORY = "lastDirectory";
  public final static String PREFERENCE_LASTPLAYINGSONG = "lastPlayingSong";
  public final static String PREFERENCE_LASTSONGPOSITION = "lastSongPosition";
  public final static String PREFERENCE_LASTPLAYINGSONGFROMPLAYLISTID = "lastPlyaingSongFromPlaylistId";
  public final static String PREFERENCE_LASTPAGE = "lastPage";
  public final static String PREFERENCE_SHUFFLE = "shuffle";
  public final static String PREFERENCE_REPEAT = "repeat";
  public final static String PREFERENCE_REPEATALL = "repeatAll";
  public final static String PREFERENCE_BASSBOOST = "bassBoost";
  public final static String PREFERENCE_BASSBOOSTSTRENGTH = "bassBoostStrength";
  public final static String PREFERENCE_EQUALIZER = "equalizer";
  public final static String PREFERENCE_EQUALIZERPRESET = "equalizerPreset";
  public final static String PREFERENCE_SHAKEENABLED = "shakeEnabled";
  public final static String PREFERENCE_SONGSSORTINGMETHOD = "songsSortingMethod";
  public final static String PREFERENCE_ENABLECACHE = "enableCache";
  public final static String PREFERENCE_DISABLELOCKSCREEN = "disableLockScreen";
  public final static String PREFERENCE_TITLELINES = "titleLines";
  public final static String PREFERENCE_STOPPLAYINGWHENHEADSETDISCONNECTED = "stopPlayingWhenHeadsetDisconnected";
  public final static String PREFERENCE_OPENLASTSONGONSTART = "openLastSongOnStart";
  public final static String PREFERENCE_SAVESONGPOSITION = "saveSongPosition";
  public final static String PREFERENCE_OPENLASTPAGEONSTART = "openLastPageOnStart";
  public final static String PREFERENCE_RESTARTPLAYBACKAFTERPHONECALL = "restartPlaybackAfterPhoneCall";
  public final static String PREFERENCE_PODCASTSDIRECTORY = "podcastsDirectory";
  public final static String PREFERENCE_SHOWSONGIMAGE = "showSongImage";
  public final static String PREFERENCE_ENABLEBACKDOUBLEPRESSTOQUITAPP = "enableBackDoublePressToQuitApp";
  public final static String PREFERENCE_SHOWRELATIVEPATHUNDERBASEDIRECTORY = "showRelativePathUnderBaseDirectory";
  public final static String PREFERENCE_TRANSLUCENTSTATUSBAR = "translucentStatusBar";
  public final static String PREFERENCE_TRANSLUCENTNAVIGATIONBAR = "translucentNavigationBar";
  public final static String PREFERENCE_ENABLEGESTURES = "enableGestures";
  public final static String PREFERENCE_SHOWPLAYBACKCONTROLS = "showPlaybackControls";
  
  public final static String PREFERENCE_SHAKEINTERVAL = "shakeInterval";
  public final static String PREFERENCE_SHAKETHRESHOLD = "shakeThreshold";
  public final static String PREFERENCE_SHAKEACTION = "shakeAction";
  
  public final static String PREFERENCE_SHOWHELPOVERLAYMAINACTIVITY = "showHelpOverlayMainActivity";
  public final static String PREFERENCE_SHOWHELPOVERLAYINDEXING = "showHelpOverlayIndexing";
  
  
  // Default preferences values
  public final static String DEFAULT_SONGSSORTINGMETHOD = "nat";
  public final static boolean DEFAULT_ENABLECACHE = true;
  public final static boolean DEFAULT_DISABLELOCKSCREEN = false;
  public final static String DEFAULT_TITLELINES = "1";
  public final static String DEFAULT_BASEFOLDER = null;
  public final static boolean DEFAULT_SHUFFLE = false;
  public final static boolean DEFAULT_REPEAT = false;
  public final static boolean DEFAULT_REPEATALL = false;
  public final static boolean DEFAULT_BASSBOOST = false;
  public final static int DEFAULT_BASSBOOSTSTRENGTH = 0;
  public final static boolean DEFAULT_EQUALIZER = false;
  public final static int DEFAULT_EQUALIZERPRESET = 0;
  public final static boolean DEFAULT_SHAKEENABLED = false;
  public final static String DEFAULT_LASTDIRECTORY = null;
  public final static boolean DEFAULT_STOPPLAYINGWHENHEADSETDISCONNECTED = false;
  public final static boolean DEFAULT_OPENLASTSONGONSTART = false;
  public final static String DEFAULT_LASTPLAYINGSONG = null;
  public final static boolean DEFAULT_OPENLASTPAGEONSTART = false;
  public final static int DEFAULT_LASTPAGE = 0;
  public final static int DEFAULT_LASTPLAYINGSONGFROMPLAYLISTID = -1;
  public final static boolean DEFAULT_SAVESONGPOSITION = false;
  public final static int DEFAULT_LASTSONGPOSITION = 0;
  public final static boolean DEFAULT_RESTARTPLAYBACKAFTERPHONECALL = false;
  public final static String DEFAULT_SHAKEINTERVAL = null;
  public final static String DEFAULT_SHAKETHRESHOLD = null;
  public final static String DEFAULT_SHAKEACTION = "playpause";
  public final static boolean DEFAULT_SHOWSONGIMAGE = true;
  public final static boolean DEFAULT_ENABLEBACKDOUBLEPRESSTOQUITAPP = true;
  public final static boolean DEFAULT_SHOWRELATIVEPATHUNDERBASEDIRECTORY = true;
  public final static boolean DEFAULT_TRANSLUCENTSTATUSBAR = true;
  public final static boolean DEFAULT_TRANSLUCENTNAVIGATIONBAR = true;
  public final static boolean DEFAULT_ENABLEGESTURES = false;
  public final static boolean DEFAULT_SHOWPLAYBACKCONTROLS = true;
  
  
  // Notifications
  public final static int NOTIFICATION_MAIN = 1;
  public final static int NOTIFICATION_INDEXING_ONGOING = 2;
  public final static int NOTIFICATION_INDEXING_COMPLETED = 3;
  public final static int NOTIFICATION_PODCAST_ITEM_DOWNLOAD_ONGOING = 4;
  public final static int NOTIFICATION_PODCAST_ITEM_DOWNLOAD_ERROR = 5;
  
  
  // Other constants
  public final static int IMAGES_CACHE_SIZE = 4 * 1024 * 1024; // 4MiB
  //public final static int SECOND_SEEKBAR_DURATION = 1200000; // 20 minutes, in milliseconds
  public final static int SECOND_SEEKBAR_DURATION = 600000; // 10 minutes, in milliseconds
}




Java Source Code List

com.andreadec.musicplayer.AboutActivity.java
com.andreadec.musicplayer.Action.java
com.andreadec.musicplayer.BrowserDirectory.java
com.andreadec.musicplayer.BrowserFragment.java
com.andreadec.musicplayer.BrowserSong.java
com.andreadec.musicplayer.Constants.java
com.andreadec.musicplayer.DirectoryChooserDialog.java
com.andreadec.musicplayer.ImageLoaderTask.java
com.andreadec.musicplayer.IndexFolderService.java
com.andreadec.musicplayer.Information.java
com.andreadec.musicplayer.MainActivity.java
com.andreadec.musicplayer.MusicPlayerApplication.java
com.andreadec.musicplayer.MusicPlayerFragment.java
com.andreadec.musicplayer.MusicService.java
com.andreadec.musicplayer.PlayableItem.java
com.andreadec.musicplayer.PlaylistFragment.java
com.andreadec.musicplayer.PlaylistSong.java
com.andreadec.musicplayer.Playlist.java
com.andreadec.musicplayer.Playlists.java
com.andreadec.musicplayer.PodcastEpisodeDownloaderService.java
com.andreadec.musicplayer.PodcastEpisode.java
com.andreadec.musicplayer.PodcastParser.java
com.andreadec.musicplayer.Podcast.java
com.andreadec.musicplayer.PodcastsFragment.java
com.andreadec.musicplayer.PreferencesActivity.java
com.andreadec.musicplayer.RadioFragment.java
com.andreadec.musicplayer.Radio.java
com.andreadec.musicplayer.SearchActivity.java
com.andreadec.musicplayer.ShakeListener.java
com.andreadec.musicplayer.Utils.java
com.andreadec.musicplayer.adapters.BrowserArrayAdapter.java
com.andreadec.musicplayer.adapters.MusicListArrayAdapter.java
com.andreadec.musicplayer.adapters.NavigationDrawerArrayAdapter.java
com.andreadec.musicplayer.adapters.PlaylistArrayAdapter.java
com.andreadec.musicplayer.adapters.PodcastsArrayAdapter.java
com.andreadec.musicplayer.adapters.RadioArrayAdapter.java
com.andreadec.musicplayer.adapters.SearchResultsArrayAdapter.java
com.andreadec.musicplayer.comparators.BrowserSongsComparator.java
com.andreadec.musicplayer.comparators.PlaylistsComparator.java
com.andreadec.musicplayer.database.PlaylistsDatabase.java
com.andreadec.musicplayer.database.PodcastsDatabase.java
com.andreadec.musicplayer.database.RadiosDatabase.java
com.andreadec.musicplayer.database.SongsDatabase.java
com.andreadec.musicplayer.filters.AudioFileFilter.java
com.andreadec.musicplayer.filters.DirectoryFilter.java