Bitcoin Forum

Bitcoin => Project Development => Topic started by: boombox on February 09, 2011, 11:09:48 AM



Title: Mt Gox Bitcoin Widget for Android released
Post by: boombox on February 09, 2011, 11:09:48 AM
I have developed a free and simple Android widget that shows the current bitcoin value in US dollars on the MT Gox bitcoin exchange.

Search on Android Market for "Mt Gox Bitcoin Widget" or visit/download from here:
https://market.android.com/details?id=st.brothas.mtgoxwidget

I'm happy to receive feedback, bug reports and Bitcoins: 13o3CTyDC1U3RrWogKxukVqWc7fXsuekmR


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: Cdecker on February 09, 2011, 12:10:54 PM
Great work :-)
Sadly it's not available for my HTC Wildfire (Android 2.2). Would love to port it, is it open source?


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: boombox on February 09, 2011, 12:18:36 PM
That's strange! Isn't it available if you search for it on Android Market in your phone?

It requires Android 1.5 and is accessible in all locations.


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: Cdecker on February 09, 2011, 12:24:47 PM
Nope, android.com even tells me that it isn't available for my phone :)


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: Mike Hearn on February 09, 2011, 12:36:31 PM
Works for me on a Nexus S.

Post your manifest here and I'll take a look at why it might not be showing up.


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: boombox on February 09, 2011, 01:18:00 PM
Strange! I'll post the manifest here tonight when I get home.

I can also post the .apk so you can install it manually.
Will release it as GPL later on together with .apks for those of you with problems installing it.

Mike: Will look at popping up a graph when tapping on the widget.


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: Drifter on February 09, 2011, 03:43:34 PM
Seems to cut half the widget off on my phone, but that might be launcherpros fault. I have the original Droid. I tried resizing but I'd need launcherpro paid version and I'm not doin that. For now I can see the price and most of the coin, so it works.

Thanks, I'll be keeping an eye on this :)


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: boombox on February 09, 2011, 05:28:31 PM
AndroidManifest.xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="st.brothas.mtgoxwidget"
      android:versionCode="1" android:versionName="0.8">

    <uses-permission android:name="android.permission.INTERNET" />

    <application android:icon="@drawable/bc_logo_60" android:label="@string/app_name">

        <receiver android:name=".MtGoxWidgetProvider">
            <meta-data android:name="android.appwidget.provider"
                    android:resource="@xml/appwidget_provider" />
            <intent-filter>
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
            </intent-filter>
        </receiver>

    </application>
   
    <uses-sdk android:minSdkVersion="3" />
</manifest>

Drifter: That's strange. I have declared the size of the widget as 72 x 72 dp, perhaps that could be defined in another way...
On your phone at the bottom where the widget ends (in the middle of the coin), does a new widget start there or is it just empty?
Do other widgets display normally?


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: Drifter on February 09, 2011, 06:33:44 PM
Well, the problem is only in landscape I found out, so no big worries. The phone was sitting on the charger while I installed it and I didn't think of changing views. If the coin is moved up a little in the widget it might even fully fit in landscape view too.


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: Garrett Burgwardt on February 09, 2011, 09:42:26 PM
Seems to cut half the widget off on my phone, but that might be launcherpros fault. I have the original Droid. I tried resizing but I'd need launcherpro paid version and I'm not doin that. For now I can see the price and most of the coin, so it works.

Thanks, I'll be keeping an eye on this :)

+1

Pretty much the same as me, Droid 1 and launcher pro cuts off the bottom of the widget in landscape. Other than that it's awesome, watched it tick up over parity today ;)


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: Mike Hearn on February 09, 2011, 10:33:11 PM
I think the issue may be that the Wildfire has a small screen. Try changing your uses-sdk line to

Code:
    <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"/>


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: boombox on February 10, 2011, 08:33:08 AM
Ok, I'll try that and see if it works on a Wildfire.


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: kseistrup on February 12, 2011, 07:07:14 AM
How often does it update the exchange rate?



Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: boombox on February 12, 2011, 08:58:16 AM
Currently every 30 minutes.


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: kseistrup on February 12, 2011, 09:53:40 AM
Currently every 30 minutes.
Enhancement request:  Please make the update frequency configurable.

Cheers,


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: boombox on February 12, 2011, 09:55:16 AM
Sure, I have that in mind as well as using the built in "Accounts & Sync" functionality in order to easily turn off updating if wanted.


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: kseistrup on February 12, 2011, 10:16:26 AM
Sure, I have that in mind as well as using the built in "Accounts & Sync" functionality in order to easily turn off updating if wanted.
Sounds great!  :)


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: kseistrup on February 12, 2011, 11:30:23 AM
If the widget can't get the current JSON at MtGox (e.g., because network has been shut down at screen blanking), it seems it just sets the three values (which I assume is last, low and high) to $0.000 and sets current time.  IMHO, the widget should keep the previous, valid, values and the previous time.

Cheers,


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: boombox on February 12, 2011, 12:50:24 PM
Quote
IMHO, the widget should keep the previous, valid, values and the previous time.
Already fixed and will be released in the next version.


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: nikonoel on February 16, 2011, 05:04:34 PM
Great idea, will test it asap. :)


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: Txyru on February 16, 2011, 07:14:43 PM
Love it, have it installed.

Could you make it so when I Tap it, it updates?



Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: boombox on February 16, 2011, 08:50:02 PM
Thanks, hope you (will) enjoy it!
The new version (released 15 min ago) shows a graph when the widget is tapped.
In future versions you might be able to manually update the widget by choosing it in a menu in the graph view.


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: Mike Hearn on February 17, 2011, 10:41:20 AM
Great! The graph doesn't show any data though. I guess it will fill out over the next day.


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: boombox on February 17, 2011, 11:14:48 AM
Great! The graph doesn't show any data though. I guess it will fill out over the next day.
Exactly, the graph doesn't download any data, it just uses the collected data by the widget updates that are made each 30 minutes.


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: CD-RW on February 21, 2011, 05:20:14 PM
Nice work, I now have it on my phone :D

Send some bitcoins <3


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: smgoller on March 05, 2011, 01:20:46 AM
I can install it via the market, but nothing shows up on the widget menu. Running Cyanogenmod 7 (so gingerbread) on a nexus one.


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: cw on March 19, 2011, 11:59:05 AM
Thank you! You could fetch a more complete history by using getHistory.php, instead of fetching live prices when available. That way, you will always have the full chart.


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: dust on March 19, 2011, 02:42:33 PM
Thank you! You could fetch a more complete history by using getHistory.php, instead of fetching live prices when available. That way, you will always have the full chart.
This widget has that functionality: http://bitcointalk.org/index.php?topic=3616.0 (http://bitcointalk.org/index.php?topic=3616.0)


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: comboy on March 19, 2011, 02:54:41 PM
Is this widget open source? What is the license? On gh ( https://github.com/gostaj/MtGoxWidget/ ) I see only some index.html. Thanks, great work.


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: dust on March 19, 2011, 02:58:21 PM
Is this widget open source? What is the license? On gh ( https://github.com/gostaj/MtGoxWidget/ ) I see only some index.html. Thanks, great work.

HoboHarvester's widget provides similar functionality and is open-source.  It appears to have been buried as it was released a bit later.
http://bitcointalk.org/index.php?topic=3616.0 (http://bitcointalk.org/index.php?topic=3616.0)
http://code.google.com/p/bitcoin-alert/ (http://code.google.com/p/bitcoin-alert/)


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: comboy on March 19, 2011, 03:12:45 PM
Is this widget open source? What is the license? On gh ( https://github.com/gostaj/MtGoxWidget/ ) I see only some index.html. Thanks, great work.
HoboHarvester's widget provides similar functionality and is open-source.  It appears to have been buried as it was released a bit later.
http://bitcointalk.org/index.php?topic=3616.0 (http://bitcointalk.org/index.php?topic=3616.0)
http://code.google.com/p/bitcoin-alert/ (http://code.google.com/p/bitcoin-alert/)

You gave this link right before my post, why repeating? It's another widget's thread and I'm interested in op's widget.


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: zeeloo on June 07, 2011, 09:24:11 AM
Wildfire cant find this app in the market.....any idea?
Milestone can!


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: MoonShadow on June 07, 2011, 11:53:52 AM
I have this widget, and for the most part it works great.  However, if the interval were configurable and the time at update was replaced with a time since update, that would improve things.  Also, when I click it, I want it to update immediately.  Could this be done?


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: zeeloo on June 07, 2011, 12:00:18 PM
can you share the sourcecode from the application....?


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: error on July 20, 2011, 12:39:52 AM
Getting lots of ANR on my Thunderbolt running BAMF-Sense3 (Gingerbread). Sent a report. Hope you're actually still alive. :)


Title: Re: Mt Gox Bitcoin Widget for Android released
Post by: deslok on July 21, 2011, 12:34:36 AM
It runs well on the HTC evo across the roms i've used (stock CM7 evo deck and fresh evo) although the ability to configure updates or manually initiate one would be greatly appreciated.