Results 1 to 8 of 8
  1. #1
    RealSmile is offline Member
    Join Date
    Feb 2014
    Posts
    18
    Rep Power
    0

    Question Android - How do I detect if user has chosen to share to Facebook or twitter?

    I've created an application which shares to facebook, twitter etc. But I want to perform different functions dependent on who the user is sharing to, for instance if the user is sharing to Facebook do one thing but if the user shares to twitter do another.

    How do I do this?

    My code so far is below:

    Java Code:
    	private void ShareSub() {
    		Intent i = new Intent(Intent.ACTION_SEND);
    		i.setType("text/plain");
    		i.putExtra(
    				Intent.EXTRA_TEXT,
    				"You've just shared "
    						+ "Awesome");
    		startActivity(i);
    	}

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,993
    Rep Power
    9

    Default Re: Android - How do I detect if user has chosen to share to Facebook or twitter?

    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    RealSmile is offline Member
    Join Date
    Feb 2014
    Posts
    18
    Rep Power
    0

    Default Re: Android - How do I detect if user has chosen to share to Facebook or twitter?


    No answer was given here, so I went there instead. Are you able to solve the above?

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,104
    Rep Power
    6

    Default Re: Android - How do I detect if user has chosen to share to Facebook or twitter?

    You're not very patient apparently, you waited a whopping 20 minutes before you started to spread your question around. Try waiting a couple of hours and meanwhile keep researching yourself.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #5
    RealSmile is offline Member
    Join Date
    Feb 2014
    Posts
    18
    Rep Power
    0

    Default Re: Android - How do I detect if user has chosen to share to Facebook or twitter?

    The question was posted yesterday and I still don't have an answer. So yeah, I asked somewhere else that's not too surprising

  6. #6
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,993
    Rep Power
    9

    Default Re: Android - How do I detect if user has chosen to share to Facebook or twitter?

    Then don't be surprised if your questions are ignored in the future because people don't want to waste their time.

    Recommended reading: The problems with cross-posting
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  7. #7
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,104
    Rep Power
    6

    Default Re: Android - How do I detect if user has chosen to share to Facebook or twitter?

    Quote Originally Posted by KevinWorkman View Post
    Then don't be surprised if your questions are ignored in the future because people don't want to waste their time.

    Recommended reading: The problems with cross-posting
    Meanie. Go pick on someone else. Even though Stackoverflow clearly states that the question was asked only 2 hours ago, it was obviously asked yesterday because the guy says so.

    But luckily, answers have FINALLY started to pour in after a whole day of waiting on Stackoverflow, the site where questions get answers before you finished typing them.

    java - Android - How do I detect if user has chosen to share to Facebook or twitter using intent? - Stack Overflow
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  8. #8
    RealSmile is offline Member
    Join Date
    Feb 2014
    Posts
    18
    Rep Power
    0

    Default Re: Android - How do I detect if user has chosen to share to Facebook or twitter?

    Thank you :-) when I said a day ago, I meant i posted the question here a day ago and then I posted it on stackoverflow

Similar Threads

  1. Replies: 0
    Last Post: 05-05-2014, 05:53 PM
  2. Share a Post on Facebook Page using Scribe and Java
    By smhumayun in forum Reviews / Advertising
    Replies: 0
    Last Post: 09-24-2013, 07:11 PM
  3. Share Post on Facebook Wall or Timeline using Scribe and Java
    By smhumayun in forum Reviews / Advertising
    Replies: 0
    Last Post: 09-13-2013, 04:57 AM
  4. information retrieval from twitter or facebook
    By delican in forum New To Java
    Replies: 2
    Last Post: 08-16-2011, 01:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •