Added Commons AccountManager (Authentication Provider!)

Also updated version of java-mwapi to support cookie based auth
This commit is contained in:
YuviPanda 2012-10-15 00:41:14 +05:30
parent d59b1700c8
commit 802e6aa9ed
8 changed files with 227 additions and 38 deletions

View file

@ -11,6 +11,7 @@ import android.content.*;
import android.os.*;
import android.support.v4.app.NotificationCompat;
import android.util.Log;
import android.view.View;
import android.widget.RemoteViews;
import android.widget.Toast;
import android.net.*;
@ -83,10 +84,6 @@ public class UploadService extends IntentService {
length = this.getContentResolver().openAssetFileDescriptor(mediaUri, "r").getLength();
} catch (FileNotFoundException e) {
throw new RuntimeException(e);
} catch (IOException e) {
//I'm hoping there are no streams that can be opened and read only once.
e.printStackTrace();
throw new RuntimeException(e);
}
notificationView = new RemoteViews(getPackageName(), R.layout.layout_upload_progress);