1. Post #1
    Gold Member
    PvtCupcakes's Avatar
    May 2008
    10,900 Posts
    So since I'm a lazy bastard about checking for sales on Steam I made an Android App to do it for me.

    It's just something I whipped up in a couple of hours.


    It currently force closes if you're not connected to the Internet because testing is for scrubs. But I'll fix that later.
    I could eventually add crap like Weekend Deals and stuff. But it's a pain in the ass because I'm using screen scraping because Steam doesn't have an API at all.

    QR Code:


    Or just search for my username, jcnix, on the Market to find the app.
    Everything is open source and available here:
    https://github.com/jcnix/steamdeals

    Have fun and stuff.
    Reply With Quote Edit / Delete Reply United States Show Events Winner Winner x 2Programming King Programming King x 1Disagree Disagree x 1 (list)

  2. Post #2
    Armyis1337's Avatar
    October 2009
    2,726 Posts
    On behalf of the Android community, I thank you.

    PS. Only 3 more months 'til I get my Android device! :woop:
    Reply With Quote Edit / Delete Reply Canada Show Events Winner Winner x 1Agree Agree x 1 (list)

  3. Post #3
    FalcoLombardi's Avatar
    December 2009
    8,369 Posts
    Too bad I don't have a phone
    Reply With Quote Edit / Delete Reply United States Show Events Funny Funny x 6Agree Agree x 5Dumb Dumb x 1 (list)

  4. Post #4
    HQRSE FUCKER
    ief014's Avatar
    September 2009
    3,069 Posts
    I usually find myself looking for sales on steam when I'm working... this could be useful. It has my download

  5. Post #5
    Gold Member
    nicatronTg's Avatar
    July 2009
    4,704 Posts
    Seems like this should be a widget *hint*.
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 9 (list)

  6. Post #6
    Gold Member
    PvtCupcakes's Avatar
    May 2008
    10,900 Posts
    Seems like this should be a widget *hint*.
    That crossed my mind, but I don't know how to do that yet.
    That's one of those things I'll have to learn.

  7. Post #7
    Gold Member
    Pridit's Avatar
    June 2008
    4,183 Posts
    Does it give us a notification when a new sale starts?

  8. Post #8
    Gold Member
    PvtCupcakes's Avatar
    May 2008
    10,900 Posts
    Just updated it to 1.0.1 tonight. It won't crash if there is no connection and it will show some text telling you to get connected to the Internet.

    I'll add a Refresh button tomorrow because if you run the app without being connected you have to restart it to get the text to update.

  9. Post #9
    Gold Member
    NPerez's Avatar
    May 2005
    447 Posts
    Made it into a widget
    http://www.mediafire.com/?wv46542ffu4cfe1

    But it needs a UI design. right now it's just text on the desktop & looks like crap



    New to android development & I've never made a widget before, so don't be surprised if I screwed anything up.. working here, though

    edit: By the way, pre-compiled version is in the bin folder (SteamDeals-debug.apk) & I'm not putting it on the market, but anyone else can do whatever they want with it (license permitting)
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Artistic Artistic x 1 (list)

  10. Post #10
    Gold Member
    PvtCupcakes's Avatar
    May 2008
    10,900 Posts
    Made it into a widget
    Awesome!

    edit: By the way, pre-compiled version is in the bin folder (SteamDeals-debug.apk) & I'm not putting it on the market, but anyone else can do whatever they want with it (license permitting)
    The license I used was GPLv3, so anyone can do whatever they want as long as they provide the source including the changes they made.

    I'll merge your changes into my app and add a simple GUI.
    Thanks. :)

  11. Post #11
    Gold Member
    Robber's Avatar
    January 2006
    6,201 Posts
    Are you going to make it show a notification whenever a new deal starts? It should be pretty easy using the AlarmManager class since every deal starts at the same time (I think).
    Reply With Quote Edit / Delete Reply Windows 7 Austria Show Events Programming King Programming King x 1 (list)

  12. Post #12
    Gold Member
    Strontboer's Avatar
    March 2008
    6,040 Posts
    Someone make a GUI for it.

  13. Post #13
    Gold Member
    jaybuz's Avatar
    May 2006
    5,516 Posts

  14. Post #14
    Gold Member
    florian's Avatar
    January 2005
    292 Posts
    Use a larger Steam icon (64x64 maybe?) and use two lines of text.

  15. Post #15
    Gold Member
    jaybuz's Avatar
    May 2006
    5,516 Posts
    Use a larger Steam icon (64x64 maybe?) and use two lines of text.
    Wouldn't it be better just to marque the text.

  16. Post #16
    Gold Member
    NPerez's Avatar
    May 2005
    447 Posts
    Wouldn't it be better just to marque the text.
    First of all, nice design. It's basically what I had in mind - professional looking Steam logo on a dark, rounded body.

    As for the size, I think it could go bigger (mainly wider). It's going to use up a certain amount of desktop tiles anyway, and I'd imagine most people would give it the full width of their desktop (vertical space is more limited, but even one vertical tile still leaves room for a bigger logo, I think).

    If Pvt wants to do the view coding, I'll leave it alone (I've got a lot of other projects that I'm behind on anyway), but I love where this is going

  17. Post #17
    Gold Member
    PvtCupcakes's Avatar
    May 2008
    10,900 Posts
    I added NPerez's widget and just gave it a black background.

    I also added a Refresh button to the main app, but I'm trying to add one to the widget as well but the Android API is retarded as fuck and I don't know how to hook up it's onClick().

    The refresh button is important because you can't refresh the widget unless you remove it and re add it. I don't have 3g on my phone and I keep wifi-off most of the time, so having a widget that tells me I'm not connected to the internet with no option to refresh it is kind of useless to me.

    Maybe I should screw around with the Update Interval and set it to like 5 minutes.

  18. Post #18
    Gold Member
    NPerez's Avatar
    May 2005
    447 Posts
    I added NPerez's widget and just gave it a black background.

    I also added a Refresh button to the main app, but I'm trying to add one to the widget as well but the Android API is retarded as fuck and I don't know how to hook up it's onClick().

    The refresh button is important because you can't refresh the widget unless you remove it and re add it. I don't have 3g on my phone and I keep wifi-off most of the time, so having a widget that tells me I'm not connected to the internet with no option to refresh it is kind of useless to me.

    Maybe I should screw around with the Update Interval and set it to like 5 minutes.
    I'm not 100% certain on this, but I believe I read that a widget update will wake the phone from sleep mode.. if this is the case, then a 5-minute update interval would be a disastrous battery-killer, so I would not recommend it. I'll see if I can find out how to refresh the widget. I know the API is much more limited with widgets, so it's probably a bit tricky.

  19. Post #19
    Gold Member
    Catdaemon's Avatar
    February 2005
    2,821 Posts
    I'm not 100% certain on this, but I believe I read that a widget update will wake the phone from sleep mode.. if this is the case, then a 5-minute update interval would be a disastrous battery-killer, so I would not recommend it. I'll see if I can find out how to refresh the widget. I know the API is much more limited with widgets, so it's probably a bit tricky.
    I don't think widgets can update while the phone is asleep. Or at least none of the ones I use do. 5 minutes is ridiculous though, try 6-12 hours.

  20. Post #20
    Gold Member
    NPerez's Avatar
    May 2005
    447 Posts
    I don't think widgets can update while the phone is asleep. Or at least none of the ones I use do. 5 minutes is ridiculous though, try 6-12 hours.
    I've never experienced my phone waking up to perform a widget update either, but this is from the AppWidget docs:
    Note: If the device is asleep when it is time for an update (as defined by updatePeriodMillis), then the device will wake up in order to perform the update. If you don't update more than once per hour, this probably won't cause significant problems for the battery life. If, however, you need to update more frequently and/or you do not need to update while the device is asleep, then you can instead perform updates based on an alarm that will not wake the device. To do so, set an alarm with an Intent that your AppWidgetProvider receives, using the AlarmManager. Set the alarm type to either ELAPSED_REALTIME or RTC, which will only deliver the alarm when the device is awake. Then set updatePeriodMillis to zero ("0").
    My guess is that most widget developers just don't use updatePeriodMillis - it seems to be a poor choice in most cases compared to the flexibility of alarms

  21. Post #21
    Gold Member
    jaybuz's Avatar
    May 2006
    5,516 Posts
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Winner Winner x 4 (list)

  22. Post #22
    Gold Member
    NPerez's Avatar
    May 2005
    447 Posts
    I think that looks awesome.

    I found this today: http://developer.android.com/guide/p...et_design.html

    It's incredibly useful for both designers & UI coders, and will give you a better idea of how much space you have to work with (but I think the current size is good).

    Work is crazy right now, but if nobody else has implemented a UI by the time I have some free time, I'll give it a shot
    Reply With Quote Edit / Delete Reply Linux United States Show Events Useful Useful x 1 (list)

  23. Post #23
    Gold Member
    jaybuz's Avatar
    May 2006
    5,516 Posts
    Would it have to take up this much space though?


  24. Post #24
    Gold Member
    NPerez's Avatar
    May 2005
    447 Posts
    Would it have to take up this much space though?

    Yes. It's tile-based, so that amount of space at minimum would be reserved for it (at least vertically. horizontally, it can go as low as 1 tile. 1x1 is about the size of a shortcut icon) .. there's nothing wrong with making the actual visible layout smaller, though

  25. Post #25
    Gold Member
    jaybuz's Avatar
    May 2006
    5,516 Posts
    I adjusted the size a bit to make it fit with the widget BG images.

    Looks pretty good now.

  26. Post #26
    Gold Member
    ShaRose's Avatar
    April 2007
    1,240 Posts
    At least about the update time: If he's parsing the page, it includes the time the next game will be out.

    Edited:

    Just look for this.
    Code:
    InitDailyDealTimer( $('dailydeal_timer'), 1305997380 );

  27. Post #27
    Gold Member
    jaybuz's Avatar
    May 2006
    5,516 Posts
    Wouldn't it always be at the same time anyway. So just do [timeOfDay] + 1 day.

    And if he's not using it, he should use the news rss feed and then just search for Daily Deal.

    http://store.steampowered.com/feeds/news.xml

  28. Post #28
    Gold Member
    ShaRose's Avatar
    April 2007
    1,240 Posts
    Wouldn't it always be at the same time anyway. So just do [timeOfDay] + 1 day.

    And if he's not using it, he should use the news rss feed and then just search for Daily Deal.

    http://store.steampowered.com/feeds/news.xml
    No, it's the time the deal ends. Ever notice how over the daily deal on the steam website it shows a countdown?

  29. Post #29
    Gold Member
    PvtCupcakes's Avatar
    May 2008
    10,900 Posts
    No, it's the time the deal ends. Ever notice how over the daily deal on the steam website it shows a countdown?
    Its still always at the same time everyday. It's 10:00 am Pacific (or GMT-7). I could do the calculation in GMT time so I wouldn't have to do timezones and crap.