-
Notifications
You must be signed in to change notification settings - Fork 133
Uploading Photos
vineetmobile edited this page Sep 18, 2013
·
1 revision
SocialAuth Android lets you you get user profile after authentication. All the providers support this functionality. You can get image from gallery and create bitmap to post or get Image from drawables and create bitmap to post
###Implementation
private final class ResponseListener implements DialogListener
{
public void onComplete(Bundle values) {
adapter.uploadImageAsync(edit.getText().toString(), "icon.png", bitmap, 0,new UploadImageListener());
}
}
// To get status of image upload after authentication
private final class UploadImageListener implements SocialAuthListener<Integer> {
@Override
public void onExecute(Integer t) {
Log.d("Custom-UI", "Uploading Data");
Integer status = t;
Log.d("Custom-UI", String.valueOf(status));
Toast.makeText(CustomUI.this, "Image Uploaded", Toast.LENGTH_SHORT).show();
}
@Override
public void onError(SocialAuthError e) {
}
}
}}}