[android-developers] Re: Handling large Bitmaps

2010-02-08 Thread Hekki
Sorry to state the obvious, but since you downloaded the file why don't you downsample only picture that are either : - Larger than 1024x768 in size - Bigger than 500 KB or a smart mix of the two ? Best regards On 8 fév, 15:48, Samuh wrote: > I have a bunch of image URLs. I have to download t

[android-developers] Re: Handling large Bitmaps

2010-02-08 Thread Samuh
> Sorry to state the obvious, but since you downloaded the file why > don't you downsample only picture that are either : > > - Larger than 1024x768 in size > - Bigger than 500 KB > > or a smart mix of the two ? I guess because I was creating a Bitmap from the stream before I was writing it to th

[android-developers] Re: Handling large Bitmaps

2010-02-08 Thread Streets Of Boston
If you use them for fit-in screen display only, just scale them to the screen-size. You don't need any bigger. 1. Figure out the actual width and height of the image (inJustDecodeBounds = true) 2. When actually loading the pic, downsample (inSampleSize > 1) so that the resulting image fits the scr

[android-developers] Re: Handling large Bitmaps

2010-02-08 Thread Samuh
I could try and commit the stream to the file system first and then decode the file to create a Bitmap. That way, I can keep a check on the size of the File assuming that File.length would yield relevant results. I guess it would be better to display the Bitmap a little late than throw unexpected O

[android-developers] Re: Handling large Bitmaps

2010-02-08 Thread Streets Of Boston
Store them full-sized (100%) on your SD-card. Then load the Bitmap from the copy on your SD-card. If you don't want these images to show up in the Gallery application, be sure to put them into a directory that starts with a period '.' . On Feb 8, 10:11 am, Samuh wrote: > > Sorry to state the obvi

[android-developers] Re: Handling large Bitmaps

2010-02-08 Thread Samuh
Sounds perfect! Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com F

Re: [android-developers] Re: Handling large Bitmaps

2010-02-08 Thread nada fatma
*What does Islam mean?*** *1. Islamic belief: Islam is an Arabic word, it means that you totally surrender to God, and worship Him only. Here also I must explain what does worship means? It doesn't mean that you only pray, its meaning is much much wider, to worship God is that you look at Him as y