Bitcoin Forum

Bitcoin => Wallet software => Topic started by: Belkaar on May 06, 2011, 10:12:59 PM



Title: Android Bitcoin RPC client
Post by: Belkaar on May 06, 2011, 10:12:59 PM
Hey there,

I just put the first version of Bitcoiner on the Android market.

https://market.android.com/details?id=net.lwi.bitcoiner (https://market.android.com/details?id=net.lwi.bitcoiner)

You can view your balance and recent transactions as well as send and receive Bitcoins using QR codes and links like this one:

bitcoin:1CfC1HedynjXhXKrXtzsiD3W7Z482NV3ov?amount=1.00&label=Bitcoiner&message=Donation%20for%20Bitcoiner%20development

Have fun trying it out. It has a Donate option to test if its working :-)

Edit:

Soruce code at http://sourceforge.net/projects/bitcoiner/ (http://sourceforge.net/projects/bitcoin/)



Title: Re: Android Bitcoin RPC client
Post by: em3rgentOrdr on May 06, 2011, 10:54:46 PM
I am downloading it.  I am a little paranoid to run it since I don't know if will steal my coins or not.  Could you provide me a link to the open source code so I can see what's going on under the hood?


Title: Re: Android Bitcoin RPC client
Post by: Belkaar on May 07, 2011, 07:56:43 AM
I am downloading it.  I am a little paranoid to run it since I don't know if will steal my coins or not.  Could you provide me a link to the open source code so I can see what's going on under the hood?

I created a project at sourceforge. Took a while, it was my first :-).

Source code is all up there tho.

https://sourceforge.net/projects/bitcoiner/ (https://sourceforge.net/projects/bitcoiner/)

If you want to help improving feel free to contact me


Title: Re: Android Bitcoin RPC client
Post by: kseistrup on May 07, 2011, 08:06:14 AM
Cool.

One question, though:  Does it use SSL for the RPC connection?

Cheers,


Title: Re: Android Bitcoin RPC client
Post by: Belkaar on May 07, 2011, 08:13:25 AM
Cool.

One question, though:  Does it use SSL for the RPC connection?

Cheers,

If you use a https://... url it uses ssl, otherwise not. You need to install the certificate on the phone tho if its self signed.


Title: Re: Android Bitcoin RPC client
Post by: kseistrup on May 07, 2011, 08:29:13 AM

If you use a https://... url it uses ssl, otherwise not.


Sweet!

Quote

You need to install the certificate on the phone tho if its self signed.


Any idea how I do that?

Cheers,


Title: Re: Android Bitcoin RPC client
Post by: Belkaar on May 07, 2011, 09:45:03 AM
Quote

You need to install the certificate on the phone tho if its self signed.


Any idea how I do that?

Cheers,


You can use http://www.realmb.com/droidCert/ for example. There are also some apps on the marketplace I think.

Here is a manual guide: http://onlygizmos.com/installing-cer-certificates-on-your-updated-htc-hero-android-2-1/2010/06/


Title: Re: Android Bitcoin RPC client
Post by: Belkaar on May 08, 2011, 06:11:17 PM
Update to v0.91
Client allows untrusted certificates because installing certs on android is a pain. So more people can use SSL (https://... instead of http://)

Please consider a small donation (button in the send-mode) to cover the outrageous 25$ android market fee to publish even free apps :-).
Or alternatively: Some feedback would be nice. Always trying to improve.


Title: Re: Android Bitcoin RPC client
Post by: Matt Corallo on May 08, 2011, 06:21:59 PM
Update to v0.91
Client allows untrusted certificates because installing certs on android is a pain. So more people can use SSL (https://... instead of http://)
Could you cache ssl certs for known servers and/or warn the user if a certificate is untrusted?


Title: Re: Android Bitcoin RPC client
Post by: Belkaar on May 08, 2011, 06:29:32 PM
Could you cache ssl certs for known servers and/or warn the user if a certificate is untrusted?

You mean like a message "This certificate is untrusted, trust anyway and never show this message for this certificate again"?


Title: Re: Android Bitcoin RPC client
Post by: Matt Corallo on May 08, 2011, 06:30:39 PM
You mean like a message "This certificate is untrusted, trust anyway and never show this message for this certificate again"?
Yep, something like that.


Title: Re: Android Bitcoin RPC client
Post by: kseistrup on May 08, 2011, 06:58:55 PM

Update to v0.91
Client allows untrusted certificates because installing certs on android is a pain. So more people can use SSL (https://... instead of http://)


That's very cool!  I managed to import an SSL-certificate, but the previous version failed to connect over https anyway.  Perhaps I did something else wrong…

With the new version, however, I have to ring in the server's IP address — if I ring in a hostname Bitcoiner crashes (and I have to go to the system settings and clear any data associated with Bitcoiner to be able to enter an IP address instead).  Is this the expected behaviour, or should I be able to use a hostname?

Cheers,


Title: Re: Android Bitcoin RPC client
Post by: Belkaar on May 08, 2011, 07:49:02 PM
Update to v0.92
Alert the user if SSL certificate changes.

----------

You should be able to use host names. I'm using

'https://somehost.dyndns.org:8332' as URL string and it works fine.



Title: Re: Android Bitcoin RPC client
Post by: kseistrup on May 08, 2011, 07:53:13 PM

You should be able to use host names. I'm using

'https://somehost.dyndns.org:8332' as URL string and it works fine.


Thanks, I'll give it one more try…

Update: it works with hostname, I don't know why it crahsed last time then.

Cheers,


Title: Re: Android Bitcoin RPC client
Post by: SleepMachine on May 08, 2011, 08:02:27 PM
Perhaps a noob question... but do i have to compile my own version of the official bitcoin client to get SSL support?

Getting error "bitcoin not compiled with full openssl libraries" when trying to use rpcssl=1


Title: Re: Android Bitcoin RPC client
Post by: Belkaar on May 08, 2011, 08:48:42 PM
Perhaps a noob question... but do i have to compile my own version of the official bitcoin client to get SSL support?

Getting error "bitcoin not compiled with full openssl libraries" when trying to use rpcssl=1

I guess its because bitcoin can't create a certificate itself.

This "https://en.bitcoin.it/wiki/Enabling_SSL_on_original_client_daemon (https://en.bitcoin.it/wiki/Enabling_SSL_on_original_client_daemon)) should get your started.


Title: Re: Android Bitcoin RPC client
Post by: SleepMachine on May 08, 2011, 09:03:14 PM
I did try to follow those instructions. After i've created my certificate and updated bitcoin.conf to use rpcssl=1 i am told to restart bitcoin.exe but then it chrashes with the "bitcoin not compiled with full openssl libraries" error.

Could it have anything to do with this?
http://bitcointalk.org/index.php?topic=1434.msg16585#msg16585
or is that old post no longer relevant?


Title: Re: Android Bitcoin RPC client
Post by: Belkaar on May 08, 2011, 09:24:35 PM
I did try to follow those instructions. After i've created my certificate and updated bitcoin.conf to use rpcssl=1 i am told to restart bitcoin.exe but then it chrashes with the "bitcoin not compiled with full openssl libraries" error.

Could it have anything to do with this?
http://bitcointalk.org/index.php?topic=1434.msg16585#msg16585
or is that old post no longer relevant?

I just tried it on windows and it seems like you'd have to compile it with ssl support. My node runs on linux and apparently it's already built in there.

In the meantime you can try the app out inside your local network without SSL.


Title: Re: Android Bitcoin RPC client
Post by: SleepMachine on May 08, 2011, 10:32:44 PM
I figured as much. =/
Oh well, compiling bitcoin with SSL support is a project for another day... unless someone trusted already has the compiled binaries for this?


Title: Re: Android Bitcoin RPC client
Post by: Belkaar on May 09, 2011, 04:40:09 PM
Just an idea:

What would you think about a thin client that doesn't store the block chain, but only talks to one trusted node who does all the checking and verifying.
It would have it's own wallet.

It seems like no advantage over the existing RPC client, but you could choose to trust a node of a friend or a respected community member like the slush pool node.
So you would not necessarily need to set up your own internet-accessible node.

Any thoughts?


Title: Re: Android Bitcoin RPC client
Post by: Belkaar on May 18, 2011, 10:48:07 PM
Just uploaded a small update that should help with the force closes.


Title: Re: Android Bitcoin RPC client
Post by: kralizec on May 27, 2011, 01:30:52 PM
I started compiling from source according to this guide http://forum.bitcoin.org/index.php?topic=5851 (http://forum.bitcoin.org/index.php?topic=5851), and this post http://forum.bitcoin.org/?topic=1434.msg16585#msg16585 (http://forum.bitcoin.org/?topic=1434.msg16585#msg16585), but dear Thor does it take long!!

I'll post the SSL-enabled result here whenever it's done, hopefully it'll enable me to use this app.


Title: Re: Android Bitcoin RPC client
Post by: MoonShadow on May 27, 2011, 01:41:08 PM
Just an idea:

What would you think about a thin client that doesn't store the block chain, but only talks to one trusted node who does all the checking and verifying.
It would have it's own wallet.

It seems like no advantage over the existing RPC client, but you could choose to trust a node of a friend or a respected community member like the slush pool node.
So you would not necessarily need to set up your own internet-accessible node.

Any thoughts?

I've had a bounty waiting for this exact concept for months.


Title: Re: Android Bitcoin RPC client
Post by: kralizec on May 27, 2011, 02:12:09 PM
Here: http://www.filesonic.com/file/1080163654/bitcoin.zip (http://www.filesonic.com/file/1080163654/bitcoin.zip)
This won't crash when rpcssl=1, and it works with this great android app too!


Title: Re: Android Bitcoin RPC client
Post by: Belkaar on May 27, 2011, 02:37:25 PM
Here: http://www.filesonic.com/file/1080163654/bitcoin.zip (http://www.filesonic.com/file/1080163654/bitcoin.zip)
This won't crash when rpcssl=1, and it works with this great android app too!

Very nice work!


Title: Re: Android Bitcoin RPC client
Post by: cartman on June 03, 2011, 10:24:49 AM
I can't find this app at the market and cannot install it via the market-website. So I guess this is because my Phone is an HTC Wildfire (is this a matter of the screen size?). Will there be a version for my phone?



Title: Re: Android Bitcoin RPC client
Post by: brwyatt on December 22, 2011, 06:31:32 AM
I think this project died, and I can't find any WORKING, CURRENT RPC front-ends on Android. Anyone have any ideas on either getting this project back up and updated and working with the current bitcoind? Or are there alternatives out there I'm  just not seeing?


Title: Re: Android Bitcoin RPC client
Post by: ThomasV on December 22, 2011, 07:00:46 AM
I think this project died, and I can't find any WORKING, CURRENT RPC front-ends on Android. Anyone have any ideas on either getting this project back up and updated and working with the current bitcoind? Or are there alternatives out there I'm  just not seeing?


nice project.
I am looking for an existing android client that could be adapted to Electrum.
I was thinking to use BitcoinSpinner, but perhaps this one would be better.


Title: Re: Android Bitcoin RPC client
Post by: burger on May 08, 2012, 09:23:57 PM
I can't get it working anymore =( the only think I did was upgrading the bitcoin client on windows. using bitcoin 0.6.2 now.