アプリのユーザー プロファイル ページを作成しようとしています。Facebook への接続に成功したので、ユーザーの基本的なプロファイルを使用してい userProfile = Profile.getCurrentProfile();
ます。今、ユーザー プロファイルの画像のドローアブルを作成して、画像ビューに配置しようとしています。このために、画像を取得するための入力ストリームを作成しました(asyncTaskで実行)
Bitmap x;
url = new URL("https://graph.facebook.com/939344862743414/picture?height=200&width=200");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestProperty("User-agent","Mozilla/4.0");
connection.setConnectTimeout(100000);
connection.connect();
BufferedInputStream buf = new BufferedInputStream(connection.getInputStream());
x = BitmapFactory.decodeStream(buf);
ただし、何をしても、アプリは失敗し、connection.getInputStream() に到達するとクラッシュします。エラーは javax.net.ssl.SSLProtocolException: SSL handshake aborted です。Web でヘルプが見つかりませんでした。Facebook に接続してデータを取得できるため、認証の問題ではないようです。私が間違っていることは何ですか?