Android Post To Facebook Image Timeout
I have simple post-image to Facebook implementation: Bundle params = new Bundle(); params.putString('message', message); params.putByteArray('picture', data); String uploadRespon
Solution 1:
Doesn't look like you can timeout the request in the current code.
The Facebook object calls the openUrl method of the Util class. This method uses the HttpURLConnection class to make the request, and it has the setConnectTimeout method which you can use to timeout the request, but the facebook implementation does not let you pass a parameter for it, maybe since this method is new from java version 1.5 and they wanted the SDK to work for lower versions.
If you run your application on 1.5 or higher then you can simply modify the code you have for the facebook SDK to include timeout.
Post a Comment for "Android Post To Facebook Image Timeout"