<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.xsl" type="text/xsl"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	     xmlns:dc="http://purl.org/dc/elements/1.1/"
	   xmlns:atom="http://www.w3.org/2005/Atom"
	     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	  xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>sharing &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/tag/sharing/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Sun, 20 Jul 2025 07:07:49 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>sharing &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[Share Android Apps on Twitter (or anywhere else)]]></title>
		<link>https://shkspr.mobi/blog/2010/07/share-android-apps-on-twitter-or-anywhere-else/</link>
					<comments>https://shkspr.mobi/blog/2010/07/share-android-apps-on-twitter-or-anywhere-else/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Tue, 20 Jul 2010 09:41:43 +0000</pubDate>
				<category><![CDATA[mobile]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[sdk]]></category>
		<category><![CDATA[sharing]]></category>
		<category><![CDATA[sharing is caring]]></category>
		<category><![CDATA[twitter]]></category>
		<guid isPermaLink="false">http://shkspr.mobi/blog/?p=2172</guid>

					<description><![CDATA[I attended the Mobile Monday meeting &#34;200,000 Apps - Where&#039;s Mine&#34; last night. One thing that became clear is that apps don&#039;t do a very good job of promoting themselves.  One crippling problems with most app stores is that there&#039;s no (easy) way to share an app with a friend.  Here&#039;s some basic code for an Android app which will post the URL of your app to Twitter.  Stick it in a button or menu…]]></description>
										<content:encoded><![CDATA[<p>I attended the Mobile Monday meeting "<a href="https://web.archive.org/web/20100731020119/https://www.ibegyourparton.co.uk/2010/07/20/mobile-monday-london-write-up-%E2%80%93-%E2%80%9C200000-apps-where%E2%80%99s-mine%E2%80%9D/">200,000 Apps - Where's Mine</a>" last night.
One thing that became clear is that apps don't do a very good job of promoting themselves.  One crippling problems with most app stores is that there's no (easy) way to share an app with a friend.</p>

<p>Here's some basic code for an Android app which will post the URL of your app to Twitter.  Stick it in a button or menu item for easy sharing.</p>

<pre lang="java">String twitterUri = "http://m.twitter.com/?status=";
String marketUri = Uri.encode("http://example.com/?q=app&amp;title=test");
Intent shareOnTwitterIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(twitterUri + marketUri));
startActivity(shareOnTwitterIntent);
</pre>

<p>Some important things to note.</p>

<ol>
    <li>This is set to post to the <em>mobile </em>version of Twitter.&nbsp; Your user is on a phone - don't direct them to a site that won't work on their device.</li>
    <li>The second string is <a href="http://en.wikipedia.org/wiki/Percent-encoding">URI encoded</a>.</li>
    <li>Consider if you want to post a "market://" link.&nbsp; I would advise against it.&nbsp; Twitter won't render it as a link and, even if it did, 90% of users won't be able to click on it.&nbsp; Make it a link that will direct desktop users to your website, mobile users to a mobile friendly site and Android users direct to the market.</li>
</ol>

<p>Facebook also has an <a href="http://www.facebook.com/share/">API</a> for this sort of sharing.</p>

<pre>http://m.facebook.com/sharer.php?u=example.com&amp;t=test
</pre>

<p>Again, it points to the mobile site and needs to be URL encoded.</p>

<p>Happy sharing!</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=2172&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2010/07/share-android-apps-on-twitter-or-anywhere-else/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
