I can successfully post a message in VKontakte (vk.com), but I can't figure out the way to post a message with an image in the attachment.
Method:
createWallPost(long owner_id, String text, Collection<String> attachments, String export, boolean only_friends, boolean from_group, boolean signed, String lat, String lon, String captcha_key, String captcha_sid);
So, if I use this method like this:
api.createWallPost(account.user_id, message, null, null, false, false, false, null, null, null, null);
It will post a message with some text successfully;
I have to use
Collection<String> attachments
parameter and somehow put a bitmap into collection. I can post a link of the picture, but I do not want a link, I want an embedded image. Any suggestions?