Subsonic For ICS Android 4.0

General discussions.

Moderator: moderators

Re: Subsonic For ICS Android 4.0

Postby pioneersohpioneers » Fri May 04, 2012 6:33 pm

With that said, this ics build of subsonic has between developed by hazamatix, who has disappeared. He's made progress with the bugs that have been mentioned but we haven't seen a new build yet. Hopefully he returns, but until then we can have fun with sindre's source code.
nickgw.subsonic.net
pioneersohpioneers
 
Posts: 28
Joined: Tue Jul 27, 2010 1:39 pm
Location: Boston

Re: Subsonic For ICS Android 4.0

Postby oggie » Fri May 04, 2012 7:14 pm

bionicdude wrote:"host name may not be null"

SGS2 on ICS 4.0.3.
Network UK 02.

I can't delete proxy, else nothing talks to the internet (even after reboot).

I was hoping that this modified version would solve the host name issue in the main version. Alas, no...


I did a custom build that fixes this issue. All the other ICS issues remain, but at least I can connect and play music.

I attached it.
oggie
 
Posts: 35
Joined: Sun Dec 18, 2011 2:41 am

Re: Subsonic For ICS Android 4.0

Postby oggie » Fri May 04, 2012 7:21 pm

BTW
Here's the patch:
Code: Select all
Index: subsonic-android/src/net/sourceforge/subsonic/androidapp/service/RESTMusicService.java
===================================================================
--- subsonic-android/src/net/sourceforge/subsonic/androidapp/service/RESTMusicService.java   (revision 2981)
+++ subsonic-android/src/net/sourceforge/subsonic/androidapp/service/RESTMusicService.java   (working copy)
@@ -731,7 +731,10 @@
     private void detectRedirect(String originalUrl, Context context, HttpContext httpContext) {
         HttpUriRequest request = (HttpUriRequest) httpContext.getAttribute(ExecutionContext.HTTP_REQUEST);
         HttpHost host = (HttpHost) httpContext.getAttribute(ExecutionContext.HTTP_TARGET_HOST);
-        String redirectedUrl = host.toURI() + request.getURI();
+        String redirectedUrl = request.getURI().toString();
+        if (request.getURI() != null && !request.getURI().toString().contains(host.toURI())) {
+           redirectedUrl = host.toURI() + request.getURI();
+        }     

         redirectFrom = originalUrl.substring(0, originalUrl.indexOf("/rest/"));
         redirectTo = redirectedUrl.substring(0, redirectedUrl.indexOf("/rest/"));
oggie
 
Posts: 35
Joined: Sun Dec 18, 2011 2:41 am

Re: Subsonic For ICS Android 4.0

Postby GJ51 » Fri May 04, 2012 7:41 pm

bushman4 wrote:I think you are misunderstanding the way this program progresses... there is only one developer. That is Sindre.

Anyone who is capable can branch off their own version of anything from the source code. But the impression that Subsonic has a whole cadre of developers behind it has no basis... there is only one, and he programs at his own pace. I for one am ecstatic with what he has produced so far, and am eagerly looking forward to what he releases in the future.

But I understand the limitations that being a single programmer puts on you... mostly time.

Have patience, young padewan.

(Happy Star Wars Day... May the Fourth be with you!)

Glenn



And a HAPPY SW DAY to you Glenn.

Also keep in mind that Sindre is currently hard at work focused on getting the next server version ready for the 4.7 beta release. There's no way to know as yet, if the next server version will fix any of the ICS problems, but there's little doubt that Sindre won't get to the Android app until 4.7 gets done.

Like every old soldier knows, one soldier - one gun.

Good things are worth waiting for.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Subsonic For ICS Android 4.0

Postby BKKKPewsey » Fri May 04, 2012 8:37 pm

GJ51 wrote:Like every old soldier knows, one soldier - one gun.

Shouldn't that be light sabre :?
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Subsonic For ICS Android 4.0

Postby oggie » Sat May 05, 2012 1:25 pm

GJ51 wrote:
bushman4 wrote:I think you are misunderstanding the way this program progresses... there is only one developer. That is Sindre.

Anyone who is capable can branch off their own version of anything from the source code. But the impression that Subsonic has a whole cadre of developers behind it has no basis... there is only one, and he programs at his own pace. I for one am ecstatic with what he has produced so far, and am eagerly looking forward to what he releases in the future.

But I understand the limitations that being a single programmer puts on you... mostly time.

Have patience, young padewan.

(Happy Star Wars Day... May the Fourth be with you!)

Glenn



And a HAPPY SW DAY to you Glenn.

Also keep in mind that Sindre is currently hard at work focused on getting the next server version ready for the 4.7 beta release. There's no way to know as yet, if the next server version will fix any of the ICS problems, but there's little doubt that Sindre won't get to the Android app until 4.7 gets done.

Like every old soldier knows, one soldier - one gun.

Good things are worth waiting for.


I wonder why Sindre chooses to all the dev by himself. That's a lot of work for one person. I'm sure he could recruit a few others to at least help out with testing and bug fixes. Strange that he's the single committer for all the code base (server, android, ios etc).
oggie
 
Posts: 35
Joined: Sun Dec 18, 2011 2:41 am

Re: Subsonic For ICS Android 4.0

Postby b1ackjosh » Sun May 06, 2012 10:28 pm

Would it be possible to change the back, play, and forward buttons to white or a light grey. Right now they are impossible to see in any kind of direct sunlight.

Also there was someone on the forums that made a great ics widget for subsonic. It would be great in that was included in your apk. I'll search for it and post a link when I can.

Really loving the new look though. The black theme is great.

Edit: Found it!
viewtopic.php?t=8963

Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
b1ackjosh
 
Posts: 16
Joined: Wed Jan 19, 2011 9:15 am

Re: Subsonic For ICS Android 4.0

Postby jsr » Mon May 07, 2012 1:38 am

I took haxzamatic's latest source on git and compiled it. It is located at http://www.ragtop.org/upload/subsonic/Subsonic-05-06-2012.apk. Note that you'll have uninstall and re-install since the keys the APK is signed with are different.

This version includes lighter colored play/pause buttons, notification controls, a better widget, and maybe other stuff. All credit for the new features goes to haxzamatic, all I did was compile the code. I've lightly tested this version, but there might be bugs.

I might still take the code and add in my ICS style widget, I haven't decided yet.
jsr
 
Posts: 43
Joined: Wed Jun 29, 2011 1:30 pm
Location: Gilbert, AZ, USA

Re: Subsonic For ICS Android 4.0

Postby pioneersohpioneers » Mon May 07, 2012 2:03 am

jsr wrote:I took haxzamatic's latest source on git and compiled it. It is located at http://www.ragtop.org/upload/subsonic/Subsonic-05-06-2012.apk. Note that you'll have uninstall and re-install since the keys the APK is signed with are different.

This version includes lighter colored play/pause buttons, notification controls, a better widget, and maybe other stuff. All credit for the new features goes to haxzamatic, all I did was compile the code. I've lightly tested this version, but there might be bugs.

I might still take the code and add in my ICS style widget, I haven't decided yet.


you. are. the. man.
nickgw.subsonic.net
pioneersohpioneers
 
Posts: 28
Joined: Tue Jul 27, 2010 1:39 pm
Location: Boston

Re: Subsonic For ICS Android 4.0

Postby iwill » Mon May 07, 2012 5:18 pm

pioneersohpioneers wrote:
jsr wrote:I took haxzamatic's latest source on git and compiled it. It is located at http://www.ragtop.org/upload/subsonic/Subsonic-05-06-2012.apk. Note that you'll have uninstall and re-install since the keys the APK is signed with are different.

This version includes lighter colored play/pause buttons, notification controls, a better widget, and maybe other stuff. All credit for the new features goes to haxzamatic, all I did was compile the code. I've lightly tested this version, but there might be bugs.

I might still take the code and add in my ICS style widget, I haven't decided yet.


you. are. the. man.


Agreed. Thanks!
User avatar
iwill
 
Posts: 34
Joined: Wed Feb 29, 2012 7:38 pm
Location: Austin, TX

Re: Subsonic For ICS Android 4.0

Postby disgustipated » Mon May 07, 2012 9:03 pm

ive found since i recently got a galaxy nexus the download speed while streaming over wifi makess all tracks buffer.

ive taken haxzmatics changes and began building my own quite a while ago, just thought I would mention this here as I am going to have to work this into my source:
http://developer.android.com/reference/ ... _HIGH_PERF
the above should prevent low download speeds with the screen off which would make it buffer while streaming
disgustipated
 
Posts: 96
Joined: Wed Jan 26, 2011 4:18 pm
Location: US

Re: Subsonic For ICS Android 4.0

Postby ttabbal » Mon May 07, 2012 9:50 pm

disgustipated wrote:ive found since i recently got a galaxy nexus the download speed while streaming over wifi makess all tracks buffer.

ive taken haxzmatics changes and began building my own quite a while ago, just thought I would mention this here as I am going to have to work this into my source:
http://developer.android.com/reference/ ... _HIGH_PERF
the above should prevent low download speeds with the screen off which would make it buffer while streaming


Seems to help here on a gnex. I'll attach a test version and source diff.

Code: Select all
diff --git src/net/sourceforge/subsonic/androidapp/service/DownloadServiceImpl.java src/net/sourceforge/subsonic/androidapp/service/DownloadServiceImpl.java
index 20a42b5e1a0149f8d1443d7121cbdfbe636d2adb..314009a7c9db19a6bba9e1d0ca9000802e2313dd 100644
--- src/net/sourceforge/subsonic/androidapp/service/DownloadServiceImpl.java
+++ src/net/sourceforge/subsonic/androidapp/service/DownloadServiceImpl.java
@@ -23,6 +23,8 @@ import android.content.Context;
import android.content.Intent;
import android.media.AudioManager;
import android.media.MediaPlayer;
+import android.net.wifi.WifiManager;
+import android.net.wifi.WifiManager.WifiLock;
import android.os.Handler;
import android.os.IBinder;
import android.os.PowerManager;
@@ -89,6 +91,8 @@ public class DownloadServiceImpl extends Service implements DownloadService {
     private VisualizerController visualizerController;
     private boolean showVisualization;
     private boolean jukeboxEnabled;
+   
+    private WifiLock wifiLock;

     static {
         try {
@@ -141,6 +145,10 @@ public class DownloadServiceImpl extends Service implements DownloadService {
         wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, this.getClass().getName());
         wakeLock.setReferenceCounted(false);

+        WifiManager wm = (WifiManager) getSystemService(Context.WIFI_SERVICE);
+        wifiLock = wm.createWifiLock(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "SubSonic WifiLock");
+        wifiLock.acquire();
+
         instance = this;
         lifecycleSupport.onCreate();
     }
@@ -165,6 +173,7 @@ public class DownloadServiceImpl extends Service implements DownloadService {
         }

         instance = null;
+        if (wifiLock != null && wifiLock.isHeld()) wifiLock.release();
     }

     public static DownloadService getInstance() {
ttabbal
 
Posts: 33
Joined: Thu May 27, 2010 8:57 pm

Re: Subsonic For ICS Android 4.0

Postby disgustipated » Tue May 08, 2012 11:55 am

thanks for tracking that down :) im still a newb and it would have taken me a little while probably. im going to throw that in my source ive been using.

edit:
and its working great. thanks for posting that diff, it would have taken me quite a while to figure out where the rest of that went :D
disgustipated
 
Posts: 96
Joined: Wed Jan 26, 2011 4:18 pm
Location: US

Re: Subsonic For ICS Android 4.0

Postby ttabbal » Tue May 08, 2012 2:26 pm

Glad it helped you as well. Hopefully it gets added to the official versions at some point.
ttabbal
 
Posts: 33
Joined: Thu May 27, 2010 8:57 pm

Re: Subsonic For ICS Android 4.0

Postby pioneersohpioneers » Tue May 08, 2012 6:22 pm

Please add that ICS widget to the ICS app. It looks bomb.

Also, minor bug, but when you hit the top right menu button, the menu pops up in the old GB spot, rather than the top right corner
nickgw.subsonic.net
pioneersohpioneers
 
Posts: 28
Joined: Tue Jul 27, 2010 1:39 pm
Location: Boston

PreviousNext

Return to General

Who is online

Users browsing this forum: No registered users and 6 guests