Initial commit

This commit is contained in:
YuviPanda 2012-10-06 11:50:20 +05:30
commit 6ae5282f8a
32 changed files with 516 additions and 0 deletions

View file

@ -0,0 +1,23 @@
package org.wikimedia.commons;
import android.app.Application;
import org.mediawiki.api.*;
import org.apache.http.impl.client.DefaultHttpClient;
public class CommonsApplication extends Application {
private MWApi api;
@Override
public void onCreate() {
// TODO Auto-generated method stub
super.onCreate();
DefaultHttpClient client = new DefaultHttpClient();
api = new MWApi("http://test.wikipedia.org/w/api.php", client);
}
public MWApi getApi() {
return api;
}
}