[oauth] Java oAuth + Android

2009-01-11 Thread Tane Piper
Hi folks, I'm writing an Android app for Brightkite using the oAuth API and I've hit a bit a a stopping point. I've had a look at the example for the Desktop application and I can't work out what it's doing with overwriting the accessor. I've pasted the first part of the authorisation below, wh

[oauth] Re: Java oAuth + Android

2009-01-11 Thread Tane Piper
 The first app > connects to Fire Eagle via OAuth: >    http://code.google.com/p/jfireeagle/wiki/Android > > The second app connects to PortableContacts providers: > >    http://code.google.com/p/jpoco/wiki/Android > > The source code is in SVN on code.google.com > >

[oauth] Re: Java oAuth + Android

2009-01-13 Thread Tane Piper
h (URISyntaxException e) { // TODO Auto-generated catch block Log.e("Error", e.getMessage().toString()); } break; case EXIT_ID: fini

[oauth] Re: Java oAuth + Android

2009-01-14 Thread Tane Piper
ces/search.json";, OAuth.newList("q", myLocation.getLatitude() + "," + myLocation.getLongitude())); String result_message = result.readBodyAsString(); Any help will be much appreciated, as my app really depends on this! On Jan 14, 12:46 am, Ta

[oauth] Re: Java oAuth + Android

2009-01-15 Thread Tane Piper
Ok! Seems I've managed to fix it now. I actually had to look at the command line version example to get this to work (I was looking at the Desktop one). I may still be having an issue with it, but unfortunately lunch is over and I need to get back to paid work :( On Jan 14, 11:38 pm,

[oauth] Java OAuth Library Exceptions on success?

2009-01-20 Thread Tane Piper
Hey folks, I'm adding some new features to my app - but have had some weird results recently. In my new feature, I use OAuth to post a note to the Brightkite service. I'm getting the exact same result each time here. When I open the activity and try to post, I have to do it twice, every time.

[oauth] Re: Java OAuth Library Exceptions on success?

2009-01-20 Thread Tane Piper
ns.logging.Log", > "org.apache.commons.logging.impl.SimpleLog"); > > System.getProperties().put("org.apache.commons.logging.simplelog.defaultlog", > "trace"); > > } > > The trace output should help you debug this. > > Sean > >

[oauth] Posting files with Java OAuth?

2009-01-26 Thread Tane Piper
Hi there, I'm now at the stage that I want to add photo posting to my app, however I am having some issues. I've got the fully qualified path to the file, and I just tried this off hand: params = OAuth.newList("photo[body]", post_message, "photo[photo]", filename); However I didn't expect this

[oauth] Re: Posting files with Java OAuth?

2009-01-27 Thread Tane Piper
        } finally { >             input.close(); >         } >     } > >     private static class InputStreamMessage extends OAuthMessage >     { >         InputStreamMessage(String method, String url, InputStream > body) { >             super(method, url, null); >             thi

[oauth] Re: Posting files with Java OAuth?

2009-01-27 Thread Tane Piper
I've downloaded the latest version, but the build keep failing on test 4: --- Test set: net.oauth.client.OAuthClientTest --- Tests run: 4, Failur

[oauth] Re: Posting files with Java OAuth?

2009-01-28 Thread Tane Piper
That's great, compiled file - I'll check out your suggestion later. Thanks again for all your hard work John! On Jan 28, 6:55 am, John Kristian wrote: > The Maven build is repaired in -r871. > > On Jan 27, 11:04 am, Tane Piper wrote: > > > I've downloaded the

[oauth] Re: Posting files with Java OAuth?

2009-01-28 Thread Tane Piper
and can hopefully provide some feedback. On Jan 28, 6:55 am, John Kristian wrote: > The Maven build is repaired in -r871. > > On Jan 27, 11:04 am, Tane Piper wrote: > > > I've downloaded the latest version, but > > the build keep failing on test 4: > > --~--~-

[oauth] Re: Java OAuthClient.access

2009-02-02 Thread Tane Piper
Hi John, I think in the end, this would make development much easier. Although it does put the responsibility of error handling on the developer, I think this is better in the longrun as the magic way of doing it might not always be how the developer wants to handle it. For example, at the mome

[oauth] Twitter Broke OAuth's Account?

2009-05-06 Thread Tane Piper
Hey, Just in passing I was on the site and I wanted to make sure I was following the OAuth twitter when I saw the link on the Google Code site. But it looks like Twitter, rather than check that OAuth had an account, have taken the URL for themselves for their own service. Now going to http://tw

[oauth] Re: Twitter Broke OAuth's Account?

2009-05-06 Thread Tane Piper
Just checked in Tweetdeck and @Oauth still works, it's just the URL that is b0rked. Tane Piper http://digitalspaghetti.me.uk - Blog http://learningandroid.org - Learning Android email/gtalk: t...@digitalspaghetti.me.uk mobile: +447815 101802 twitter: http://twitter.com/tanepiper This ema