FAQ  •  Register  •  Login

[OLD] Android Console

<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Sun Dec 18, 2011 8:05 am

Re: Android Console

As requested obviourly i did it as concept and may not be possible but should be fine on tablets and high end photos in landscape setting.

console design.png
console design.png (17.9 KiB) Viewed 15442 times
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun Dec 18, 2011 9:53 am

Re: Android Console

Cerberus wrote:As requested obviourly i did it as concept and may not be possible but should be fine on tablets and high end photos in landscape setting.

console design.png


Thank you for putting the effor in, and once I get the core backend working, I will definately work on the colouring in general, and the layout where needed.

The problem is although I can (and will) supply alternative layouts to go from small portrait phones upto lanscape tablets, they have to share similar fundimentals else 1) I'll be writing alot of the gui code twice 2) the app will on some devices act in two very different modes depending on the orientation. The problem with following zip's original console layout, is there just is not enough space on phones to fit it all in. Additionally, its designed for a constant connection which is less likely in a mobile app so I have to add extra UI elements and code to account for that.

But don't worry, I will be running it in an emulator I have setup for tablets, its just harder to test as the emulator only uses one cpu core so is quite slow with tablet size screens.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Dec 18, 2011 2:00 pm

Re: Android Console

If I was doing a mobile app, I'd probably focus only on certain parts of the console, as some of them don't really make sense on a mobile device. I'd probably skip adding shared folders, presentation tab. Might leave online sources in, but not even sure about that.

What would be useful from a mobile app are thinkgs like - force refresh, start/stop server, in future enabling/disabling user or device profiles (via PIN), etc.

But it's obviously up to you - and looks cool so far :P
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Mon Dec 19, 2011 2:58 pm

Re: Android Console

I agree, this will speed up release of the app :D

The only main function i want is to refresh library, refresh of individual feeds and adding new online feeds

Zip have you thought of going forward into Windows 8, a metro UI version of Serviio app and WP7 app
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Dec 19, 2011 3:03 pm

Re: Android Console

Xmantium wrote:Zip have you thought of going forward into Windows 8, a metro UI version of Serviio app and WP7 app

Nope, don't want to hijack this thread, but if someone wants to give it a go then great - I doubt there will be Java bindings any time soon.
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Mon Dec 19, 2011 3:04 pm

Re: Android Console

Xmantium wrote: refresh of individual feeds


Can you do this through the console atm, don't you have to edit the feed in some way to get it to refresh it?

Zip, what would be the best way to do this via REST other than sending two updates?
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Dec 19, 2011 3:20 pm

Re: Android Console

It's in there since beta 3, check the API docs attached to beta 3 topic. In the current console you can right-click on a feed.
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Mon Dec 19, 2011 3:33 pm

Re: Android Console

zip wrote:It's in there since beta 3, check the API docs attached to beta 3 topic. In the current console you can right-click on a feed.


Excellent, I missed that when checking for changes in the doc. I will definately add that then.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Mon Dec 19, 2011 9:27 pm

Re: Android Console

Surprised you missed it Will, used it a few time as iPlayer is constantly updating with new videos
I imagine on android, user can press hold down on the individual feed and popup to "refresh, edit or remove"

BTW, which country are you based Will?
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Tue Dec 20, 2011 8:43 am

Re: Android Console

Xmantium wrote:Surprised you missed it Will, used it a few time as iPlayer is constantly updating with new videos
I imagine on android, user can press hold down on the individual feed and popup to "refresh, edit or remove"

BTW, which country are you based Will?


I wrote the app starting with the 0.6.0 API as I'm going to try (don't know if it will be sustainable) to write it so that the app can support a few different versions). I don't use online feeds that much as I have an iPlayer app on by blu-ray player. What I want to start using is 4oD but the audio is too loud (even with my tv on 1 our of 100) to watch during the evening so I need to sort that out first before I can use it.

At the moment there is a little refresh icon to the left of the feed, clicking that sends the request.

I'm in the UK.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Tue Dec 20, 2011 10:17 am

Re: Android Console

ZIP - can you tell me what could be wrong with this request. It works fine for the actions with no parameters. The http code idicates the syntax is wrong, but not sure why. And the error code doesn't exist in the API docs.

PATH: /rest/action
CONTENT: {"name":forceOnlineResourceRefresh,"parameter":1}
RESPONSE: {"errorCode":700,"httpCode":400}

EDIT:
The xml version works
<action><name>forceOnlineResourceRefresh</name><parameter>1</parameter></action>
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Tue Dec 20, 2011 3:33 pm

Re: Android Console

I'm having the same issue with my WebUI.

There are few problems here :
1) in json, string value must be quoted : forceOnlineResourceRefresh should be "forceOnlineResourceRefresh"
=> it's minor, cause it's automatically corrected by the gson lib.

2) in java, the variable name is "parameters" not "parameter". The XML is working, cause of a renaming annotation : @XStreamImplicit(itemFieldName = "parameter").
This annotation is specific to Xstream and ignored by Gson.
=> 3 options to resolve this :
2.a) use "parameters" in json and "parameter" in xml (no evolution, just need to update the REST API).
  Code:
json : {"name":"forceOnlineResourceRefresh","parameters":1}
xml  : <action><name>forceOnlineResourceRefresh</name><parameter>1</parameter></action>

2.b) add a Gson annotation to rename to "parameter" everywhere : @SerializedName("parameter")
2.c) remove the annotation @XStreamImplicit and use "parameters" everywhere.
Zip, it's up to you!

3) in java, the variable is a List<String>, not a simple String.
=> Add [] to your json request (2nd is better) :
  Code:
{"name":"forceOnlineResourceRefresh","parameters": [ 1 ]}
{"name":"forceOnlineResourceRefresh","parameters": [ "1" ]}

For now, you can try the latest request for you android console.
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Dec 20, 2011 4:04 pm

Re: Android Console

Ok, I'll add the annotation to keep it named "parameter". I'll test it and either update the beta downloads or push it to the final release only, will see.

So in JSON if there were more parameters you'd write

  Code:
{"name":"forceOnlineResourceRefresh","parameter": [ "1","2" ]}


or

  Code:
{"name":"forceOnlineResourceRefresh","parameter": "1", parameter: "2"}
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Tue Dec 20, 2011 4:14 pm

Re: Android Console

So in JSON if there were more parameters you'd write
  Code:
{"name":"forceOnlineResourceRefresh","parameter": [ "1","2" ]}

BTW, you should maybe add the annotation to ResultRepresentation too.
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Tue Dec 20, 2011 4:55 pm

Re: Android Console

@kairoh - Thats for the explination/help.

@Zip - let me know when you have made the change and then it might be worth adding a note about it in the API docs for the final 0.6.1
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Tue Dec 20, 2011 6:34 pm

Re: Android Console

Right a have a what is barely a first beta and its not for the faint hearted, but otherwise you won't get a chance to give me feedback before I go away for the holidays on friday morning.

http://www.filedropper.com/comserviiodroidbeta1

@Zip - can I host it on the forums as that site is a bit useless for mobile browsers / any recomendations for somewhere android browser friendly to host the beta releases?
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Dec 20, 2011 7:47 pm

Re: Android Console

I've now updated the beta 4 links to support the updated parameter notation, give that a try.

I can host it for you if you like or attach it here if it's not huge.
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Tue Dec 20, 2011 7:56 pm

Re: Android Console

zip wrote:I've now updated the beta 4 links to support the updated parameter notation, give that a try.

I can host it for you if you like or attach it here if it's not huge.


OK, thanks.
It's 250kB so not big. Can you enable apk as a valid file extension.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Wed Dec 21, 2011 12:41 am

Re: Android Console

Just read the post! Going to have to test this 2mrw :( , thanks Will, I'm really excited to see it in action! :geek:
Thought you were going to release it when 0.6.1 is final

I have unlimited bandwidth on my server xmantium.com
Let me know if need extra hosting
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Wed Dec 21, 2011 1:38 am

Re: Android Console

When I get home in the morning, I will download it and test it on my droid X.
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
PreviousNext

Return to Third-party tools integration

Who is online

Users browsing this forum: No registered users and 6 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.