Tag Archives: Twitter

Sharing content in Android using ACTION_SEND Intent

Very often, you might want to enable the ability for users to share some content (either text, link or an image) from your Android app. Users can share the content using email, twitter, Facebook, sms or through numerous other ways.

The users might already have installed some custom apps for each one of the above service. So instead of coding all these again, it would be really nice (for both your users as well as for you as a developer) if you can invoke any one of these apps, where users want to share content from your app.

Sharing text

Android provides a built-in Intent called ACTION_SEND for this purpose. Using it in your app is very easy. All you have to do is to use the following couple of lines.

In my phone, it invokes the following dialog box listing the apps that have registered to get notification for this intent.

sharing-content-android

Sharing binary objects (Images, videos etc.)

In addition to supporting text, this intent also supports sharing images or any binary content. All you have to do is to set the appropriate mime type and then pass the binary data by calling the putExtra method.

Registering for the Intent

If you want your app to be listed when this Intent is called, then you have to add an intent filter in your manifest.xml file

android:mimeType specifies the mime type which you are interested in listening.

Happy sharing 😉

Posted in Android/Java | Tagged , , | 100 Comments

Display Twitter profile image instead of Gravatar in WordPress comments

In the recent release of RoloPress I implemented Twitter avatar, which allows you to show the user’s Twitter profile image instead of Gravatar. I adapted it into a separate Plugin called Twitter Avatar Reloaded so that it can be used in normal WordPress installations too.

Features

When the Plugin is installed it automatically adds a new field to the comment form to get the user’s Twitter username. You don’t need to edit the theme file at all. Isn’t that cool enough 😉

Screenshot

twitteravatarwordpressplugin[1]

Download

You can download the Plugin from the Plugin’s home page.

Feedback

As usual try out the Plugin and do let me know if you have any feedback, queries or comments.

PS: BTW RoloPress 1.2 has been released with lot of new features. Don’t forget to check it out. 🙂

Posted in Plugin Releases | Tagged , , , | 3 Comments

When PR mange the company’s Twitter account

This is what happens when a company’s Twitter account is managed by PR.

dna

Update: Okay it seems that this Twitter account is not run by PR but by Journalists.

Posted in Random/Personal | Tagged , , | 5 Comments

oAuth support in Twitter and WordPress 2.8

After waiting for more than two years, Twitter has finally enabled support for oAuth to all developers using its API. It’s a great move and it’s a win-win situation both for the developers and also for Twitter users. Going forward, the Twitter third-party developers need not ask Twitter users for their username and password.

For the uninitiated, oAuth is an open protocol for online authentication. It enables a user who stores information such as a password on a particular Web site to then authorize yet another site to access that data, all the while not sharing the user’s identity with that site.

To give you a real-world non-technical example, it is like a car valet key, given to a parking assistant. Valet key unlike the original key, will have lot of restrictions like you cannot drive beyond few kilometers or cannot go beyond a particular speed etc.

In a similar move, WordPress 2.8 will also enable support for oAuth. Will Norris, has published an article explaining how oAuth is planned to be implemented in WordPress 2.8. There are yet some limitations (oAuth libraries need PHP5) but it’s a great start.

If you are a WordPress Plugin author of any Plugin that hooks into authentication then you may have to change your Plugin code to support oAuth.

I am really excited about the support for oAuth in Twitter and WordPress. I need to play with them a little once I get some free time. 🙂

Posted in API's/Mashup, WordPress | Tagged , , | 4 Comments

List of FriendFeed users who talk about WordPress

The nice folks at WPCandy have come up with a great idea to dedicate a day to thank everyone behind WordPress and also to encourage WordPress fans to blog about WordPress and share their favorite tips and tricks.

Today (July 1st ) is known as the unofficial WordPress day, where fans from all over the world can thank the people behind WordPress and also can express their love for WordPress. They are also running an event and have some nice giveaways. All you have to do is to let everyone know why you love WordPress by leaving a comment at WPCandy or write a blog post about WordPress.

So instead of writing a post explaining why and how I love WordPress (which I have already done), I thought of sharing some information which will be useful for people who are interested in WordPress. So here we go.. 🙂

Sometime ago Weblog Tools Collection published a list of Twitter users whom you can follow to get updated information about WordPress.

Nowdays I use FriendFeed more than Twitter (I have to confess this sometime). So I tried to find their corresponding FriendFeed usernames so that I can subscribe to them. The following is the list with their real names first, followed by their Twitter user names and then followed by their FriendFeed usernames.

The following are some of my additions to the list which was not originally published by Weblog Tools Collection.

I will try to keep the list updated and let me know if you feel I need to add someone else to this list. Till then happy FriendFeeding and my heart felt thanks to Matt and the team for an excellent product without which this site may never exist 🙂

Posted in WordPress | Tagged , , , | Leave a comment