Sixthhokage2 / remuco

Automatically exported from code.google.com/p/remuco
1 stars 1 forks source link

Google Android client #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What feature or enhancement would you like to see in Remuco?

It would be really nice to have also the Google Android client.

Please describe a use case that motivates this feature:

Google Android is going to be installed on significant number of mobile
phones in near future, so it would be really good idea to create a client
for it.

Original issue reported on code.google.com by jiri....@gmail.com on 22 Sep 2009 at 10:25

GoogleCodeExporter commented 9 years ago
You need to checkout Florian's clone at 
http://code.google.com/r/fhaust-androidremuco/source/checkout. In 
the source, the Android client is located at 'client/android'. I only tested 
the client in the emulator. Instructions 
how to do this are in the README file. I don't know the specific steps to test 
the client on a real device, Florian 
(fhaust) could give you better support here.

@Florian:
Concerning comment 47, would be great to have this done, that way we could 
include a beta for pro-users in 
the next release package.

Original comment by obensonne@googlemail.com on 27 Apr 2010 at 6:01

GoogleCodeExporter commented 9 years ago
Hello all,

Back from travelling, I finally got time today to build and test fhaust's work. 
and
it works!
... well sort of :)

I tested remuco android client in a VM and on my HTC Magic (currently android 
1.6).
I tested the built-in player into rhythmbox and remuco-banshee. Both players 
react
the same.
- Next/Previous track works well
- Toggle Repeat & Shuffle works well
- Seeking in the current track currently does't work
- Doing something on the VM client is instantly seen on the HTC Magic client, 
and
vice versa. Both client running at the same time goes without a glitch.

I guess the file browsing/ library searching is not yet implemented in the 
android
client, right ?
Anyway great work on all that's beeing done here.
Congratulations! 

Original comment by olivier....@gmail.com on 14 May 2010 at 7:22

GoogleCodeExporter commented 9 years ago
By the way, trying to reach multiple Players by connecting to "IP:port" (and 
setting
the ports accordingly on the player side) fails on this android client. Is this 
also
not implemented ?

Original comment by olivier....@gmail.com on 14 May 2010 at 10:24

GoogleCodeExporter commented 9 years ago
Any news exactly when this will be released?

Original comment by MentalOm...@gmail.com on 16 May 2010 at 11:35

GoogleCodeExporter commented 9 years ago
@oliver.revelin:

Thanks for testing. File browsing is not done yet. The goal is to have a stable 
basic
client first before proceeding to the library features.

The port currently is still hard-coded
(http://www.google.com/codesearch/p?hl=en#r_MCUh_ZzRU/client/android/src/remuco/
client/android/util/ConnectTask.java&q=PORT_DEFAULT%20package:http://fhaust-andr
oidremuco\.googlecode\.com&sa=N&cd=2&ct=rc).
So the multiple mode cannot be used yet.

Would be great if you could write down some instructions in the Wiki how to get 
the
Android client running on a real device. I'm not sure about Florian's (fhaust) 
next
steps concerning the Android client, i.e. if it will be part of the next 
release. But
if we had some help in the wiki how to get the client working based on the 
source
repo would help other users who are eager to use the Android client. Let me 
know if
you'd like to do this. In that case I'll give you edit permissions for the Wiki.

@MentalOmega:
Depends on Florian. Don't if he has time to work on the Android client right 
now ..
but also see the comments for Olivier.

Original comment by obensonne@googlemail.com on 18 May 2010 at 1:35

GoogleCodeExporter commented 9 years ago
Hi everybody,

sorry for not responding currently. Life has moved faster than i originally 
thought 
and i (finally) startet a new job. I hope i can continue working on the remuco 
client 
as soon as things have settled here.

I am actually using it actively (although it crashes alot but you can just 
restart 
it) so maybe someone can build a .apk package and upload it here?

Florian

Original comment by fha...@gmail.com on 18 May 2010 at 2:36

GoogleCodeExporter commented 9 years ago
Hi all,

@obensonne : sure I can do that. It's not **that** complicated after all. Shall 
I
write something to be included in
http://code.google.com/p/remuco/wiki/GettingStarted#Client ? should I prepare a 
whole
new Wiki article for Android users ? Either way is fine with me. (though I 
probably
won't be able to do it until next week). 

@fhaust The build I use is a debug build. "ant install" worked on the emulator 
only,
 but "ant release" refused to build because I cannot sign it with jarsigner. So the
build I use is using "ant debug". Can I put that here ?

I'll try to dig a little in the code and see if I still have a little Java in 
my head
(haven't touched any code in 5 years) to give you a hand.

Original comment by olivier....@gmail.com on 21 May 2010 at 5:53

GoogleCodeExporter commented 9 years ago
do you plan to put this in the market?

Original comment by sebastian.dietzold on 23 May 2010 at 4:18

GoogleCodeExporter commented 9 years ago
Any updates on this?

With regards to the wiki, if the information is long enough for it to require 
its own 
article, maybe you should just add a link to the new one in the Client section 
of that 
page.

Original comment by billygot...@gmail.com on 3 Jun 2010 at 11:27

GoogleCodeExporter commented 9 years ago
Hello all,

I finally found a few minutes to write the following guide. I hope some will 
find it 
usefull.

The objective of this article is to give a short guide on how to compile the 
Remuco 
Android Client under linux and install the Remuco client on an Android system.

A work is under way on an android Remuco client, currently beeing worked on by 
fhaust.
As of this writing, (0.9.3 not out yet) the client is functionnal and has been 
tested 
in Android SDK's Virtual Machins as well as on HTC Dream and HTC Magic. 
However, the 
port is far from finished and lacks a lot of functionnalities provided by the 
original client.

You will need a few things to get to compile the Android Client.

- A working Android SDK with at least one target environment already created 
(at 
least one VM). See here (http://developer.android.com/sdk/index.html) for 
details.

- A few dependancies from your linux distrib:
mercurial (the versioning tool used by remuco)
sun-java6-jdk (might be on an archive that is not available by default on your 
distrib, as it's not entirely free software)
ant ("make" for Java)

Pull fhaust's Remuco clone with android client:

[code]hg clone https://fhaust-androidremuco.googlecode.com/hg/ fhaust-
androidremuco[/code]

Go in the root directory for the android client:
cd fhaust-androidremuco/client/android

You will have to create a file named "local.properties" to tell your compiler 
where 
all the Android SDK stuff is located. Thankfully, there is already a file named 
"local.properties.exemple" wich you can just copy/paste or rename as 
"local.properties" after you have edited it. I had installed my Android SDK in 
my 
home directory, so the file looked like this for me:

[code]sdk.dir=/home/drake/android-sdk-linux_86[/code]

Change that to suit your needs.

Now you are ready to compile your Android Client and create the APK file you 
need to 
install on your phone.

ant debug will create an apk file that can help with debug
ant release will create a normal installer apk file
ant install will create a package and automatically install it on a running 
Android 
Virtual Machine if you have one in your Android SDK manager.

The files you will need to transfer to your phone are located in the /bin sub-
directory. You are looking for a file ending with .apk. Either Remuco-debug.apk 
or 
Remuco-unsigned.apk. The File is marked as "unsigned" because you need to sign 
it (if 
you're a registered Android developper, I guess) to be published on the Android 
Market.

Simply plug your phone with the USB connection, transfer the file to your 
phone, 
unplug your USB cable. Now, on your phone, browse to the SD Card directory 
where you 
have stored the APK file using any file browser you wish available on the 
Android 
Market (I'm currently using one named Astro).

When you try to launch the apk file, your Android operating system should be 
very 
unhappy: you are trying to install a software that was not download from the 
Android 
Market and that is not signed with Google's tools. This is a security risk and 
shouldn't be done lightly for anything.

... but you really want this Remuco client on your phone, Right ?
Ok then in the Parameter screen, you have to unlock the possibility to install 
an 
unsigned application. My android phone is in french so I might not have the 
correct 
names for the screen names, but it should be something like: Parameters --> 
Applications --> "Unknown Sources".

Then try again in your file browser and it should work. Your phone will once 
again be 
very unhappy that you wish to install an unsigned software but at least this 
time it 
should allow you to.

If you hvae used any android app even remotely related to networking, you know 
what 
to do : set your server's IP and you're good to go.

Caveats : as I said above, a lot of functions are missing from the client
- Library searching / playing
- Playlist management
- port selection (currently hard coded to Remuco's default port)
But forward/back etc...work ok. 

Have fun !

Original comment by olivier....@gmail.com on 3 Jun 2010 at 9:40

GoogleCodeExporter commented 9 years ago
@olivier:
Thanks a lot! Good work. I've put your documentation into the wiki (Android 
page). Additionally I gave you wiki permissions, i.e. you can edit the 
documentation in case 
you like to.

Original comment by obensonne@googlemail.com on 5 Jun 2010 at 9:45

GoogleCodeExporter commented 9 years ago
This issue was updated by revision a04116fa91.

Florian's Android client is now integrated in the main repository.

Original comment by obensonne@googlemail.com on 7 Jun 2010 at 7:23

GoogleCodeExporter commented 9 years ago
Florian, while merging your Android code, I collapsed the changeset which 
introduced 
the bunch of strange unneeded files with its subsequent changeset. This means 
the main 
repository history now differs from your clone. Please re-sync with the main 
repository before continuing to work on the Android client.

Original comment by obensonne@googlemail.com on 7 Jun 2010 at 7:29

GoogleCodeExporter commented 9 years ago
I have edited the wiki for minor corrections.

I really would like to contribute to this so I'll try to look a little bit at 
the code to see how it works.

I've got the feeling tablets will be a killer tool for remote control (with 
library searching, and so on...) and I'll probably get myself an Android one.

Original comment by olivier....@gmail.com on 8 Jun 2010 at 7:45

GoogleCodeExporter commented 9 years ago
I left this feedback in the wiki page for the Android client but I have since 
realized it should probably be in the bug tracking system...

I built and installed on my Galaxy S Captivate. At first it complained about 
not finding the proper "jre" so I just exported the proper path for Sun Java6 
and it built fine

$ export JAVA_HOME=/usr/lib/jvm/java-6-sun/jre

The stars are slightly obscured by shuffle and repeat buttons
The "Rate Song" dialog does not fit in portrait mode
The stars are also obscured in dialog box (both portrait and landscape)
Album art fails to load if there are the following characters in the file path. 
á é (It displays the characters properly in the song names and titles)
In the "connect to Remuco" dialog the OK and Cancel buttons seem a little too 
close. maybe they could be equally sized like the shuffle and repeat buttons or 
just pushed far right and left.

It also disconnects and reconnects when you rotate your device (this sometimes 
causes a force close)

This is a very cool project. thanks for all the hard work. ScreenShots attached.

Original comment by pstevens...@gmail.com on 3 Sep 2010 at 6:35

Attachments:

GoogleCodeExporter commented 9 years ago
Is bluetooth supported, too? My Wifi connection is rather unstable, so I'd 
prefer to use bluetooth instead. If it is supported, what do I have to do to 
get it running?

Original comment by arne.c.mueller@googlemail.com on 6 Sep 2010 at 12:00

GoogleCodeExporter commented 9 years ago
Until now Bluetooth is not supported. Looks like development on the Android 
client still is in its summer break. If you're a programmer, don't hesitate to 
add Bluetooth support :P

Original comment by obensonne@googlemail.com on 6 Sep 2010 at 7:12

GoogleCodeExporter commented 9 years ago
@obensonne: I just did that :-) 
But I didn't want to hassle with the UI (Its my first android code I wrote), so 
I just wrote an alternative ISocket implementation (called BTSocket) for 
bluetooth and I just instantiate my implementation instead of Socket.

For bluetooth you need a BluetoothAdapter. As far I understood this bluetooth 
stuff, it is best to get it in the creation process. Hence I also had to edit 
PlayerAdapter, too.

I attached the files.

And you have to add the BLUETOOTH permission, ofcourse. Additionally it will 
not work for android-3 (The Bluetooth classes are missing there). I tried it 
using android-7 (the version I have installed on my phone), but I think it may 
also work with android-5 or android-6.

Usage:
In the address field just enter the bt-address of the bt-device to connect to 
(thats the numerical hex-address. Make sure you use capital letters). 
Alternatively you can just enter the name of the device if you paired in 
beforehand.

Issues:
* I wasn't able to sucessfully run the ant scripts. Its bothering with 
${android.jar}, when set to android-5 etc. (It does not with android-3)
* If the view switches from portrait to landscape, remuco somehow crashes (just 
closes). This happens always, when run in release mode. It only sometimes 
happens, when run in debug mode. It nearly never happens if I add breakpoints 
at BTSocket.close. So this is pretty strange.

Original comment by arne.c.mueller@googlemail.com on 7 Sep 2010 at 12:10

Attachments:

GoogleCodeExporter commented 9 years ago
You should consider forking the project in BitBucket or Github and add those 
patches.

Original comment by igor.con...@gmail.com on 8 Sep 2010 at 12:18

GoogleCodeExporter commented 9 years ago

Original comment by obensonne@googlemail.com on 8 Mar 2011 at 6:38

GoogleCodeExporter commented 9 years ago

Original comment by obensonne@googlemail.com on 8 Mar 2011 at 6:39

GoogleCodeExporter commented 9 years ago
Closing this issue as release 0.9.4 now contains an Android client (it is not 
yet in the market and still beta, but most things work quite well already).

Feel free to open new issues for more specific features or bugs regarding the 
Android client.

Original comment by obensonne@googlemail.com on 17 Mar 2011 at 7:28

GoogleCodeExporter commented 9 years ago

Original comment by obensonne@googlemail.com on 17 Mar 2011 at 7:28