From ac3dbb0caca83960777dc9fd15ba6a66685c1c4f Mon Sep 17 00:00:00 2001 From: Jorge Ruesga Date: Sat, 21 Jul 2012 00:56:44 +0200 Subject: [PATCH] Fix Issue 5547: Apollo will not play MP3 files when using Root Explorer Apollo doesn't have an activity registered for support "file" schemas, that are used by file managers when using the method setDataAndType of Intent class. This changes adds a new activity (PlayExternal) that registers this kind of schema, and pass the request to AudioPlayerHolder. Allow direct play the file, or enqueue in the current track list Patch 2: Remove trailing white-spaces Rename removeAllTrack to removeAllTracks Change-Id: I25b728700bd0d2d58d31e4de4bed81ee3e368e0a --- AndroidManifest.xml | 21 +++ res/values/strings.xml | 7 + res/values/styles.xml | 14 ++ src/com/andrew/apollo/IApolloService.aidl | 1 + .../apollo/activities/AudioPlayerHolder.java | 15 +- src/com/andrew/apollo/activities/PlayExternal.java | 193 +++++++++++++++++++++ src/com/andrew/apollo/adapters/PagerAdapter.java | 13 ++ .../apollo/list/fragments/TracksFragment.java | 13 +- src/com/andrew/apollo/service/ApolloService.java | 61 ++++++- src/com/andrew/apollo/utils/MusicUtils.java | 15 ++ .../andrew/apollo/utils/RefreshableFragment.java | 31 ++++ 11 files changed, 377 insertions(+), 7 deletions(-) create mode 100755 src/com/andrew/apollo/activities/PlayExternal.java create mode 100644 src/com/andrew/apollo/utils/RefreshableFragment.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index f4633bb..b8c4989 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -92,6 +92,27 @@ + + + + + + + + + + + + + + PLAYLISTS GENRES + + Select the action to apply to: \n\n%s + Play + Enqueue + Cancel + Failed to play file + Error diff --git a/res/values/styles.xml b/res/values/styles.xml index b537ff6..294d44e 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -1,6 +1,20 @@ + + + +