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

Pixel density of the downloaded pictures set to 160 #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

domingues
Copy link

Now the downloaded pictures are shown with the same size as those in the drawable folder.

Now the downloaded pictures are shown with the same size as those in the drawable folder.
@@ -107,6 +107,7 @@ private static Bitmap loadBitmapFromStream(final Context context, final String u
}
stream = new BufferedInputStream(new FileInputStream(filename), 8192);
final Bitmap bitmap = BitmapFactory.decodeStream(stream, null, o);
bitmap.setDensity(160);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really want this to be hard coded like this? Would it be better to set it to "DENSITY_NONE"?

@koush
Copy link
Owner

koush commented Nov 20, 2013

Yea this ought to be an option or something.

Truth be told, you should use Ion, I've stopped maintaining this library in favor of the new one.

https://github.com/koush/ion

@waynemystir
Copy link

Thanks Koush. I just tried to clone and import ion into eclipse. There are
many errors in the ion library. There appears to be a missing package
com.koushidutta.async.
On Nov 20, 2013 10:42 AM, "Koushik Dutta" [email protected] wrote:

Yea this ought to be an option or something.

Truth be told, you should use Ion, I've stopped maintaining this library
in favor of the new one.

https://github.com/koush/ion


Reply to this email directly or view it on GitHubhttps://github.com//pull/74#issuecomment-28899491
.

@koush
Copy link
Owner

koush commented Nov 20, 2013

Yep, you'll also need the AndroidAsync library.
https://github.com/koush/AndroidAsync

But the best way to do this is to just grab ion off maven. Take a look at the README on the ion project on github.

@wlaurance
Copy link

^^ Looks like you will need Gson as well.

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

Successfully merging this pull request may close these issues.

5 participants