フェイスブックのプロフィール画像を含むダイアログボックスを読み込もうとしているカスタムダイアログボックスがあり、以下の名前は私のコードです
public void postToWall(String message) {
String fbUser="";
try {
JSONObject me = new JSONObject(facebook.request("me"));
String id=me.getString("id");
ImageView picture;
fbUser = me.getString("name");
TextView usr = (TextView)findViewById(R.id.textView1);
picture = (ImageView) findViewById(R.id.imageView4);
URL image_value= new URL("http://graph.facebook.com/" + fbUser + "/picture" );
Bitmap profPict=BitmapFactory.decodeStream(image_value.openConnection().getInputStream());
picture.setImageBitmap(profPict);
usr.setText(fbUser);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
fbフィードダイアログの代わりに、カスタムダイアログを作成しました。投稿中に、ダイアログボックスにユーザーの画像と名前を表示したいのですが、コードは問題ないようですが、どこが間違っているのかわかりません。どんな助けでも大歓迎です。