Moderator: moderators
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...
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/"));
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
GJ51 wrote:Like every old soldier knows, one soldier - one gun.
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.
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.
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.
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
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() {
Users browsing this forum: No registered users and 4 guests