Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>you can use this following link </p> <p><a href="https://github.com/pilhuhn/ZwitscherA/blob/master/src/de/bsd/zwitscher/TwitterHelper.java#L860">this</a></p> <p>and please so this below method in that</p> <pre><code> public String postPicture(String fileName) { SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); String provider = preferences.getString("pictureService","yfrog"); try { File file = new File(fileName); MediaProvider mProvider ; if (provider.equals("yfrog")) mProvider = MediaProvider.YFROG; else if (provider.equals("twitpic")) mProvider = MediaProvider.TWITPIC; else throw new IllegalArgumentException("Picture provider " + provider + " unknown"); String accessTokenToken = account.getAccessTokenKey(); String accessTokenSecret = account.getAccessTokenSecret(); Properties props = new Properties(); props.put(PropertyConfiguration.MEDIA_PROVIDER,mProvider); props.put(PropertyConfiguration.OAUTH_ACCESS_TOKEN,accessTokenToken); props.put(PropertyConfiguration.OAUTH_ACCESS_TOKEN_SECRET,accessTokenSecret); props.put(PropertyConfiguration.OAUTH_CONSUMER_KEY,TwitterConsumerToken.consumerKey); props.put(PropertyConfiguration.OAUTH_CONSUMER_SECRET,TwitterConsumerToken.consumerSecret); Configuration conf = new PropertyConfiguration(props); ImageUploaderFactory factory = new ImageUploaderFactory(conf); ImageUpload upload = factory.getInstance(mProvider); String url = upload.upload(file); return url; } catch (Exception e) { e.printStackTrace(); // TODO: Customise this generated block } return null; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload