// Init attachment dialogs
pictureChooserDialog = new PictureChooserDialog(new PictureHandler() {
public void handlePicture(String pictureUrl) {
if (pictureUrl != null && pictureUrl.length() > 0) {
OswService service = OswClient.getInstance().getService();
ActivityObject object = service.getActivityFactory()
.object(ActivityObject.PICTURE);
object.addLink(service.getAtomFactory().link(pictureUrl,
"alternate", null, null));
pictureAttachments.add(object);
}
}
});