<?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: Use intents to start other activities</title>
	<atom:link href="http://www.droidnova.com/use-intents-to-start-other-activities,76.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.droidnova.com/use-intents-to-start-other-activities,76.html</link>
	<description>Rapid android development from Berlin</description>
	<lastBuildDate>Sat, 04 Feb 2012 17:50:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Vaibhav</title>
		<link>http://www.droidnova.com/use-intents-to-start-other-activities,76.html/comment-page-1#comment-2473</link>
		<dc:creator>Vaibhav</dc:creator>
		<pubDate>Fri, 13 Jan 2012 08:55:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=76#comment-2473</guid>
		<description>Hi...
Nice Tutorial...
I want to call One application from another application...
How I can do that..??
Can anyone guide here....??
please...</description>
		<content:encoded><![CDATA[<p>Hi&#8230;<br />
Nice Tutorial&#8230;<br />
I want to call One application from another application&#8230;<br />
How I can do that..??<br />
Can anyone guide here&#8230;.??<br />
please&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devendra Chouhan</title>
		<link>http://www.droidnova.com/use-intents-to-start-other-activities,76.html/comment-page-1#comment-2396</link>
		<dc:creator>Devendra Chouhan</dc:creator>
		<pubDate>Sun, 18 Dec 2011 05:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=76#comment-2396</guid>
		<description>Hi , 
 Devendra Chouhan
 very good tutorial 
   Thanks,</description>
		<content:encoded><![CDATA[<p>Hi ,<br />
 Devendra Chouhan<br />
 very good tutorial<br />
   Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.droidnova.com/use-intents-to-start-other-activities,76.html/comment-page-1#comment-1831</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Fri, 25 Mar 2011 07:21:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=76#comment-1831</guid>
		<description>Yes it is. You can start other apps with an intent, so there is no reaso, why it shouldn&#039;t be possible.</description>
		<content:encoded><![CDATA[<p>Yes it is. You can start other apps with an intent, so there is no reaso, why it shouldn&#8217;t be possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aditya</title>
		<link>http://www.droidnova.com/use-intents-to-start-other-activities,76.html/comment-page-1#comment-1830</link>
		<dc:creator>Aditya</dc:creator>
		<pubDate>Fri, 25 Mar 2011 06:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=76#comment-1830</guid>
		<description>Hi,
  This is really helpful.
   Is it possible to call an activity which is in another package??</description>
		<content:encoded><![CDATA[<p>Hi,<br />
  This is really helpful.<br />
   Is it possible to call an activity which is in another package??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nurul</title>
		<link>http://www.droidnova.com/use-intents-to-start-other-activities,76.html/comment-page-1#comment-1476</link>
		<dc:creator>nurul</dc:creator>
		<pubDate>Sun, 28 Nov 2010 16:00:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=76#comment-1476</guid>
		<description>Do you know how to create android group SMS?</description>
		<content:encoded><![CDATA[<p>Do you know how to create android group SMS?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sneha</title>
		<link>http://www.droidnova.com/use-intents-to-start-other-activities,76.html/comment-page-1#comment-1460</link>
		<dc:creator>sneha</dc:creator>
		<pubDate>Fri, 19 Nov 2010 06:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=76#comment-1460</guid>
		<description>**Here is the easier code for creating custom list-view with different images*

which looks something like this image


![alt text][1]

firstly starts with creating UI....................
1.main.xml
2.row.xml
and add suitable images that you want to embed in your application

then start your main List Activity java class
3.Navigation.java





here is the main.xml


----------






  xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
  android:layout_width=&quot;fill_parent&quot;
  android:layout_height=&quot;wrap_content&quot;&gt;
 


 





now here is the code for Listview Images

row.xml


----------



 






now the main ListActivity java class where we have to create  ListAdapter that manages a ListView backed by an array of arbitrary objects.


Navigation.java


package com.exercise.Navigation;
import com.exercise.Navigation.R;

import android.app.ListActivity;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
public class Navigation extends ListActivity 
{public class MyCustomAdapter extends ArrayAdapter


  {
	public MyCustomAdapter(Context context, int textViewResourceId,  String[] objects)
       {	 super(context, textViewResourceId, objects); 
       		
       }
  @Override
  public View getView(int position, View convertView, ViewGroup parent)
  	{ 
	  
	  LayoutInflater inflater=getLayoutInflater(); 
	  View row=inflater.inflate(R.layout.row, parent, false); 
	  TextView label=(TextView)row.findViewById(R.id.navigation_item); 
	  label.setText(item[position]);
	  ImageView icon=(ImageView)row.findViewById(R.id.icon);
	  if (item[position]==&quot;Notes&quot;)
	    { 
		  icon.setImageResource(R.drawable.notes);
	    } 
	    if(item[position]==&quot;H and P&quot;)
        {
        	icon.setImageResource(R.drawable.hnp);
        	
        }
        if(item[position]==&quot;Imaging&quot;)
        {
        	icon.setImageResource(R.drawable.imaging);
        	
        }
        if(item[position]==&quot;Vital&quot;)
        {
        	icon.setImageResource(R.drawable.vital);
        	
        }
        if(item[position]==&quot;Problem&quot;)
        {
        	icon.setImageResource(R.drawable.problem);
        			
        }
        if(item[position]==&quot;ADT&quot;)
        {
        	icon.setImageResource(R.drawable.adt);
        	
        }
        if(item[position]==&quot;Notification&quot;)
        {
        	icon.setImageResource(R.drawable.notification);
        }
        if(item[position]==&quot;ECG&quot;)
        {
        	icon.setImageResource(R.drawable.ecg);
        }
	  return row;}}
		String[] item = {&quot;Notes&quot;,&quot;H and P&quot;,&quot;Imaging&quot;,&quot;Vital&quot;,&quot;Problem&quot;,&quot;ADT&quot;,&quot;Notification&quot;,&quot;ECG&quot;};


		/** Called when the activity is first created. */
		@Override 
		public void onCreate(Bundle savedInstanceState)
		{
			super.onCreate(savedInstanceState);  
			  
			
			setListAdapter(new MyCustomAdapter(Navigation.this, R.layout.row, item));
		}
		@Override 
		protected void onListItemClick(ListView l, View v, int position, long id) 
		{
	
			String selection = l.getItemAtPosition(position).toString();
			Toast.makeText(this, selection, Toast.LENGTH_LONG).show();
		}
		
}






 


  [1]: http://i.imgur.com/L78k5.png</description>
		<content:encoded><![CDATA[<p>**Here is the easier code for creating custom list-view with different images*</p>
<p>which looks something like this image</p>
<p>![alt text][1]</p>
<p>firstly starts with creating UI&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..<br />
1.main.xml<br />
2.row.xml<br />
and add suitable images that you want to embed in your application</p>
<p>then start your main List Activity java class<br />
3.Navigation.java</p>
<p>here is the main.xml</p>
<p>&#8212;&#8212;&#8212;-</p>
<p>  xmlns:android=&#8221;http://schemas.android.com/apk/res/android&#8221;<br />
  android:layout_width=&#8221;fill_parent&#8221;<br />
  android:layout_height=&#8221;wrap_content&#8221;&gt;</p>
<p>now here is the code for Listview Images</p>
<p>row.xml</p>
<p>&#8212;&#8212;&#8212;-</p>
<p>now the main ListActivity java class where we have to create  ListAdapter that manages a ListView backed by an array of arbitrary objects.</p>
<p>Navigation.java</p>
<p>package com.exercise.Navigation;<br />
import com.exercise.Navigation.R;</p>
<p>import android.app.ListActivity;<br />
import android.content.Context;<br />
import android.os.Bundle;<br />
import android.view.LayoutInflater;<br />
import android.view.View;<br />
import android.view.ViewGroup;<br />
import android.widget.ArrayAdapter;<br />
import android.widget.ImageView;<br />
import android.widget.ListView;<br />
import android.widget.TextView;<br />
import android.widget.Toast;<br />
public class Navigation extends ListActivity<br />
{public class MyCustomAdapter extends ArrayAdapter</p>
<p>  {<br />
	public MyCustomAdapter(Context context, int textViewResourceId,  String[] objects)<br />
       {	 super(context, textViewResourceId, objects); </p>
<p>       }<br />
  @Override<br />
  public View getView(int position, View convertView, ViewGroup parent)<br />
  	{ </p>
<p>	  LayoutInflater inflater=getLayoutInflater();<br />
	  View row=inflater.inflate(R.layout.row, parent, false);<br />
	  TextView label=(TextView)row.findViewById(R.id.navigation_item);<br />
	  label.setText(item[position]);<br />
	  ImageView icon=(ImageView)row.findViewById(R.id.icon);<br />
	  if (item[position]==&#8221;Notes&#8221;)<br />
	    {<br />
		  icon.setImageResource(R.drawable.notes);<br />
	    }<br />
	    if(item[position]==&#8221;H and P&#8221;)<br />
        {<br />
        	icon.setImageResource(R.drawable.hnp);</p>
<p>        }<br />
        if(item[position]==&#8221;Imaging&#8221;)<br />
        {<br />
        	icon.setImageResource(R.drawable.imaging);</p>
<p>        }<br />
        if(item[position]==&#8221;Vital&#8221;)<br />
        {<br />
        	icon.setImageResource(R.drawable.vital);</p>
<p>        }<br />
        if(item[position]==&#8221;Problem&#8221;)<br />
        {<br />
        	icon.setImageResource(R.drawable.problem);</p>
<p>        }<br />
        if(item[position]==&#8221;ADT&#8221;)<br />
        {<br />
        	icon.setImageResource(R.drawable.adt);</p>
<p>        }<br />
        if(item[position]==&#8221;Notification&#8221;)<br />
        {<br />
        	icon.setImageResource(R.drawable.notification);<br />
        }<br />
        if(item[position]==&#8221;ECG&#8221;)<br />
        {<br />
        	icon.setImageResource(R.drawable.ecg);<br />
        }<br />
	  return row;}}<br />
		String[] item = {&#8220;Notes&#8221;,&#8221;H and P&#8221;,&#8221;Imaging&#8221;,&#8221;Vital&#8221;,&#8221;Problem&#8221;,&#8221;ADT&#8221;,&#8221;Notification&#8221;,&#8221;ECG&#8221;};</p>
<p>		/** Called when the activity is first created. */<br />
		@Override<br />
		public void onCreate(Bundle savedInstanceState)<br />
		{<br />
			super.onCreate(savedInstanceState);  </p>
<p>			setListAdapter(new MyCustomAdapter(Navigation.this, R.layout.row, item));<br />
		}<br />
		@Override<br />
		protected void onListItemClick(ListView l, View v, int position, long id)<br />
		{</p>
<p>			String selection = l.getItemAtPosition(position).toString();<br />
			Toast.makeText(this, selection, Toast.LENGTH_LONG).show();<br />
		}</p>
<p>}</p>
<p>  [1]: <a href="http://i.imgur.com/L78k5.png" rel="nofollow">http://i.imgur.com/L78k5.png</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nitin</title>
		<link>http://www.droidnova.com/use-intents-to-start-other-activities,76.html/comment-page-1#comment-1116</link>
		<dc:creator>nitin</dc:creator>
		<pubDate>Fri, 28 May 2010 11:20:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=76#comment-1116</guid>
		<description>hi
i did as mention in above code.but the output is blank.Pls advice

thanks</description>
		<content:encoded><![CDATA[<p>hi<br />
i did as mention in above code.but the output is blank.Pls advice</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Velis</title>
		<link>http://www.droidnova.com/use-intents-to-start-other-activities,76.html/comment-page-1#comment-1022</link>
		<dc:creator>Bob Velis</dc:creator>
		<pubDate>Thu, 08 Apr 2010 17:01:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=76#comment-1022</guid>
		<description>Hi Martin!
I think there is not error, my problem is how to declare in Eclipse 3.5.1 one application using package from other project.</description>
		<content:encoded><![CDATA[<p>Hi Martin!<br />
I think there is not error, my problem is how to declare in Eclipse 3.5.1 one application using package from other project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.droidnova.com/use-intents-to-start-other-activities,76.html/comment-page-1#comment-1021</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Thu, 08 Apr 2010 12:57:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=76#comment-1021</guid>
		<description>What do you want to do?
Is the error in your Manifest file or in the Manifest given by the tutorial?</description>
		<content:encoded><![CDATA[<p>What do you want to do?<br />
Is the error in your Manifest file or in the Manifest given by the tutorial?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Velis</title>
		<link>http://www.droidnova.com/use-intents-to-start-other-activities,76.html/comment-page-1#comment-1020</link>
		<dc:creator>Bob Velis</dc:creator>
		<pubDate>Thu, 08 Apr 2010 12:46:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=76#comment-1020</guid>
		<description>Hi!
I&#039;d like try your example for Eclipse 1.5.1.
For the PickYourDude project I have the error message for the Manifest file :
&quot;com.droidnova.android.sample.Contacts  does not exist&quot;
normal because I must declare the link with the LinkContacts project.
How can I declare this ?
(PickYourDude-&gt;Properties-&gt;... etc?)</description>
		<content:encoded><![CDATA[<p>Hi!<br />
I&#8217;d like try your example for Eclipse 1.5.1.<br />
For the PickYourDude project I have the error message for the Manifest file :<br />
&#8220;com.droidnova.android.sample.Contacts  does not exist&#8221;<br />
normal because I must declare the link with the LinkContacts project.<br />
How can I declare this ?<br />
(PickYourDude-&gt;Properties-&gt;&#8230; etc?)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

