Note that there are some explanatory texts on larger screens.

plurals
  1. POAfter clicking the item in an listview it has to go their respective links
    text
    copied!<p>Is this possible to give the links as array,we can take the link as per the respective clink of an list item,In my code i will put hardcoded my link its not looking good,what i need i want to give all the links in an array,after clicking the item in an listview,it has to open thier respective link.</p> <pre><code>public class SouthIndianvegrecipes extends Activity { //private Button Manual; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main1); ArrayList&lt;Recipedetails1&gt; image_details = GetSearchResults(); final ListView lv1 = (ListView) findViewById(R.id.listV1_main); lv1.setAdapter(new ItemListBaseAdapter1(this, image_details)); lv1.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView&lt;?&gt; a, View v, int position, long id) { Object o = lv1.getItemAtPosition(position); Recipedetails1 obj_itemDetails = (Recipedetails1)o; Toast.makeText(SouthIndianvegrecipes.this, "You have chosen : " + " " + obj_itemDetails.getName1(), Toast.LENGTH_LONG).show(); } }); } private ArrayList&lt;Recipedetails1&gt; GetSearchResults(){ ArrayList&lt;Recipedetails1&gt; results = new ArrayList&lt;Recipedetails1&gt;(); Recipedetails1 item_details = new Recipedetails1(); item_details.setName1("Vegterian"); item_details.setItemDescription1("Recipes made by raw materials"); item_details.setUrlWiki("https://www.youtube.com/watch?v=C_r0mFvMSfU"); item_details.setImageNumber1(1); results.add(item_details); item_details = new Recipedetails1(); item_details.setName1("Non-Vegterian"); item_details.setItemDescription1("Flesh of sweet animals"); item_details.setUrlWiki("https://www.youtube.com/watch?v=C_r0mFvMSfU"); item_details.setImageNumber1(2); results.add(item_details); item_details = new Recipedetails1(); item_details.setName1("Pickels"); item_details.setItemDescription1("Touchable dish by Homemade"); item_details.setUrlWiki("https://www.youtube.com/watch?v=C_r0mFvMSfU"); item_details.setImageNumber1(3); results.add(item_details); item_details = new Recipedetails1(); item_details.setName1("Soups"); item_details.setItemDescription1("Startup for our food"); item_details.setUrlWiki("https://www.youtube.com/watch?v=C_r0mFvMSfU"); item_details.setImageNumber1(4); results.add(item_details); return results; } } </code></pre> <p>I want to click the item in the list, it has to go their respective link for the video, but now I will put this in holder, it will show the link directly, it's not looking good.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload