Code example for ArrayList

Methods: remove, size

0
    public void appendAction(MediaAction action) {
        mMediaActions.add(action);
    } 
 
    public MediaAction getCurrentAction() { 
        if (0 == mMediaActions.size()) {
            return MediaAction.NO_ACTIVE_ACTION;
        } 
        return mMediaActions.remove(0);
    } 
 
    protected boolean isPlayable() { 
        return false; 
    } 
 
    protected void pauseMusicPlayer() { 
        if (Log.isLoggable(LogTag.APP, Log.VERBOSE)) {
            Log.d(TAG, "pauseMusicPlayer");
        } 
 
        Intent i = new Intent(MUSIC_SERVICE_ACTION);