Re: [android-developers] Loading Images Using HttpURLConnection Concurrently

2013-04-11 Thread Alex Fu
Is there a way to test this?

On Monday, April 8, 2013 10:35:02 PM UTC-4, Indicator Veritatis wrote:

 It should not cause a 400 error, since the 400 error is caused by bad 
 syntax. Specifying HTTPS is not bad syntax, and it should handle the exact 
 same URL as HTTP (only the scheme being different).

 But do you know that the server you are using conforms well to the HTTP 
 1.1 spec?

 On Saturday, April 6, 2013 6:27:58 AM UTC-7, Alex Fu wrote:

 If possible, I would rather not. I'm using my own server to serve up data 
 so for the HTTPS bit, I used a self signed certificate. Not sure if that's 
 something that would cause the 400 error.


 On Sat, Apr 6, 2013 at 2:55 AM, Harri Smått har...@gmail.com wrote:

 Hi,

 Is it possible for you to share an example of an image URL you're using?

 --
 H

 On Apr 6, 2013, at 5:59 AM, Alex Fu alex@gmail.com wrote:

  I tested HTTPS and I'm getting a 400 Bad Request error when using 
 mobile data. On WiFi, everything goes through smoothly... wth.

 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the 
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/android-developers/zf4czg611ZU/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to 
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.





 -- 
 Alex Fu 



-- 
-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Loading Images Using HttpURLConnection Concurrently

2013-04-08 Thread Indicator Veritatis
It should not cause a 400 error, since the 400 error is caused by bad 
syntax. Specifying HTTPS is not bad syntax, and it should handle the exact 
same URL as HTTP (only the scheme being different).

But do you know that the server you are using conforms well to the HTTP 1.1 
spec?

On Saturday, April 6, 2013 6:27:58 AM UTC-7, Alex Fu wrote:

 If possible, I would rather not. I'm using my own server to serve up data 
 so for the HTTPS bit, I used a self signed certificate. Not sure if that's 
 something that would cause the 400 error.


 On Sat, Apr 6, 2013 at 2:55 AM, Harri Smått har...@gmail.comjavascript:
  wrote:

 Hi,

 Is it possible for you to share an example of an image URL you're using?

 --
 H

 On Apr 6, 2013, at 5:59 AM, Alex Fu alex@gmail.com javascript: 
 wrote:

  I tested HTTPS and I'm getting a 400 Bad Request error when using 
 mobile data. On WiFi, everything goes through smoothly... wth.

 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the 
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/android-developers/zf4czg611ZU/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to 
 android-developers+unsubscr...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.





 -- 
 Alex Fu 


-- 
-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Loading Images Using HttpURLConnection Concurrently

2013-04-06 Thread Harri Smått
Hi,

Is it possible for you to share an example of an image URL you're using?

--
H

On Apr 6, 2013, at 5:59 AM, Alex Fu alex.fu...@gmail.com wrote:

 I tested HTTPS and I'm getting a 400 Bad Request error when using mobile 
 data. On WiFi, everything goes through smoothly... wth.

-- 
-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Loading Images Using HttpURLConnection Concurrently

2013-04-06 Thread Alex Fu
If possible, I would rather not. I'm using my own server to serve up data
so for the HTTPS bit, I used a self signed certificate. Not sure if that's
something that would cause the 400 error.


On Sat, Apr 6, 2013 at 2:55 AM, Harri Smått har...@gmail.com wrote:

 Hi,

 Is it possible for you to share an example of an image URL you're using?

 --
 H

 On Apr 6, 2013, at 5:59 AM, Alex Fu alex.fu...@gmail.com wrote:

  I tested HTTPS and I'm getting a 400 Bad Request error when using mobile
 data. On WiFi, everything goes through smoothly... wth.

 --
 --
 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
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/zf4czg611ZU/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.





-- 
Alex Fu

-- 
-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Loading Images Using HttpURLConnection Concurrently

2013-04-05 Thread Alex Fu
Hello guys,

I'm currently facing an issue that I think should be fairly simple. I have 
a GridView which will get populated with images. If the image can't be 
found on the local disk, it will attempt to download the image from the 
network. Images download successfully, however the problem I am having is 
that the first image downloads just fine, however the second image that is 
downloaded is in very poor quality and is a fraction of the size it should 
be (5KB vs 100KB). This only happens when using mobile data connection. On 
WiFi, images download perfectly. Here is a link to the exact method that is 
retrieving these images... https://gist.github.com/alexfu/5319597. Any 
ideas or suggestions are greatly appreciated!

-- 
-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Loading Images Using HttpURLConnection Concurrently

2013-04-05 Thread Robert Greenwalt
Is it possible your carrier is silently downgrading images to save
bandwidth?  Perhaps try https?


On Fri, Apr 5, 2013 at 7:21 AM, Alex Fu alex.fu...@gmail.com wrote:

 Hello guys,

 I'm currently facing an issue that I think should be fairly simple. I have
 a GridView which will get populated with images. If the image can't be
 found on the local disk, it will attempt to download the image from the
 network. Images download successfully, however the problem I am having is
 that the first image downloads just fine, however the second image that is
 downloaded is in very poor quality and is a fraction of the size it should
 be (5KB vs 100KB). This only happens when using mobile data connection. On
 WiFi, images download perfectly. Here is a link to the exact method that is
 retrieving these images... https://gist.github.com/alexfu/5319597. Any
 ideas or suggestions are greatly appreciated!

 --
 --
 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
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Loading Images Using HttpURLConnection Concurrently

2013-04-05 Thread Alex Fu
Didn't think that would be a possibility. These images are less than 1 MB.
Whats the reasoning behind using HTTPS? Just out of curiosity.
On Apr 5, 2013 11:45 AM, Robert Greenwalt rgreenw...@google.com wrote:

 Is it possible your carrier is silently downgrading images to save
 bandwidth?  Perhaps try https?


 On Fri, Apr 5, 2013 at 7:21 AM, Alex Fu alex.fu...@gmail.com wrote:

 Hello guys,

 I'm currently facing an issue that I think should be fairly simple. I
 have a GridView which will get populated with images. If the image can't be
 found on the local disk, it will attempt to download the image from the
 network. Images download successfully, however the problem I am having is
 that the first image downloads just fine, however the second image that is
 downloaded is in very poor quality and is a fraction of the size it should
 be (5KB vs 100KB). This only happens when using mobile data connection. On
 WiFi, images download perfectly. Here is a link to the exact method that is
 retrieving these images... https://gist.github.com/alexfu/5319597. Any
 ideas or suggestions are greatly appreciated!

 --
 --
 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
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




  --
 --
 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
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/zf4czg611ZU/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Loading Images Using HttpURLConnection Concurrently

2013-04-05 Thread Robert Greenwalt
I'm not suggesting it as a real fix, just as a test.  Using https they
won't be able to snoop and rescale the images if that's what's really
causing it.




On Fri, Apr 5, 2013 at 9:11 AM, Alex Fu alex.fu...@gmail.com wrote:

 Didn't think that would be a possibility. These images are less than 1 MB.
 Whats the reasoning behind using HTTPS? Just out of curiosity.
 On Apr 5, 2013 11:45 AM, Robert Greenwalt rgreenw...@google.com wrote:

 Is it possible your carrier is silently downgrading images to save
 bandwidth?  Perhaps try https?


 On Fri, Apr 5, 2013 at 7:21 AM, Alex Fu alex.fu...@gmail.com wrote:

 Hello guys,

 I'm currently facing an issue that I think should be fairly simple. I
 have a GridView which will get populated with images. If the image can't be
 found on the local disk, it will attempt to download the image from the
 network. Images download successfully, however the problem I am having is
 that the first image downloads just fine, however the second image that is
 downloaded is in very poor quality and is a fraction of the size it should
 be (5KB vs 100KB). This only happens when using mobile data connection. On
 WiFi, images download perfectly. Here is a link to the exact method that is
 retrieving these images... https://gist.github.com/alexfu/5319597. Any
 ideas or suggestions are greatly appreciated!

 --
 --
 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
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




  --
 --
 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
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/zf4czg611ZU/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.



  --
 --
 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
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Loading Images Using HttpURLConnection Concurrently

2013-04-05 Thread Alex Fu
I will certainly try that out
On Apr 5, 2013 12:22 PM, Robert Greenwalt rgreenw...@google.com wrote:

 I'm not suggesting it as a real fix, just as a test.  Using https they
 won't be able to snoop and rescale the images if that's what's really
 causing it.




 On Fri, Apr 5, 2013 at 9:11 AM, Alex Fu alex.fu...@gmail.com wrote:

 Didn't think that would be a possibility. These images are less than 1
 MB. Whats the reasoning behind using HTTPS? Just out of curiosity.
 On Apr 5, 2013 11:45 AM, Robert Greenwalt rgreenw...@google.com
 wrote:

 Is it possible your carrier is silently downgrading images to save
 bandwidth?  Perhaps try https?


 On Fri, Apr 5, 2013 at 7:21 AM, Alex Fu alex.fu...@gmail.com wrote:

 Hello guys,

 I'm currently facing an issue that I think should be fairly simple. I
 have a GridView which will get populated with images. If the image can't be
 found on the local disk, it will attempt to download the image from the
 network. Images download successfully, however the problem I am having is
 that the first image downloads just fine, however the second image that is
 downloaded is in very poor quality and is a fraction of the size it should
 be (5KB vs 100KB). This only happens when using mobile data connection. On
 WiFi, images download perfectly. Here is a link to the exact method that is
 retrieving these images... https://gist.github.com/alexfu/5319597. Any
 ideas or suggestions are greatly appreciated!

 --
 --
 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
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




  --
 --
 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
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/zf4czg611ZU/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.



  --
 --
 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
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




  --
 --
 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
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/zf4czg611ZU/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send 

Re: [android-developers] Loading Images Using HttpURLConnection Concurrently

2013-04-05 Thread bob
 

Are the images JPEG or PNG?


If the carrier is messing with the quality of the images, I would expect 
them to be more likely to do it with JPEG since it is lossy anyway.


If using JPEG, maybe try PNG?


Thanks.



On Friday, April 5, 2013 11:25:13 AM UTC-5, Alex Fu wrote:

 I will certainly try that out
 On Apr 5, 2013 12:22 PM, Robert Greenwalt 
 rgree...@google.comjavascript: 
 wrote:

 I'm not suggesting it as a real fix, just as a test.  Using https they 
 won't be able to snoop and rescale the images if that's what's really 
 causing it.




 On Fri, Apr 5, 2013 at 9:11 AM, Alex Fu alex@gmail.com javascript:
  wrote:

 Didn't think that would be a possibility. These images are less than 1 
 MB. Whats the reasoning behind using HTTPS? Just out of curiosity.
 On Apr 5, 2013 11:45 AM, Robert Greenwalt 
 rgree...@google.comjavascript: 
 wrote:

 Is it possible your carrier is silently downgrading images to save 
 bandwidth?  Perhaps try https?


 On Fri, Apr 5, 2013 at 7:21 AM, Alex Fu alex@gmail.comjavascript:
  wrote:

 Hello guys,

 I'm currently facing an issue that I think should be fairly simple. I 
 have a GridView which will get populated with images. If the image can't 
 be 
 found on the local disk, it will attempt to download the image from the 
 network. Images download successfully, however the problem I am having is 
 that the first image downloads just fine, however the second image that 
 is 
 downloaded is in very poor quality and is a fraction of the size it 
 should 
 be (5KB vs 100KB). This only happens when using mobile data connection. 
 On 
 WiFi, images download perfectly. Here is a link to the exact method that 
 is 
 retrieving these images... https://gist.github.com/alexfu/5319597. 
 Any ideas or suggestions are greatly appreciated!
  
 -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 --- 
 You received this message because you are subscribed to the Google 
 Groups Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to android-developers+unsubscr...@googlegroups.comjavascript:
 .
 For more options, visit https://groups.google.com/groups/opt_out.
  
  


  -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 --- 
 You received this message because you are subscribed to a topic in the 
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/android-developers/zf4czg611ZU/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to 
 android-developers+unsubscr...@googlegroups.com javascript:.

 For more options, visit https://groups.google.com/groups/opt_out.
  
  

  -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 --- 
 You received this message because you are subscribed to the Google 
 Groups Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to android-developers+unsubscr...@googlegroups.comjavascript:
 .
 For more options, visit https://groups.google.com/groups/opt_out.
  
  


  -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 --- 
 You received this message because you are subscribed to a topic in the 
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/android-developers/zf4czg611ZU/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to 
 android-developers+unsubscr...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  



-- 
-- 
You received this 

Re: [android-developers] Loading Images Using HttpURLConnection Concurrently

2013-04-05 Thread Alex Fu
I tested HTTPS and I'm getting a 400 Bad Request error when using mobile
data. On WiFi, everything goes through smoothly... wth.


On Fri, Apr 5, 2013 at 4:08 PM, bob b...@coolfone.comze.com wrote:

 Are the images JPEG or PNG?


 If the carrier is messing with the quality of the images, I would expect
 them to be more likely to do it with JPEG since it is lossy anyway.


 If using JPEG, maybe try PNG?


 Thanks.



 On Friday, April 5, 2013 11:25:13 AM UTC-5, Alex Fu wrote:

 I will certainly try that out
 On Apr 5, 2013 12:22 PM, Robert Greenwalt rgree...@google.com wrote:

 I'm not suggesting it as a real fix, just as a test.  Using https they
 won't be able to snoop and rescale the images if that's what's really
 causing it.




 On Fri, Apr 5, 2013 at 9:11 AM, Alex Fu alex@gmail.com wrote:

 Didn't think that would be a possibility. These images are less than 1
 MB. Whats the reasoning behind using HTTPS? Just out of curiosity.
 On Apr 5, 2013 11:45 AM, Robert Greenwalt rgree...@google.com
 wrote:

 Is it possible your carrier is silently downgrading images to save
 bandwidth?  Perhaps try https?


 On Fri, Apr 5, 2013 at 7:21 AM, Alex Fu alex@gmail.com wrote:

 Hello guys,

 I'm currently facing an issue that I think should be fairly simple. I
 have a GridView which will get populated with images. If the image can't 
 be
 found on the local disk, it will attempt to download the image from the
 network. Images download successfully, however the problem I am having is
 that the first image downloads just fine, however the second image that 
 is
 downloaded is in very poor quality and is a fraction of the size it 
 should
 be (5KB vs 100KB). This only happens when using mobile data connection. 
 On
 WiFi, images download perfectly. Here is a link to the exact method that 
 is
 retrieving these images... 
 https://gist.github.**com/alexfu/5319597https://gist.github.com/alexfu/5319597.
 Any ideas or suggestions are greatly appreciated!

 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@**googlegroups.com

 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To unsubscribe from this group and stop receiving emails from it,
 send an email to android-developers+**unsubscr...@googlegroups.com.
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .




  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@**googlegroups.com

 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit https://groups.google.com/d/**
 topic/android-developers/**zf4czg611ZU/unsubscribe?hl=enhttps://groups.google.com/d/topic/android-developers/zf4czg611ZU/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+**unsubscr...@googlegroups.com.

 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .



  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@**googlegroups.com

 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to android-developers+**unsubscr...@googlegroups.com.
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .




  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@**googlegroups.com

 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.com
 For more options, visit this group at