/*
* [程序名称] Android 音乐播放器
* [参考资料] http://code.google.com/p/rockon-android/
* [开源协议] Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*
* 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.xmobileapp.rockplayer;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.lang.Thread.UncaughtExceptionHandler;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Random;
import java.util.Timer;
import java.util.TimerTask;
import java.util.regex.Pattern;
import javax.xml.parsers.ParserConfigurationException;
import com.xmobileapp.rockplayer.PlayerServiceInterface;
import com.xmobileapp.rockplayer.R;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpConnectionParams;
import org.xml.sax.SAXException;
import com.xmobileapp.rockplayer.utils.Constants;
import com.xmobileapp.rockplayer.utils.RockOnPreferenceManager;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.app.AlertDialog.Builder;
import android.content.ContentResolver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.content.pm.ActivityInfo;
import android.content.res.Resources;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.BlurMaskFilter;
import android.graphics.Color;
import android.graphics.LightingColorFilter;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.Rect;
import android.graphics.BitmapFactory.Options;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.TransitionDrawable;
import android.media.MediaPlayer;
import android.media.MediaScannerConnection;
import android.media.MediaPlayer.OnCompletionListener;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Debug;
import android.os.Handler;
import android.os.Message;
import android.os.RemoteException;
import android.preference.PreferenceScreen;
import android.provider.MediaStore;
import android.util.Log;
import android.view.Display;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.view.View.OnKeyListener;
import android.view.View.OnLongClickListener;
import android.view.View.OnTouchListener;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.DecelerateInterpolator;
import android.view.animation.Interpolator;
import android.view.animation.RotateAnimation;
import android.view.animation.ScaleAnimation;
import android.view.animation.TranslateAnimation;
import android.view.animation.Animation.AnimationListener;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.AbsListView;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import android.widget.Button;
import android.widget.CursorAdapter;
import android.widget.EditText;
import android.widget.FilterQueryProvider;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.SeekBar;
import android.widget.SimpleCursorAdapter;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.AbsListView.OnScrollListener;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.AdapterView.OnItemLongClickListener;
import android.widget.ImageView.ScaleType;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.SeekBar.OnSeekBarChangeListener;
public class RockPlayer extends Activity {
/**********************************************
*
* Some Definitions
*
**********************************************/
String[] ALBUM_COLS = new String[] {
MediaStore.Audio.Albums._ID,
MediaStore.Audio.Albums.ALBUM,
MediaStore.Audio.Albums.ALBUM_ART,
MediaStore.Audio.Albums.ALBUM_KEY,
MediaStore.Audio.Albums.ARTIST,
MediaStore.Audio.Albums.FIRST_YEAR,
MediaStore.Audio.Albums.LAST_YEAR,
MediaStore.Audio.Albums.NUMBER_OF_SONGS
};
String[] SONG_COLS = new String[] {
MediaStore.Audio.Media._ID,
MediaStore.Audio.Media.TITLE,
MediaStore.Audio.Media.TITLE_KEY,
MediaStore.Audio.Media.DATA,
MediaStore.Audio.Media.DISPLAY_NAME,
MediaStore.Audio.Media.TRACK,
MediaStore.Audio.Media.DURATION,
MediaStore.Audio.Media.IS_MUSIC,
MediaStore.Audio.Media.ALBUM,
MediaStore.Audio.Media.ALBUM_KEY,
MediaStore.Audio.Media.ARTIST,
MediaStore.Audio.Media.ARTIST_KEY,
MediaStore.Audio.Media.DATE_ADDED
};
String[] ARTIST_COLS = new String[] {
MediaStore.Audio.Artists._ID,
MediaStore.Audio.Artists.ARTIST
};
String[] PLAYLIST_COLS = new String[] {
MediaStore.Audio.Playlists._ID,
MediaStore.Audio.Playlists.DATA,
MediaStore.Audio.Playlists.DATE_ADDED,
MediaStore.Audio.Playlists.DATE_MODIFIED,
MediaStore.Audio.Playlists.NAME
};
String[] PLAYLIST_SONG_COLS = new String[] {
MediaStore.Audio.Playlists.Members._ID,
MediaStore.Audio.Playlists.Members.DATA,
MediaStore.Audio.Playlists.Members.DISPLAY_NAME,
MediaStore.Audio.Playlists.Members.DURATION,
MediaStore.Audio.Playlists.Members.ALBUM_KEY,
MediaStore.Audio.Playlists.Members.ALBUM,
//MediaStore.Audio.Playlists.Members.ALBUM_ART,
MediaStore.Audio.Playlists.Members.ARTIST,
MediaStore.Audio.Playlists.Members.TRACK,
MediaStore.Audio.Playlists.Members.PLAY_ORDER,
MediaStore.Audio.Playlists.Members.TITLE,
MediaStore.Audio.Playlists.Members.TITLE_KEY
};
double CURRENT_PLAY_SCREEN_FRACTION = 0.66;
double CURRENT_PLAY_SCREEN_FRACTION_LANDSCAPE = 0.75;
double NAVIGATOR_SCREEN_FRACTION = 1 - CURRENT_PLAY_SCREEN_FRACTION;
double NAVIGATOR_SCREEN_FRACTION_LANDSCAPE = 1 - CURRENT_PLAY_SCREEN_FRACTION_LANDSCAPE;
String FILEX_PATH = "/sdcard/RockOn/";
String FILEX_ALBUM_ART_PATH = "/sdcard/albumthumbs/RockOn/";
String FILEX_SMALL_ALBUM_ART_PATH = "/sdcard/albumthumbs/RockOn/small/";
static String FILEX
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Android-四种播放器(源码).zip (442个子文件)
PlayerServiceInterface.aidl 854B
PlayerServiceInterface.aidl 854B
resources.ap_ 882KB
resources.ap_ 119KB
resources.ap_ 72KB
Music_Player.apk 896KB
PlayerActivity.apk 130KB
SeeJoPlayer.apk 116KB
sound_line1.BMP 1KB
sound_line.bmp 846B
RockPlayer.class 59KB
LastFmAlbumArtImporter.class 22KB
PlayerService.class 18KB
VideoPlayerActivity.class 17KB
ActivityMain.class 17KB
LastFmEventImporter.class 14KB
VideoView.class 13KB
AlbumCursorAdapter.class 12KB
PlayerActivity.class 11KB
RockOnAppWidgetProvider.class 10KB
PlayerService$2.class 8KB
PlayerServiceInterface$Stub$Proxy.class 7KB
RockOnSettings.class 7KB
RockPlayer$39.class 6KB
RockPlayer$6.class 6KB
RockOnSettings$CustomBackgroundChooserClickListener$1.class 6KB
RockPlayer$15.class 5KB
PlayerServiceInterface$Stub.class 5KB
ViewlrcKLOK.class 5KB
FilexDefaultExceptionHandler.class 5KB
XMLArtistEventHandler.class 4KB
RockOnPreferenceManager.class 4KB
MediaButtonIntentReceiver.class 4KB
RockPlayer$16.class 4KB
RockPlayer$29.class 4KB
RockOnSettings$RecentPeriodChangeListener.class 4KB
RockPlayer$GetImageThread.class 4KB
R$id.class 4KB
SoundView.class 4KB
RockPlayer$5.class 3KB
RockPlayer$26.class 3KB
AlbumChangedIntentReceiver.class 3KB
RockPlayer$13.class 3KB
ActivityMain$4.class 3KB
R$drawable.class 3KB
PlayerServiceConnection.class 3KB
VideoChooseActivity.class 3KB
RockOnSettings$CustomBackgroundChooserClickListener.class 3KB
XMLAlbumSearchHandler.class 3KB
RockPlayer$14.class 3KB
EventLinkedListAdapter.class 3KB
MusicChangedIntentReceiver.class 3KB
RockPlayer$34.class 3KB
VideoPlayerActivity$16.class 3KB
ActivityMain$1.class 3KB
RockPlayer$17.class 3KB
M_Volume.class 3KB
RockPlayer$PlayAlbumTimerTask.class 2KB
PlayerService$1.class 2KB
Rotate3dAnimation.class 2KB
VideoView$2.class 2KB
XMLGoogleAlbumArtHandler.class 2KB
VideoPlayerActivity$15.class 2KB
ShareSong.class 2KB
SongCursorAdapter.class 2KB
RockPlayer$7.class 2KB
RockPlayer$24.class 2KB
RockPlayer$23.class 2KB
VideoPlayerActivity$6.class 2KB
Rotate3dAnimationAlpha.class 2KB
RockPlayer$33.class 2KB
MediaButtonIntentReceiver$1.class 2KB
VideoView$6.class 2KB
RockPlayer$35.class 2KB
RockOnSettings$ScrobbleDroidChangeListener.class 2KB
XMLArtistInfoHandler.class 2KB
VideoPlayerActivity$1.class 2KB
VideoPlayerActivity$5.class 2KB
ImageCursorAdapter.class 2KB
Rotate3dAnimationX.class 2KB
Rotate3dAnimationZ.class 2KB
VideoChooseActivity$2.class 2KB
RockOnSettings$AlwaysLandscapeChangeListener.class 2KB
Rotate3dAnimationWithTranslation.class 2KB
VideoView$4.class 2KB
RockOnSettings$AutoRotateChangeListener.class 2KB
RockPlayer$12.class 2KB
XMLAlbumArtHandler.class 2KB
R$string.class 2KB
RockPlayer$43.class 2KB
PlayerActivity$2.class 2KB
VideoPlayerActivity$18.class 2KB
PlayerService$RockOnPhoneStateListener.class 2KB
RockPlayer$18.class 2KB
RockPlayer$40.class 2KB
MediaButtonPauseIntentReceiver.class 2KB
MediaButtonPlayIntentReceiver.class 2KB
Rotate3dAnimationY.class 2KB
Constants.class 2KB
ActivityMain$10.class 2KB
共 442 条
- 1
- 2
- 3
- 4
- 5
资源评论
firepation
- 粉丝: 1718
- 资源: 689
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- screenpipe-x86-64-pc-windows-msvc.exe
- tomca9-jdk11-corretto arm版本镜像
- screenpipe-0.3.8-x64-setup.exe
- 环禹文堂读书App开发全流程技术解决方案
- js重点知识点总结 js入门学习掌握.docx
- 【Unity高级脚本检查器插件】Script Inspector 3
- 【精品毕设推荐】基于微信小程序的体育资讯软件的设计与实现.zip
- 【Unity低多边形道具模型】Low Poly 3D Props Model Pack
- 【精品毕设推荐】基于微信小程序的随堂测小程序设计与实现.zip
- 前端分析-202307110078
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功