Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

have a bug #2

Closed
yiyinying opened this issue Dec 12, 2016 · 0 comments
Closed

have a bug #2

yiyinying opened this issue Dec 12, 2016 · 0 comments

Comments

@yiyinying
Copy link

android 4.2.2
@OverRide protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == Activity.RESULT_OK) {
Uri imageFileUri=data.getData();
Display currentDisplay=getWindowManager().getDefaultDisplay();
int dw=currentDisplay.getWidth();
int dh = currentDisplay.getHeight()/2-100;
try {
//Bitmap bmp = BitmapFactory.decodeStream(getContentResolver().openInputStream(imageFileUri));
Bitmap bmp = GlideBitmapFactory.decodeStream(
getContentResolver().openInputStream(imageFileUri),200,200);
chosenImageView.setImageBitmap(bmp);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
}
bmp is null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants