Auth auth = authInterface.checkToken(context.getSettings().getProperty(FLICKR_USER_TOKEN));
RequestContext context = RequestContext.getRequestContext();
context.setAuth(auth);
Uploader up = new Uploader(key, shared);
UploadMetaData meta = new UploadMetaData();
meta.setAsync(false);
//meta.setContentType(Flickr.CONTENTTYPE_SCREENSHOT);
//meta.setDescription("my screenshot description");
meta.setHidden(false);
meta.setPublicFlag(true);
meta.setSafetyLevel(Flickr.SAFETYLEVEL_SAFE);
List<String> tags = new ArrayList<String>();
tags.add("leosketch");
meta.setTags(tags);
meta.setTitle(message);
u.p("starting to upload");
final String str = up.upload(new FileInputStream(file),meta);
u.p("done uploading: " + str);
Core.getShared().defer(new Runnable(){