I hereby claim:
- I am eduardb on github.
- I am eduardcb (https://keybase.io/eduardcb) on keybase.
- I have a public key ASDa-r3vz_hG8xFfpAHG1AvluchNlQDjmg8YfBcdOZwKWQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
package com.deveddy.contextcompat; | |
import android.annotation.SuppressLint; | |
import android.app.ActivityManager; | |
import android.app.AlarmManager; | |
import android.app.DownloadManager; | |
import android.app.KeyguardManager; | |
import android.app.NotificationManager; | |
import android.app.SearchManager; | |
import android.app.UiModeManager; |
public class CustomMultiPartEntity implements HttpEntity | |
{ | |
private final ProgressListener progressListener; | |
private HttpEntity mHttpEntity; | |
public CustomMultiPartEntity(ProgressListener progressListener, HttpEntity httpEntity) | |
{ | |
this.progressListener = progressListener; | |
mHttpEntity = httpEntity; |
public class CountingFileRequestBody extends RequestBody { | |
private static final int SEGMENT_SIZE = 2048; // okio.Segment.SIZE | |
private final File file; | |
private final ProgressListener listener; | |
private final String contentType; | |
public CountingFileRequestBody(File file, String contentType, ProgressListener listener) { | |
this.file = file; |