What is the best way to add "Tweet" button to a C++ application for Android

I want to add a "Tweet" button to a C++ application without use of heavy libraries and frameworks. The application is portable and runs on Android and Windows.

-------------Problems Reply------------

I am not sure if I understand your setup. If you have implemented a native part of an Android app you can still write some java UI code and call your c++ code from there. If you want to have a full portable solution though I would render simple button with help of OpenGL.

UPDATE Oh I see what you meant, so this is actually quite simple. For Android many people use Twitter4j which is not that "heavy". You can also implement API calls on your own, see the official docs. Besides, there are a couple of more possibilities on SO with links to some tutorials.

As for portability, it gets a bit trickier. I would stick with twitter API and implement HTTP calls directly. The quickest way to get it done in a portable way is to write a thin wrapper around the socket calls as someone here suggested.

You could also use Boost.Asio or cURL library, but I have not checked them personally. The latter is available for windows and has recently been ported to Android.

Hope that helps!

Category:android Views:1 Time:2012-01-31

Related post

  • Add tweet button on wordpress blog 2010-09-28

    I have been trying to put twitter's new tweet button on my wordpress blog. I have tried code provided on official twitter website, and couple of wordpress plugins to add tweet button on the blog. But on every try I am running into same issue. When I

  • How to add a button in top before the listview android 2010-09-01

    I have written a ListView with a text and image clubbed together in a row. I wanted to add a button on top of listview, then the entire content of listview should be seen. Button is named as "More", when someone clicks it i will be updating the listc

  • How can I add an "add contact" button like the Contacts application? 2010-11-06

    How can I add to my app that little "plus" button that the Contacts application has in the upper right hand corner of the window? I would like to be able to hit that button and bring up a screen to add a new entry to the table view. --------------Sol

  • how to Add a Button on the home screen in android? 2010-12-20

    I want to add a button on the home screen and want to code in the click event of that button. I have an application which has an activate button,As soon as this activate button is clicked i want that a Button gets created on the home screen and i wan

  • Add a button to an onDraw call in Android 2011-06-04

    I'm using the code below for drawing simple 2D graphics (which I found on DroidNova - very useful!), and I would like to add a button which I have defined in an XML file (string name and location). I can't see how to add the button to the screen (whi

  • How to add multiple buttons to a row dynamically in Android 2011-07-29

    Does anybody know how to add multiple buttons to a table row dynamically in Android? Cheers --------------Solutions------------- You can try this and see if it's what your are looking for. main.xml: <?xml version="1.0" encoding="utf-8"?> <Li

  • Add Custom Confirmation before uninstall my Application in Android 2011-12-26

    I am new in Android. I want to add one custom Confirmation before uninstall my Application in Android. How I can achieve this? Thanks in advance. --------------Solutions------------- This is handled by Android and thus you have no control over what h

  • VS add-in: Add context button on web applications 2009-06-16

    I'm messing around with Visual Studio (2008) add-ins. I want to be able to add a button to all web application context menus (that will setup IIS for the website based on a shared archive from the web deployment tool). I've got as far as being able t

  • How do I add radio button in View 2012-02-05

    I write a game in android How do I add radio button to select level in View (android.view.View) --------------Solutions------------- Read this: http://mobiforge.com/designing/story/understanding-user-interface-android-part-1-layouts And then this: ht

  • Is there a way to add a tweet button that doesn't link back to the referring page? 2010-10-21

    I am trying to add a button to a page to tweet a message, but I don't want it to link back to the referring page. For example: tweet adds a t.co link to the end of the tweet that points at the referring page. Does anyone know of a way to keep that fr

  • Is there anyway to add multiple Tweet buttons on the same page and have their own Tweet Counts 2011-04-29

    I was thinking of setting up some tweet buttons for people to tweet out various sections of a long article using #anchor tags eg a URL like this http://www.w3schools.com/html_links.htm#tips http://www.w3schools.com/html_links.htm#questions There woul

  • How do I add a hashtag to a custom tweet button? 2011-06-12

    I'm trying to create a custom tweet button with a popup, this part works. However, I am unable to get it to post hashtags in the text area. Tweet content url=http://www.mywebsite.com&text=mytweetcontent&via=mytwitterusername In the &text=

  • Add Tweet with Xcode 2011-12-22

    i want to tweet to Twitter from iphone application. i researced on internet and try samples. But API services can not support tweet. is there a source code of Tweet app. Do u know similar application link? Thks. --------------Solutions------------- T

  • How to track Tweet Button clicks? 2010-11-04

    I want to track tweet button clicks via Google Analytics, but tweet button is an iframe with content from another domain. Is there some tricks to add callbacks for tweet button click? --------------Solutions------------- <a style="float:left;posit

  • Can one style a custom Tweet button AND utilise the data attributes? 2010-12-22

    I am creating a custom Tweet button with my own styles however it seems when you opt for customising your own you cannot use the data attributes (data-text, data-url etc.). The utilisation of the data attributes only seem available when you use the T

  • How to add twitter button on my website? 2011-01-31

    how to add twitter button on my website? --------------Solutions------------- Please state more clear questions. What kind of button do you want?! Check out the official Twitter developer sites that might offer what you want: http://dev.twitter.com/

  • Is there a callback for Twitter's Tweet Button? 2011-02-09

    Is there a way to register a callback on Twitter's Tweet button? I'd like to be able to track which particular users on my site have tweeted a link. I can't add on onClick event because it's a cross-domain iFrame. Any other ideas? I've seen one way t

  • How to align Facebook and Tweet buttons? 2011-03-09

    The Facebook and Tweet buttons on our home page are vertically misaligned, and we're confused why. We can top align the two buttons if we use Firebug and remove the height for the Tweet button. However, the height is set dynamically, and inlined, fro

  • What is the source: attribute of a tweet sent from a tweet button using the Twitter Search API? 2011-04-11

    I'm trying to use Twitter search to find all mentions of a word that DIDN'T come from a "tweet this" button. I'm trying to build a stream of all brand mentions, but I don't want to sift through all of the retweets coming from our blog, which uses Twi

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.117 (s). 11 q(s)