Foursquare Stats Widget

6 views
Skip to first unread message

Nick Burton

unread,
Jul 26, 2010, 5:20:46 PM7/26/10
to mar...@gmail.com, nave...@gmail.com, foursqu...@googlegroups.com, bo...@bigpicturegroup.com.au, ch...@bigpicturegroup.com.au, dan...@jtribe.com.au

Hey guys,

I've written some Foursquare Stats widgets (with the help of Chris, Boyd and Daniel cc'd) which I'd like to incorporate into this project. I thought I should first get you to have a look and take any feedback you might have.

I've provided images/details  at http://thatsburto.com and made the code available at http://code.google.com/p/foursquarestats/. Any thoughts, please let me know..

*Note*: currently two of the stats are just parsing the Leader Board page (fortunately it's XHTML so I can use a SAXParser, but relies on their display name being of the form: First L. which is not always the case). I'm hoping this could be made into an API call instead?

Cheers,

Nick

--
Nick Burton | 0412 105 324 | thatsburto.com

Joe LaPenna

unread,
Aug 7, 2010, 12:59:18 AM8/7/10
to Nick Burton, mar...@gmail.com, nave...@gmail.com, foursqu...@googlegroups.com, bo...@bigpicturegroup.com.au, ch...@bigpicturegroup.com.au, dan...@jtribe.com.au
I think its cool. Work with markww on getting it integrated if they like it.

> --
> You received this message because you are subscribed to the Google Groups
> "foursquared-dev" group.
> To post to this group, send email to foursqu...@googlegroups.com.
> To unsubscribe from this group, send email to
> foursquared-d...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/foursquared-dev?hl=en.
>

--
http://joelapenna.com

Nick Burton

unread,
Aug 8, 2010, 9:39:00 PM8/8/10
to Joe LaPenna, mar...@gmail.com, nave...@gmail.com, foursqu...@googlegroups.com, bo...@bigpicturegroup.com.au, ch...@bigpicturegroup.com.au, dan...@jtribe.com.au
Thanks Joe.

And thanks to Logan for his help with the integration so far. 

Logan: as promised, I've taken a look at the onClick intents and uploaded source to the original repo: http://code.google.com/p/foursquarestats/source/browse/src/com/foursquare/stats/. Basically, one extra method within each of the UpdateService* subclasses and the method call inside UpdateService itself.

I've used TestActivity as a placeholder for the Intents from within the app which I thought you or Mark might know of the top of your head?

Cheers,

Nick

Logan Johnson

unread,
Aug 10, 2010, 7:58:40 AM8/10/10
to foursquared-dev
Thanks, Nick! I've pulled in your code and set the appropriate
Activities in the Intents.

As it stands, only clicking on the actual stat text will do anything.
I haven't found a good way to make the area of the icons (which are
part of the background) clickable. There's TouchDelegate, but I can't
find a way to get any of the actual Views on a widget. It might be
possible to specify some transparent views in the XML, but that'll
probably involve replacing the RelativeLayout with a FrameLayout. Any
other ideas that don't involve breaking up the background?


On Aug 8, 9:39 pm, Nick Burton <charlesnicholasbur...@gmail.com>
wrote:
> Thanks Joe.
>
> And thanks to Logan for his help with the integration so far.
>
> Logan: as promised, I've taken a look at the onClick intents and uploaded
> source to the original repo:http://code.google.com/p/foursquarestats/source/browse/src/com/foursq....
> Basically,
> one extra method within each of the UpdateService* subclasses and the method
> call inside UpdateService itself.
>
> I've used TestActivity as a placeholder for the Intents from within the app
> which I thought you or Mark might know of the top of your head?
>
> Cheers,
>
> Nick
>
> On 7 August 2010 14:59, Joe LaPenna <jlape...@gmail.com> wrote:
>
>
>
>
>
> > I think its cool. Work with markww on getting it integrated if they like
> > it.
>
> > On Mon, Jul 26, 2010 at 2:20 PM, Nick Burton
> > <charlesnicholasbur...@gmail.com> wrote:
> > > Hey guys,
>
> > > I've written some Foursquare Stats widgets (with the help of Chris, Boyd
> > and
> > > Daniel cc'd) which I'd like to incorporate into this project. I thought I
> > > should first get you to have a look and take any feedback you might have.
>
> > > I've provided images/details  athttp://thatsburto.comand made the code
> > > available athttp://code.google.com/p/foursquarestats/. Any thoughts,
> > please
> > > let me know..
>
> > > *Note*: currently two of the stats are just parsing the Leader Board page
> > > (fortunately it's XHTML so I can use a SAXParser, but relies on their
> > > display name being of the form: First L. which is not always the case).
> > I'm
> > > hoping this could be made into an API call instead?
>
> > > Cheers,
>
> > > Nick
>
> > > --
> > > Nick Burton | 0412 105 324 | thatsburto.com
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "foursquared-dev" group.
> > > To post to this group, send email to foursqu...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > foursquared-d...@googlegroups.com<foursquared-dev%2Bunsubscribe@ googlegroups.com>
> > .

Nick Burton

unread,
Aug 13, 2010, 3:53:38 AM8/13/10
to Logan Johnson, foursquared-dev
Hey Logan, I've fixed the onClick area. You can check the diffs at:


I just adjusted the style so that the TextView height was not wrapping content.

Cheers,

Nick


To unsubscribe from this group, send email to foursquared-d...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/foursquared-dev?hl=en.




--

Logan Johnson

unread,
Aug 13, 2010, 8:52:13 AM8/13/10
to Nick Burton, foursquared-dev
This is working great for me on the medium widget, but the tiny and small are still pretty hard to hit.  I'm testing on my Nexus One though, which might just not have the greatest touch screen.  I'll check it out on the emulator later today.  What are you testing on?

Also, I'm thinking the Foursquare logo on the medium widget should get an onClick that takes you to the app-- then I could get rid of the app icon on my home screen.  I'll look into that too, unless you beat me to it.

Logan Johnson

unread,
Aug 16, 2010, 8:39:04 AM8/16/10
to Nick Burton, foursquared-dev


The widget code is all in appwidget: 


Joe suggested (at my blog) chopping up the images and making proper Views of them in the layout.  I didn't want to ask you to do that because you've already put a lot of work into the UI, but he's probably right about that being the way to go.  That would also (I think) allow us to reuse the bigger icons in the smaller widgets, just scaled down, which might save some bytes in the apk.  I'd chop them myself, but right now my graphics suite consists of pixlr.com.

That said, I don't see any reason we couldn't go ahead and get a patch merged that just doesn't have any OnClick Intents-- we can always add those incrementally.  Up to you and Mark.


On Sun, Aug 15, 2010 at 8:15 PM, Nick Burton <charlesnic...@gmail.com> wrote:
That's strange.. I have the N1 as well.. working fine for me. Could I grab the link of your git repo and I'll test with the intents you put in? Definitely want the Foursquare widget to open the app too...

Cheers,

Nick

Nick Burton

unread,
Aug 23, 2010, 4:54:19 AM8/23/10
to foursquared-dev
Hey guys,

Am looking into the break-up of images this week.. will involve some 9-patches for the backgrounds which scale when necessary: (http://developer.android.com/guide/developing/tools/draw9patch.html)

Will get back to you asap.

Nick
Reply all
Reply to author
Forward
0 new messages