Page 1 of 1

Android Widget and Notification updates

PostPosted: Wed Jun 29, 2011 1:59 pm
by jsr
I made some updates to the widget and notifications in the android client. These are based off the 2.9 version. Is there any way to get these patches put into the main subsonic app?

Updated Widget:
Image
http://www.ragtop.org/upload/subsonic/widget-2.9.patch
http://www.ragtop.org/upload/subsonic/widget-res-2.9.zip


Updated Notifications:
Image
http://www.ragtop.org/upload/subsonic/notification-2.9.patch


Binary:
http://www.ragtop.org/upload/subsonic/subsonic-2.9.apk


Note that if you are listening to a song for the first time that has not been preloaded, you wont get cover art. This is because the cover art is not available at the time that the notifications and widgets are updated. Fixing this for notifications would require sending multiple notifications, which is bad. The widget could be fixed, but it would require major changes to the ImageLoader to give widget friendly image sizes and push out widget updates.

OooOooOO

PostPosted: Wed Jun 29, 2011 3:48 pm
by jooprzol
Installed! Those are some great changes! Hopefully they get merged into mainline... :-)

PostPosted: Thu Jun 30, 2011 5:28 am
by vancamp
I'd still like to see a 2x2 android widget (with album art). The MixZing one looks (and works) quite well.

PostPosted: Thu Jun 30, 2011 12:37 pm
by SparkyRih
The widget won't show up on my tablet (Android 3.1)?

PostPosted: Thu Jun 30, 2011 1:21 pm
by jsr
SparkyRih wrote:The widget won't show up on my tablet (Android 3.1)?


Does it not show up in the widget selection area or just not show up once you select it and try to put it on the homescreen?

I don't have a tablet, but I briefly tested it with the super slow emulator and it worked.

PostPosted: Thu Jun 30, 2011 2:20 pm
by SparkyRih
jsr wrote:
SparkyRih wrote:The widget won't show up on my tablet (Android 3.1)?


Does it not show up in the widget selection area or just not show up once you select it and try to put it on the homescreen?

I don't have a tablet, but I briefly tested it with the super slow emulator and it worked.


It doesn't show up in the widget list...

PostPosted: Thu Jun 30, 2011 2:34 pm
by jsr
OK, I'll test it with honeycomb again when i get home.

Can you please verify that you installed on internal memory and not external (SD)? Installing a program on external memory causes all widgets to be unavailable.

PostPosted: Thu Jun 30, 2011 2:36 pm
by SparkyRih
jsr wrote:OK, I'll test it with honeycomb again when i get home.

Can you please verify that you installed on internal memory and not external (SD)? Installing a program on external memory causes all widgets to be unavailable.


I installed this widget like I do with all other widgets and apps, so I don't think that could be an issue, but I'll check to make sure...

PostPosted: Sun Jul 03, 2011 1:26 am
by sog1971
Beautiful widget changes. You are my hero.

This is exactly what I was looking for.

PostPosted: Wed Jul 06, 2011 2:09 pm
by jsr
SparkyRih wrote:I installed this widget like I do with all other widgets and apps, so I don't think that could be an issue, but I'll check to make sure...


Can you try re-installing it? What tablet are you using?

I've tested the widget on the Android 3.0 emulator and two different Samsung Galaxy Tab 10.1's, both running 3.1. I have not been able to reproduce the problem.

PostPosted: Thu Jul 07, 2011 8:36 am
by sindre_mehus
Looks awesome!

I'll review your changes and include them in a later version.

Thanks a lot for sharing!!

Sindre

PostPosted: Fri Jul 08, 2011 4:54 am
by jsr
Thanks, Sindre.

I just updated the patches and binary to for the 2.9 version.