<?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 on: How to create a new Android activity</title>
	<atom:link href="http://www.itwizard.ro/how-to-create-a-new-android-activity-82.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.itwizard.ro/how-to-create-a-new-android-activity-82.html</link>
	<description>embedded / mobile phone development</description>
	<lastBuildDate>Thu, 03 Jun 2010 15:13:08 +0300</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Android How Tos &#171; Confessions of a Struggling Researcher</title>
		<link>http://www.itwizard.ro/how-to-create-a-new-android-activity-82.html/comment-page-1#comment-91</link>
		<dc:creator>Android How Tos &#171; Confessions of a Struggling Researcher</dc:creator>
		<pubDate>Tue, 15 Sep 2009 10:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.itwizard.ro/?p=82#comment-91</guid>
		<description>[...] http://www.itwizard.ro/how-to-create-a-new-android-activity-82.html [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.itwizard.ro/how-to-create-a-new-android-activity-82.html" rel="nofollow">http://www.itwizard.ro/how-to-create-a-new-android-activity-82.html</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.itwizard.ro/how-to-create-a-new-android-activity-82.html/comment-page-1#comment-68</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 14 Sep 2009 10:33:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.itwizard.ro/?p=82#comment-68</guid>
		<description>Hey,
to start an activity you need a &quot;parent activity&quot;, so if you would like to start your new activity from SmsRx, 
one option is to keep a copy of the activity that instantiated SmsRx, and pass it in the constructor or afterwards.
Ex: class A extends Activity
{
  ...
   SmsRx s = new SmsRx(this);
...

in SmsRx constructor save the parent, ex: 
public SmsRx(Activity p)
{
   Activity parent = p;
}

and than when you want to start the new activity, just use the parent.

Good luck.
ITWizard</description>
		<content:encoded><![CDATA[<p>Hey,<br />
to start an activity you need a &#8220;parent activity&#8221;, so if you would like to start your new activity from SmsRx,<br />
one option is to keep a copy of the activity that instantiated SmsRx, and pass it in the constructor or afterwards.<br />
Ex: class A extends Activity<br />
{<br />
  &#8230;<br />
   SmsRx s = new SmsRx(this);<br />
&#8230;</p>
<p>in SmsRx constructor save the parent, ex:<br />
public SmsRx(Activity p)<br />
{<br />
   Activity parent = p;<br />
}</p>
<p>and than when you want to start the new activity, just use the parent.</p>
<p>Good luck.<br />
ITWizard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kapnkore</title>
		<link>http://www.itwizard.ro/how-to-create-a-new-android-activity-82.html/comment-page-1#comment-66</link>
		<dc:creator>kapnkore</dc:creator>
		<pubDate>Mon, 14 Sep 2009 08:09:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.itwizard.ro/?p=82#comment-66</guid>
		<description>but what if we want to startactivity from the class which do not extend Activity class.
eg.
if i want to start new activity in fallowing class
class SmsRx extends BroadcastReceiver
{
//.....
//here want to start new activity
Intent i = new intent();
i.startActivity(??????,newactivity.class);

}
how to do this?</description>
		<content:encoded><![CDATA[<p>but what if we want to startactivity from the class which do not extend Activity class.<br />
eg.<br />
if i want to start new activity in fallowing class<br />
class SmsRx extends BroadcastReceiver<br />
{<br />
//&#8230;..<br />
//here want to start new activity<br />
Intent i = new intent();<br />
i.startActivity(??????,newactivity.class);</p>
<p>}<br />
how to do this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
