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.
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 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.
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.
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 😉
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. 🙂
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 alreadydone), 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.
Matt Mullenweg – photomatt – No FriendFeed Account
WordPress – WordPress This is the user account tied into the WordPress.org RSS Feed – No FriendFeed Account
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 🙂