Tag Info

Hot answers tagged

15

On the legal stuff, Looking at your screen shots, your application looks good to me. The purpose of the guidance in StackApps is to encourage people to diversify their apps and make them really kick ass on their platform. I know the issue is confusing but we are trying to steer people away from "I'm just gonna clone the website" or "I'm going to write the ...


8

Version 5 (Finally) updated to API version 1.0 Now using the StackWrap4J library (thanks to @Bill the Lizard and @jjnguy for helping me with the teething problems) StackAuth support (drop-down list of StackExchange sites is pulled from StackAuth dynamically)


4

The following is a quickly thrown together method that will return the accepted answer percentage of the user with the given ID. Note: This is using some code that will be available in the next release. Notice how it dramatically reduces complexity, and the length of code. public static double getAcceptedAnswerPercentage(StackWrapper sw, int userId) ...


4

Search Examples Questions You can search for questions with StackWrap4J by instantiating a StackWrapper then calling the search method. Before calling search, you have to create a SearchQuery, which is a simple parameter object. StackWrapper so = new StackOverflow(); SearchQuery query = new SearchQuery(); query.setTags("swing"); ...


4

It is the best Stack Overflow Android app I've seen. Would it be possible to support notifications whenever someone comments on or answers one of your questions? Normally, on the website there is a little red circle with a number in it that shows you the number of unseen messages and answers. Nice work Felix.


3

OK, well, I've pretty much confirmed that A LOT has changed with version 2.0... the new release does not appear to be backwards compatible with version 1.1 at all. Kind of annoying if you ask me. For now I'm going to modify StackWrap4J myself and just copy and paste the modified source code into my app... if anyone is interested in partnering up to extend ...


3

This currently does not work with the v2.0 API.


3

StackWrap4J has been released fairly recently. It is completely up to date with the latest version of the API. (As of June 24th, V0.9) It has been tested and works on the Android platform. We are still developing it and will continue to support it as the API changes. If you are interested in switching to it, we will work with you to make the transition ...


3

Proxy Example Sometimes you need to use a Proxy to access the internet. At my company we need to. StackWrap4J provides the ability to specify a Proxy server to rout connections through. Below is a short code sample that configures the proxy, and then pulls every answer that I (2598) have given. Proxy prox = new Proxy(Proxy.Type.HTTP, new ...


3

This is a nice implementation, but it doesn't work on Java ME nor Android though. You seem to be experienced Java developer, because you are using the adapter pattern design and some introspection stuff. The main problem here is that Java ME and Android don't provide the java.beans package which is needed in order to use introspection as you are using it... ...


2

Version 3 Added a search function so you can easily find someone's ID. At the moment it will return the top 10 (or less) results. I figure that most people when searching should be able to narrow things down that far :)


2

Just thought I'd post an update as an answer so people can see it more easily. Version 2 The deployed application is now generic (see screenshot), but defaults to Jon Skeet. You can now stalk anyone you like on any of the sites that the API supports (just get their user id from their profile url). This obviously increases the load on the API but I'm using ...


2

I have released the beta snapshot version of my wrapper here. http://code.google.com/p/stackoverflow-java-sdk/. The announcement is posted on this website as well but I guess it will take some time to show up. :)


2

I started working on one over the weekend. I went ahead and stuck it on github if you want to look. I'm shooting for a version that will have most functionality stometime this week. http://github.com/carsonmcdonald/Stack-Apps-Java-Library


2

Version Updates: Version 1.0.1 [download] Added serialization to StackWrapper, all entities, and all queries Url encoded user entered String parameters (i.e. " " => "%20") Set followRedirect on each connection instance instead of JVM-wide. (This was causing problems with Google App Engine)


2

Timeout Example If you find that a response is taking too long for your app, you can set a timeout on the request. If a timeout occurs, a java.net.SocketTimeoutException is thrown. The default timeout is 0 which means infinite, so you don't have to worry about the exception if you never set a timeout. StackWrapper sw = new StackOverflow(); // Set the ...


2

The answer si here: http://stackoverflow.com/questions/2888647/json-url-from-stackexchange-api-returning-jibberish


2

Gmail and iGoogle Gadget for Stack Exchange [v1.0.16 released!, now with user mentions] Changelog v1.0.16 New types of notifications added. Now Gadget notifies you on comments that are directed to you. Comments are expandable, so click on comment title will expand height to accommodate all available text. New updates are highlighted now. 'Mark all as ...


2

Great job! Check out my graph. Witness how I used to actually have more rep than Jon Skeet... then he joined the site and put an end to all that. :)


2

Stack Exchange's implementation of OAuth 2.0 is modeled after Facebook's. While I haven't used Scribe, presumably their Facebook example is the relevant.


1

Bug The link to the user profile is wrong: http://http://api.stackoverflow.com/users/22656 (should be http://api.stackoverflow.com/users/22656 http://stackoverflow.com/users/22656). Screenshot:


1

Thanks for this, I was able to get an Android proof-of-concept working very quickly. I wanted to build the latest version from SVN because it has some changes that aren't in the most recent binary but there doesn't appear to be a build script in the repository. The structure seems straightforward, so I could write my own build.xml, but maybe you have ...


1

I got Jon Skeet beat :) I get the following: C:\Users\mark.henderson>java -jar c:\users\mark.henderson\AppData\Local\Temp\rep Compare.jar Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version n umber in .class file at java.lang.ClassLoader.defineClass1(Native Method) at ...


1

Looks great! Here it is running on Ubuntu with my lousy rep. compared to Jon Skeet:


1

Version 4 API updated to v0.9 (thanks nabeelmukhtar!) External links (e.g. to user profiles or to the questions themselves) will open in a new tab/window


1

I'm working on one which I'll post about when it's a little more ready to use. I'm focusing on creating immutable, reusable query objects with a nice EDSL-like querying syntax.



Only top voted, non community-wiki answers of a minimum length are eligible