I am allowing user to post a message on their [Friend & User] Wall along with single static image, and for that image i am using Web Image URL
But now i wish to allow user to choose any single image from multiple images, like 10 images stored in a particular folder in SDCard, and then post to Wall.
So here is my question, how to do that?
My existing code to post static image on Wall, read below:
@Override
public void onClick(DialogInterface dialog, int which) {
Bundle params = new Bundle();
params.putString("to", String.valueOf(friendId));
params.putString("caption", getString(R.string.app_name));
params.putString("description", getString(R.string.app_desc));
params.putString("link", "http://www.google.com");
params.putString("picture",FacebookUtility.HACK_ICON_URL);
params.putString("name",getString(R.string.app_action));
FacebookUtility.facebook.dialog(FriendsList.this,
"feed", params, (DialogListener) new PostDialogListener());
}
}).setNegativeButton(R.string.no, null).show();
} catch (JSONException e) {
showToast("Error: " + e.getMessage());
}
FacebookUtility.java:-
public static final String HACK_ICON_URL = "http://2.bp.blogspot.com/-WuasmTMjMA4/TY0SS4TzIMI/AAAAAAAAFB4/6alyfOzWsqM/s320/flowers-wallpapers-love-blooms-roses-bunch-of-flowers.jpg";
Check existing screen of my app,
As you can see in above screen i am showing only single static image as i have written above, but now i wanna allow user to choose an image from multiple images using SD Card, my SDCard path like: /sdcard/FbImages/
now i want to know how to place button in above screen [because i am not using any custom xml for this, that's native feature in FacebookSDK]
So here is my question how to open sdcard folder and how to choose single image to post from multiple images