<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Roger Kind Kristiansen</title>
	<atom:link href="http://www.kind-kristiansen.no/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kind-kristiansen.no</link>
	<description></description>
	<lastBuildDate>Thu, 16 Feb 2012 07:38:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Android: Adding desktop shortcut support to your app by Juan Elosua</title>
		<link>http://www.kind-kristiansen.no/2010/android-adding-desktop-shortcut-support-to-your-app/comment-page-1/#comment-514</link>
		<dc:creator>Juan Elosua</dc:creator>
		<pubDate>Thu, 16 Feb 2012 07:38:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.kind-kristiansen.no/?p=192#comment-514</guid>
		<description>Hello,

I&#039;m trying to create a desktop shortcut from inside the execution of an activity of my own app, but I am having problems...

What I want to do is the same whatsup app does when you long click on a specific conversation...

This is the code I&#039;m trying to use once the user long clicks and selects the create shortcut option:
    	AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo();
    	TextView tv = (TextView)info.targetView.findViewById(R.id.bstop_id);
    	String stopId = tv.getText().toString();
    	
    	Intent shortcut = new Intent (Intent.ACTION_MAIN); 
    	shortcut.setClassName(this, TimetableAct.class.getName()); 
    	shortcut.putExtra(BookmarksDbAdapter.KEY_STOPID, stopId);

    	Intent intent = new Intent(); 
    	intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcut); 
    	intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, stopId); 
    	Parcelable iconResource = Intent.ShortcutIconResource.fromContext(BookmarkAct.this,  R.drawable.ic_bstop); 
    	intent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, iconResource); 
    	intent.setAction(Intent.ACTION_CREATE_SHORTCUT); 
    	getApplicationContext().sendBroadcast(intent); 

But it is not working....

Any help will be really appreciated.

Thanks in advance.

Juan</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I&#8217;m trying to create a desktop shortcut from inside the execution of an activity of my own app, but I am having problems&#8230;</p>
<p>What I want to do is the same whatsup app does when you long click on a specific conversation&#8230;</p>
<p>This is the code I&#8217;m trying to use once the user long clicks and selects the create shortcut option:<br />
    	AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo();<br />
    	TextView tv = (TextView)info.targetView.findViewById(R.id.bstop_id);<br />
    	String stopId = tv.getText().toString();</p>
<p>    	Intent shortcut = new Intent (Intent.ACTION_MAIN);<br />
    	shortcut.setClassName(this, TimetableAct.class.getName());<br />
    	shortcut.putExtra(BookmarksDbAdapter.KEY_STOPID, stopId);</p>
<p>    	Intent intent = new Intent();<br />
    	intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcut);<br />
    	intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, stopId);<br />
    	Parcelable iconResource = Intent.ShortcutIconResource.fromContext(BookmarkAct.this,  R.drawable.ic_bstop);<br />
    	intent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, iconResource);<br />
    	intent.setAction(Intent.ACTION_CREATE_SHORTCUT);<br />
    	getApplicationContext().sendBroadcast(intent); </p>
<p>But it is not working&#8230;.</p>
<p>Any help will be really appreciated.</p>
<p>Thanks in advance.</p>
<p>Juan</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Handling longpress/longclick on map (revisited) by Trouble creating custom mapview for longclick? &#124; Software development support, software risk,bugs for bugs, risk analysis,</title>
		<link>http://www.kind-kristiansen.no/2011/android-handling-longpresslongclick-on-map-revisited/comment-page-1/#comment-510</link>
		<dc:creator>Trouble creating custom mapview for longclick? &#124; Software development support, software risk,bugs for bugs, risk analysis,</dc:creator>
		<pubDate>Wed, 08 Feb 2012 00:01:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.kind-kristiansen.no/?p=255#comment-510</guid>
		<description>[...] Trouble creating custom mapview for longclick?        I am trying to get the geopoint from a longpress on a map. So far, when I run the activity which implements the custom class I get an error when the activity tries to open. I am trying to get the method for registering a long click from here: http://www.kind-kristiansen.no/2011/android-handling-longpresslongclick-on-map-revisited/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Trouble creating custom mapview for longclick?        I am trying to get the geopoint from a longpress on a map. So far, when I run the activity which implements the custom class I get an error when the activity tries to open. I am trying to get the method for registering a long click from here: <a href="http://www.kind-kristiansen.no/2011/android-handling-longpresslongclick-on-map-revisited/" rel="nofollow">http://www.kind-kristiansen.no/2011/android-handling-longpresslongclick-on-map-revisited/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Handling longpress/longclick on map (revisited) by Trouble creating custom mapview for longclick? &#124; appsgoogleplus.com</title>
		<link>http://www.kind-kristiansen.no/2011/android-handling-longpresslongclick-on-map-revisited/comment-page-1/#comment-509</link>
		<dc:creator>Trouble creating custom mapview for longclick? &#124; appsgoogleplus.com</dc:creator>
		<pubDate>Tue, 07 Feb 2012 03:43:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.kind-kristiansen.no/?p=255#comment-509</guid>
		<description>[...] I am trying to get the geopoint from a longpress on a map. So far, when I run the activity which implements the custom class I get an error when the activity tries to open. I am trying to get the method for registering a long click from here: http://www.kind-kristiansen.no/2011/android-handling-longpresslongclick-on-map-revisited/ [...]</description>
		<content:encoded><![CDATA[<p>[...] I am trying to get the geopoint from a longpress on a map. So far, when I run the activity which implements the custom class I get an error when the activity tries to open. I am trying to get the method for registering a long click from here: <a href="http://www.kind-kristiansen.no/2011/android-handling-longpresslongclick-on-map-revisited/" rel="nofollow">http://www.kind-kristiansen.no/2011/android-handling-longpresslongclick-on-map-revisited/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Handling longpress/longclick on map (revisited) by exequiel</title>
		<link>http://www.kind-kristiansen.no/2011/android-handling-longpresslongclick-on-map-revisited/comment-page-1/#comment-506</link>
		<dc:creator>exequiel</dc:creator>
		<pubDate>Mon, 30 Jan 2012 18:44:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.kind-kristiansen.no/?p=255#comment-506</guid>
		<description>Groxxx!  work for me!</description>
		<content:encoded><![CDATA[<p>Groxxx!  work for me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Handling longpress/longclick in MapActivity by Truth</title>
		<link>http://www.kind-kristiansen.no/2010/handling-longpresslongclick-in-mapactivity/comment-page-1/#comment-492</link>
		<dc:creator>Truth</dc:creator>
		<pubDate>Thu, 05 Jan 2012 16:23:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.kind-kristiansen.no/?p=99#comment-492</guid>
		<description>Yeah, thats exactly what i needed and it runs out of the box.

BIG THANKS !!!</description>
		<content:encoded><![CDATA[<p>Yeah, thats exactly what i needed and it runs out of the box.</p>
<p>BIG THANKS !!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Handling longpress/longclick on map (revisited) by Mark Thorogood</title>
		<link>http://www.kind-kristiansen.no/2011/android-handling-longpresslongclick-on-map-revisited/comment-page-1/#comment-487</link>
		<dc:creator>Mark Thorogood</dc:creator>
		<pubDate>Mon, 26 Dec 2011 17:16:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.kind-kristiansen.no/?p=255#comment-487</guid>
		<description>Phenomenal example.  On point, and well written.  Many thanks for sharing.</description>
		<content:encoded><![CDATA[<p>Phenomenal example.  On point, and well written.  Many thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Handling longpress/longclick on map (revisited) by BRH</title>
		<link>http://www.kind-kristiansen.no/2011/android-handling-longpresslongclick-on-map-revisited/comment-page-1/#comment-480</link>
		<dc:creator>BRH</dc:creator>
		<pubDate>Thu, 08 Dec 2011 11:41:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.kind-kristiansen.no/?p=255#comment-480</guid>
		<description>Do you think it would be useful to check the pointer count (event.getPointerCount() &gt; 1) in the ACTION_DOWN case so you won&#039;t start the counter in multitouch</description>
		<content:encoded><![CDATA[<p>Do you think it would be useful to check the pointer count (event.getPointerCount() &gt; 1) in the ACTION_DOWN case so you won&#8217;t start the counter in multitouch</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Handling longpress/longclick on map (revisited) by max</title>
		<link>http://www.kind-kristiansen.no/2011/android-handling-longpresslongclick-on-map-revisited/comment-page-1/#comment-463</link>
		<dc:creator>max</dc:creator>
		<pubDate>Mon, 28 Nov 2011 11:04:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.kind-kristiansen.no/?p=255#comment-463</guid>
		<description>Hey Roger,

BIG BIG BIG thank you from me. Thank god I found your tutorial about this issue.

Greeting from Germany</description>
		<content:encoded><![CDATA[<p>Hey Roger,</p>
<p>BIG BIG BIG thank you from me. Thank god I found your tutorial about this issue.</p>
<p>Greeting from Germany</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Handling longpress/longclick on map (revisited) by Iván</title>
		<link>http://www.kind-kristiansen.no/2011/android-handling-longpresslongclick-on-map-revisited/comment-page-1/#comment-459</link>
		<dc:creator>Iván</dc:creator>
		<pubDate>Mon, 21 Nov 2011 11:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.kind-kristiansen.no/?p=255#comment-459</guid>
		<description>Hi again! And sorry, i had my package name bad, just work perfectly!!! Thank you very very much! :D</description>
		<content:encoded><![CDATA[<p>Hi again! And sorry, i had my package name bad, just work perfectly!!! Thank you very very much! :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Handling longpress/longclick on map (revisited) by Iván</title>
		<link>http://www.kind-kristiansen.no/2011/android-handling-longpresslongclick-on-map-revisited/comment-page-1/#comment-458</link>
		<dc:creator>Iván</dc:creator>
		<pubDate>Mon, 21 Nov 2011 10:58:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.kind-kristiansen.no/?p=255#comment-458</guid>
		<description>Thank you very much for your code, it&#039;s the best! But i&#039;, having any problems with a google map key, when i try my layout with a Google&#039;s apiKey give me an error: &quot;error inflating class&quot;. My code:



    

How I can make work this? Error from the name of package? I hope you can help me, more hehe Great day.</description>
		<content:encoded><![CDATA[<p>Thank you very much for your code, it&#8217;s the best! But i&#8217;, having any problems with a google map key, when i try my layout with a Google&#8217;s apiKey give me an error: &#8220;error inflating class&#8221;. My code:</p>
<p>How I can make work this? Error from the name of package? I hope you can help me, more hehe Great day.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

