How to programmatically access the Android Market

Many people tried in the past to access the Android Market from own web or native clients in order to mash up market information with own content.

This hasn’t been an easy task since now thus there’s no official API for that. Nevertheless some did it either by decompiling the market app, understood and reproduced the market API.

But now there ‘somehow’ an open and standard API lib for doing the same.

It’s very easy to use, just try it:

MarketSession session = new MarketSession();
session.login(“”);
AppsRequest appsRequest = AppsRequest.newBuilder()

.setQuery("A")
.setStartIndex(2).setEntriesCount(10)
.setWithExtendedInfo(true)
.build();
MarketSession.Callback callback = new MarketSession.Callback() {
@Override

public void onResult(ResponseContext context, Object response) {
System.out.println(response);
}
};
session.append(appsRequest, callback);
session.flush();

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>