Skip to main content

Share Text To Facebook & Twitter ANDROID

Shaadi.com Indian Matrimonials

Before Create this app you must Have to create Application on FACEBOOK & TWITTER















Comments

  1. Can you provide the source code please ?

    ReplyDelete
    Replies
    1. source code is here : https://github.com/dhaval0122/Share_to_Facebook_twitter

      Delete
  2. Can we share an image with text also on twitter?
    Thanks in advance!!

    ReplyDelete
    Replies
    1. Yes you can using Twitpic jar file.

      for more detail see here: http://stackoverflow.com/a/10757209/1168654

      Delete
  3. This comment has been removed by the author.

    ReplyDelete
  4. He.I have added concumer key an consumer secret key in constants.java but still after pressing the login button to twitter in the app,its redirecting me to the same page.what else should I fill in the fields?

    ReplyDelete
    Replies
    1. show me your logs..... you have added permission on facebook app & twitter app??

      Delete
    2. Facebook sharing is working fine but the twitter sharing isnt working..I click the login button for twitter,it takes me to the webview to authorize my app,then comes back to the login button oage of my app but doesnt shares any thing..Below is my log...

      08-28 09:54:03.940: W/ResponseProcessCookies(478): Invalid cookie header: "set-cookie: guest_id=v1%3A137766384317537124; Domain=.twitter.com; Path=/; Expires=Fri, 28-Aug-2015 04:24:03 UTC". Unable to parse expires attribute: Fri, 28-Aug-2015 04:24:03 UTC
      08-28 09:54:03.959: I/ActivityManager(70): Starting: Intent { cmp=com.Background_fb_twitter/.Background_fb_twitterActivity } from pid 478
      08-28 09:54:03.959: W/ActivityManager(70): startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { cmp=com.Background_fb_twitter/.Background_fb_twitterActivity }
      08-28 09:54:04.049: I/com.Background_fb_twitter.PrepareRequestTokenActivity(478): OAuth - Access Token Retrieved---2
      08-28 09:54:04.580: I/ActivityManager(70): Displayed com.Background_fb_twitter/.Background_fb_twitterActivity: +579ms
      08-28 09:54:04.690: D/kiran-> token(478): 1685102257-JZF8P5QOJ2UckO44bh35Vj4OWJI81iyXyanarZ6
      08-28 09:54:04.710: D/kiran-> secret(478): t9YyBInt4MNK84cdeqVdaO4ANPjAuOYw5GRRJmc8Xag
      08-28 09:54:04.710: D/acc_token :(478): AccessToken{screenName='null', userId=0}
      08-28 09:54:04.999: D/error dj-->(478): 403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (http://support.twitter.com/forums/10711/entries/15364).

      08-28 09:57:42.101: D/SntpClient(70): request time failed: java.net.SocketException: Address family not supported by protocol

      Delete
  5. What permissions Am I suppose to add for the twitter app?

    ReplyDelete

Post a Comment

Popular posts from this blog

Stop Babysitting your AI Coding Agent Every Single Session

  Watched a video by DSquaredLabs on " No more re-explaining: Give your AI agent a memory graph " — here's what stuck with me and why I think this three-tool system is worth your attention If you work on a large codebase with AI coding tools, you already know the ritual. Open a new chat, paste your file structure, explain your stack, describe how the modules connect — and repeat the whole thing tomorrow. It is not a minor inconvenience. It is a compounding productivity tax that gets worse as your project grows. This article breaks down a three-tool system designed to fix exactly that. If you want the full walkthrough with a live demo on a real monorepo, the video at the bottom covers everything in depth — but the core concepts are worth understanding before you dive in. The Problem With How Most Developers Use AI Today Most AI-assisted coding workflows are missing three things that every good engineering team actually has: A map of the codebase A process for how w...

Android - Notifications - 3 (Applying a big view style to a notification)

Big picture style Bitmap icon1 = BitmapFactory.decodeResource(getResources(), R.drawable.dhaval1); NotificationCompat.Builder mBuilder = new NotificationCompat.Builder( this).setAutoCancel(true) .setContentTitle("DJ-Android notification") .setSmallIcon(R.drawable.ic_launcher).setLargeIcon(icon1) .setContentText("Hello World!"); NotificationCompat.BigPictureStyle bigPicStyle = new NotificationCompat.BigPictureStyle(); bigPicStyle.bigPicture(icon1); bigPicStyle.setBigContentTitle("Dhaval Sodha Parmar"); mBuilder.setStyle(bigPicStyle); // Creates an explicit intent for an Activity in your app Intent resultIntent = new Intent(this, testActivity.class); // The stack builder object will contain an artificial ba...