0

デバイス内の写真でチェックインできますか?

「picture」バンドルを使用してみましたが、URL を指定した場合にのみ機能し、バイト配列を使用すると機能しません。バイト配列を使用すると、画像が壁に表示されません。

作業: bundle.putString("picture", "http://www.somewhere.com/picture.jpg");

機能しない: bundle.putByteArray("picture", imageByteArray[]);

Bundle bundle = new Bundle();
bundle.putByteArray("picture", imageByteArray[]);  // load from device
bundle.putString("message", "The offee is just meh.");
bundle.putString("place", "my place id");
bundle.putString("coordinates", "my coordinates");
bundle.putString("access_token", mFacebook.getAccessToken());

mAsyncRunner.request("me/checkins", bundle, "POST", new CheckinListener(), null);
4

1 に答える 1

0

チェックインを実際に使用したことがないのでわかりませんが、ローカルURLを使用できませんでしたか?たとえば、バイト配列をSDCARDのJPGファイルに保存してから、file://URLを指定します。

于 2011-05-24T08:15:51.357 に答える